* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important; /* Скрытый блок примера работ */
}

.desktop-nav a[href="#works"] {
  display: none; /* Скрытый блок примера работ в шапке */
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #68738a;
  --primary: #1b69ff;
  --primary-dark: #1054d9;
  --line: #dfe5ef;
  --dark: #111a2b;
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text,
.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
}

/* Header */

#site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

#site-header:empty {
  min-height: 78px;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 229, 239, 0.85);
  box-shadow: 0 8px 24px rgba(26, 44, 82, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 68px;
  height: 68px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 16px;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  color: #33405a;
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.header-phone {
  display: grid;
  grid-template-columns: 28px auto;
  align-items: center;
  column-gap: 10px;
  line-height: 1.15;
}

.header-phone-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #22c55e;
  transform: translateY(8px);
}

.header-phone-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.header-phone-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.header-phone small {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.header-phone strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone-number {
  display: block;
  line-height: 1.25;
  text-align: left;
}

.header-phone-number:hover strong {
  color: var(--primary);
}

/* Common hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(245, 247, 251, 0.96) 0%,
      rgba(245, 247, 251, 0.92) 28%,
      rgba(245, 247, 251, 0.72) 52%,
      rgba(245, 247, 251, 0.35) 100%
    ),
    url("assets/hero-house.png") center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -180px -120px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255, 179, 58, 0.12);
  filter: blur(4px);
}

.hero-grid {
  min-height: 640px;
  padding: 70px 0 56px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-actions {
  margin: 34px 0 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  max-width: 600px;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  list-style: none;
}

.hero-points li {
  min-width: 0;
  padding: 15px 10px 10px;
  border-top: 1px solid rgba(223, 229, 239, 0.8);
  text-align: center;
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong {
  font-size: 19px;
}

.hero-points span {
  color: var(--muted);
  font-size: 13px;
}

/* Buttons */

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(27, 105, 255, 0.28);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-call {
  color: #ffffff;
  background: #22c55e;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.28);
}

.button-call:hover {
  background: #16a34a;
}

.button-messenger {
  gap: 10px;
}

.button-messenger {
  gap: 10px;
}

.button-messenger-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.button-messenger-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

img.button-messenger-icon {
  display: block;
  filter: brightness(0) invert(1);
}

.button-whatsapp {
  color: #ffffff;
  background: #25d366;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.28);
}

.button-whatsapp:hover {
  background: #1ebd5a;
}

.button-viber {
  color: #ffffff;
  background: #7360f2;
  box-shadow: 0 14px 28px rgba(115, 96, 242, 0.28);
}

.button-viber:hover {
  background: #6552dc;
}

/* Common sections */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.trust-grid > div:first-child {
  padding-left: 0;
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: var(--bg);
}

.section-dark {
  color: #ffffff;
  background: var(--dark);
}

.section-heading {
  margin-bottom: 44px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-width: 0;
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(26, 44, 82, 0.1);
}

.service-image {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff 0%, #edf4ff 100%);
}

.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.service-card p {
  color: var(--muted);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 70px;
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list article {
  padding: 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.benefit-list article > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: #edf4ff;
  font-weight: 900;
}

.benefit-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.steps article {
  min-width: 0;
  min-height: 200px;
  padding: 24px;
  border-radius: 18px;
  background: var(--bg);
}

.steps span {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Works */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  overflow: hidden;
  border-radius: 22px;
  background: #1b263a;
}

.work-photo {
  height: 270px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.photo-one {
  background:
    linear-gradient(135deg, rgba(27, 105, 255, 0.35), rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(90deg, #27354d 0 72px, #354765 72px 76px);
}

.photo-two {
  background:
    linear-gradient(145deg, rgba(255, 179, 58, 0.28), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(0deg, #27354d 0 58px, #354765 58px 62px);
}

.photo-three {
  background:
    linear-gradient(120deg, rgba(37, 173, 104, 0.25), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(45deg, #27354d 0 48px, #354765 48px 52px);
}

.work-info {
  padding: 24px;
}

.work-info p {
  margin-bottom: 0;
  color: #aab6ca;
}

/* Contacts */

.contacts {
  padding: 76px 0;
  color: #ffffff;
  background: var(--primary);
}

.contacts .eyebrow {
  color: #cfe0ff;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.75fr;
  align-items: start;
  gap: 80px;
}

.contacts-info {
  display: flex;
  flex-direction: column;
}

.contacts-description {
  max-width: 520px;
  color: #dbe7ff;
}

.contact-region {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.contact-items {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-eyebrow {
  margin-bottom: 18px;
}

.contact-links {
  display: grid;
  gap: 16px;
}

.contact-line {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
}

.contact-line-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: #ffffff;
}

.contact-line-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-line-icon-phone {
  background: #22c55e;
}

.contact-line-icon-telegram {
  background: #229ed9;
}

.contact-line-icon-whatsapp {
  background: #25d366;
}

.contact-line-icon-viber {
  background: #7360f2;
}

.contact-line-icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) invert(1);
}

.contact-line:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */

.site-footer {
  padding: 34px 0 82px;
  color: #c6cfdf;
  background: #0d1422;
}

.footer-inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 4px 0 0;
}

.footer-meta {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

/* Privacy page */

.privacy-page .desktop-nav {
  display: none;
}

.privacy-section {
  min-height: 70vh;
  background: var(--bg);
}

.privacy-container {
  max-width: 900px;
}

.privacy-container h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 58px);
}

.privacy-back {
  margin-bottom: 38px;
  display: inline-flex;
  color: var(--primary);
  font-weight: 700;
}

.privacy-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy-updated {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
}

.privacy-content {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.privacy-content section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.privacy-content h2 {
  margin-bottom: 16px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.privacy-content p {
  color: #465168;
}

.privacy-content ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #465168;
}

.privacy-content li + li {
  margin-top: 8px;
}

.privacy-content a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 680px) {
  .privacy-section {
    padding: 58px 0;
  }

  .privacy-container h1 {
    font-size: 34px;
  }

  .privacy-content {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .privacy-content h2 {
    font-size: 22px;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid,
  .benefits-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .trust-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid > div {
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:first-child {
    padding-left: 24px;
  }

  .trust-grid > div:nth-child(even) {
    border-right: 0;
  }

  .trust-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-photo {
    height: 320px;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 28px);
  }

  .header-inner {
    padding: 10px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .logo {
    min-width: 0;
    gap: 10px;
  }

  .logo-image {
    width: 54px;
    height: 54px;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-text strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .header-phone {
    padding-top: 0;
    align-items: center;
  }

  .header-phone small {
    display: none;
  }

  .header-phone strong {
    font-size: 16px;
  }

  .header-phone-icon {
    transform: translateY(0);
  }

  .hero {
    background:
      linear-gradient(
        180deg,
        rgba(245, 247, 251, 0.97) 0%,
        rgba(245, 247, 251, 0.92) 58%,
        rgba(245, 247, 251, 0.84) 100%
      ),
      url("assets/hero-house.png") 68% center / cover no-repeat;
  }

  .hero-grid {
    padding: 28px 0;
  }

  .hero-content,
  .hero-text,
  .lead,
  .hero-points {
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .hero-text,
  .lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .hero-points {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .hero-points li {
    padding: 18px 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 10px;
  }

  .windows-page .cards-grid {
    gap: 12px;
  }

  .windows-page .service-card {
    min-height: auto;
    padding: 14px;
    text-align: center;
  }

  .windows-page .service-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.25;
    text-wrap: balance;
  }

  .windows-page .service-card p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .windows-page .service-image {
    margin-bottom: 18px;
    aspect-ratio: 1.2 / 1;
  }

  .trust-grid > div,
  .trust-grid > div:first-child {
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .trust-grid strong,
  .trust-grid span {
    width: 100%;
  }
}

@media (min-width: 361px) and (max-width: 410px) {
  .header-inner {
    min-height: 64px;
    padding: 8px 0;
    gap: 8px;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 8px;
  }

  .logo-image {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    display: flex;
    min-width: 0;
  }

  .logo-text strong {
    max-width: none;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .header-phone {
    display: grid;
    grid-template-columns: 20px auto;
    align-items: center;
    column-gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-phone-icon {
    width: 20px;
    height: 20px;
    display: grid;
    transform: none;
  }

  .header-phone-number {
    line-height: 1.15;
    text-align: right;
  }

  .header-phone strong {
    font-size: 11px;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 360px) {
  .header-inner {
    min-height: 60px;
    padding: 8px 0;
    gap: 6px;
  }

  .logo {
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
  }

  .logo-image {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    display: flex;
    min-width: 0;
  }

  .logo-text strong {
    max-width: none;
    font-size: 10px;
    line-height: 1;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .header-phone {
    display: grid;
    grid-template-columns: 18px auto;
    align-items: center;
    column-gap: 4px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-phone-icon {
    width: 18px;
    height: 18px;
    display: grid;
    transform: none;
  }

  .header-phone-number {
    line-height: 1.12;
    text-align: right;
  }

  .header-phone strong {
    font-size: 10px;
    letter-spacing: -0.02em;
  }
}