:root {
  --blue: #0868f3;
  --blue-dark: #0757cf;
  --blue-pale: #eaf3ff;
  --ink: #101a2a;
  --muted: #586473;
  --line: #dfe6ef;
  --soft: #f6f9fc;
  --white: #fff;
  --night: #07131f;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(19, 45, 76, .09);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 44px 0; }
.section-soft { background: var(--soft); }
.mobile-only { display: none; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(223,230,239,.85); backdrop-filter: blur(12px); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 8px 25px rgba(15, 37, 65, .09); }
.demo-banner { margin: 0; padding: 6px 14px; color: #72520a; background: #fff7df; text-align: center; font-size: 10px; font-weight: 650; }
.header-inner { height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; min-width: 160px; }
.brand-name { font-size: 25px; line-height: 1; letter-spacing: -.8px; font-weight: 800; }
.brand-name b { color: var(--blue); }
.brand-tagline { margin-top: 5px; color: #697486; font-size: 9px; }
.desktop-nav { display: flex; gap: clamp(18px, 2.3vw, 34px); margin-left: auto; }
.desktop-nav a, .footer-nav a { font-size: 13px; font-weight: 600; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .footer-nav a:hover { color: var(--blue); }
.header-contact { display: flex; align-items: center; gap: 20px; }
.phone-link { display: flex; align-items: center; gap: 9px; color: var(--blue); }
.phone-link span { display: grid; color: var(--ink); white-space: nowrap; }
.phone-link strong { font-size: 14px; }
.phone-link small { color: var(--muted); font-size: 10px; }
.mobile-phone, .menu-toggle, .mobile-menu { display: none; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 750; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(8,104,243,.2); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(8,104,243,.28); }
.button-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.button-large { min-width: 210px; min-height: 48px; }
.header-cta { min-height: 46px; font-size: 13px; }

.hero { position: relative; min-height: 310px; overflow: hidden; background: #eef5fb; }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 24%, rgba(255,255,255,.25) 51%, rgba(255,255,255,0) 70%), url('../img/hero.jpg'); background-size: cover; background-position: center; }
.hero-inner { min-height: 310px; position: relative; display: flex; align-items: center; }
.hero-copy { width: 46%; padding: 32px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; max-width: 610px; font-size: clamp(34px, 4vw, 50px); line-height: 1.04; letter-spacing: -1.8px; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 500px; margin-bottom: 22px; color: #3e4855; font-size: 17px; line-height: 1.38; }
.hero-actions { display: flex; gap: 12px; }
.hero-note { position: absolute; right: 2%; bottom: 30px; color: white; text-align: center; font-size: 20px; line-height: 1.05; font-style: italic; font-weight: 600; transform: rotate(-6deg); text-shadow: 0 2px 6px rgba(0,0,0,.35); }

.benefits { border-bottom: 1px solid var(--line); background: #fff; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.benefits-grid { min-height: 88px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 30px; }
.benefits article { display: flex; align-items: center; gap: 14px; }
.benefits .icon-disc, .benefits svg { pointer-events: none; }
.benefits article strong { display: block; margin-bottom: 3px; font-size: 14px; }
.benefits article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.25; }
.icon-disc { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: var(--blue); background: var(--blue-pale); border-radius: 50%; }
.icon-disc svg { width: 25px; height: 25px; }

.eyebrow { margin-bottom: 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.eyebrow.light { color: #cae3ff; }
.section-heading { margin: 0 auto 22px; text-align: center; }
.section-heading h2, .about-copy h2, .booking-copy h2 { margin-bottom: 8px; font-size: clamp(25px, 3vw, 32px); line-height: 1.12; letter-spacing: -.6px; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr .75fr; align-items: center; gap: 34px; }
.about-photo { height: 245px; border-radius: 0 var(--radius) var(--radius) 0; }
.about-copy p:not(.eyebrow) { color: #3f4a59; font-size: 14px; }
.about-points { margin: 0; padding: 20px; list-style: none; background: linear-gradient(145deg, #f8fbff, #eef5fb); border-radius: var(--radius); }
.about-points li { display: flex; align-items: center; gap: 12px; color: #455264; font-size: 13px; }
.about-points li + li { margin-top: 13px; }
.about-points span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: var(--blue); background: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(8,104,243,.08); }
.about-points svg { width: 17px; }

.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.service-card { position: relative; min-width: 0; }
.service-image { height: 118px; border-radius: 8px; }
.service-card h3 { margin: 10px 0 6px; font-size: 14px; line-height: 1.15; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.3; }
.service-card a { display: none; }
.sprite-photo { background-image: url('../img/services-grid.jpg'); background-repeat: no-repeat; background-size: 300% 200%; background-color: #d9e2ec; }
.sprite-1 { background-position: 0 0; }
.sprite-2 { background-position: 50% 0; }
.sprite-3 { background-position: 100% 0; }
.sprite-4 { background-position: 0 100%; }
.sprite-5 { background-position: 50% 100%; }
.sprite-6 { background-position: 100% 100%; }

.works { border-bottom: 1px solid var(--line); }
.work-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.work-filters button { padding: 7px 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 700; }
.work-filters button.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { transition: opacity .2s, transform .2s; }
.work-card.hidden { display: none; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 125px; overflow: hidden; border-radius: 8px; }
.before-after > div { position: relative; }
.before-after span { position: absolute; top: 8px; left: 8px; padding: 4px 10px; color: #fff; background: rgba(8,17,28,.8); border-radius: 5px; font-size: 11px; font-weight: 800; }
.before-after > div:last-child span { background: var(--blue); }
.work-card h3 { margin: 8px 0 0; font-size: 13px; text-align: center; }

.process { padding-top: 30px; padding-bottom: 30px; background: var(--soft); border-bottom: 1px solid var(--line); }
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.steps li { position: relative; display: flex; align-items: center; gap: 18px; padding: 4px 30px; }
.steps li:not(:last-child)::after { content: '→'; position: absolute; right: -9px; color: #86baff; font-size: 34px; font-weight: 200; }
.steps > li > span { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; color: var(--blue); background: #dcecff; border-radius: 50%; font-size: 25px; font-weight: 850; }
.steps h3 { margin-bottom: 3px; font-size: 15px; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; }

.reviews { padding-top: 30px; }
.demo-label { display: inline-block; padding: 4px 9px; color: #8b5d00 !important; background: #fff4ce; border-radius: 999px; font-size: 10px !important; }
.review-slider { position: relative; }
.review-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { min-height: 128px; display: flex; gap: 13px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 5px 14px rgba(17,43,74,.04); }
.avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #355673, #132335); border-radius: 50%; font-size: 20px; font-weight: 800; }
.avatar-woman { background: linear-gradient(145deg, #e1a475, #693e33); }
.review-card h3 { margin-bottom: 4px; font-size: 13px; }
.review-card h3 small { padding: 2px 5px; color: #71520a; background: #fff1bf; border-radius: 4px; font-size: 8px; }
.review-card p { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.rating { color: #ffb300; letter-spacing: 1px; }
.rating small { margin-left: 6px; color: var(--ink); letter-spacing: 0; }
.slider-arrow { display: none; }
.slider-dots { display: none; justify-content: center; gap: 7px; margin-top: 16px; }
.slider-dots span { width: 8px; height: 8px; background: #dce6f1; border-radius: 50%; }
.slider-dots .active { background: var(--blue); }

.booking { position: relative; padding: 35px 0; color: #fff; background: linear-gradient(90deg, rgba(5,16,27,.95), rgba(5,16,27,.72)), url('../img/hero.jpg') center 43% / cover; }
.booking-grid { display: grid; grid-template-columns: .95fr 1.25fr; align-items: center; gap: 60px; }
.booking-copy h2 { max-width: 500px; font-size: 30px; }
.booking-copy > p:not(.eyebrow) { max-width: 520px; color: #d9e1e9; font-size: 13px; }
.booking-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.telegram-link { display: inline-flex; align-items: center; gap: 8px; color: #81bdff; font-size: 13px; font-weight: 700; }
.booking-form { padding: 20px; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-note { margin-bottom: 10px; color: #8b5d00; font-size: 10px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-form label { display: grid; gap: 5px; margin-bottom: 10px; font-size: 11px; font-weight: 700; }
.booking-form input, .booking-form textarea, .booking-form select { width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #cfdbea; border-radius: 5px; outline: none; transition: border .2s, box-shadow .2s; }
.booking-form input:focus, .booking-form textarea:focus, .booking-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,104,243,.12); }
.booking-form [aria-invalid="true"] { border-color: #d73333; }
.booking-form textarea { resize: vertical; }
.button-submit { width: 100%; border: 0; }
.telegram-hint { margin: 9px 0 0; display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.telegram-hint svg { color: var(--blue); }
.form-status { min-height: 0; margin: 0; text-align: center; font-size: 12px; font-weight: 750; }
.form-status.success { min-height: 20px; margin-top: 8px; color: #127b3d; }
.form-status.error { min-height: 20px; margin-top: 8px; color: #bd2525; }

.site-footer { color: #fff; background: var(--night); }
.footer-main { min-height: 116px; display: grid; grid-template-columns: 1.15fr 1.1fr 1.5fr 1.4fr 92px; align-items: center; gap: 28px; }
.footer-brand .brand-name { color: #fff; }
.demo-badge { width: max-content; margin-top: 7px; padding: 3px 7px; color: #b7c4d1; background: rgba(255,255,255,.08); border-radius: 4px; font-size: 8px; }
.footer-contact { display: flex; align-items: center; gap: 11px; }
.footer-contact svg { flex: 0 0 auto; }
.footer-contact span { display: grid; }
.footer-contact strong { font-size: 12px; }
.footer-contact small { color: #aab6c3; font-size: 9px; }
.footer-nav { display: flex; justify-content: space-between; gap: 13px; }
.footer-nav a { font-size: 11px; }
.social-links { display: flex; gap: 8px; }
.social-button { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f7bd4b, #e33b69 55%, #8b43c6); border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.social-button svg { width: 21px; height: 21px; pointer-events: none; }
.telegram-button { background: #129cff; }
.footer-bottom { min-height: 38px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-block: 8px; color: #8c99a8; border-top: 1px solid rgba(255,255,255,.09); font-size: 9px; }
.footer-bottom p { margin: 0; }
.footer-bottom button { padding: 0; color: inherit; background: transparent; border: 0; }
.footer-bottom a:hover, .footer-bottom a:focus-visible, .footer-bottom button:hover { color: #fff; }

.privacy-dialog { width: min(90%, 520px); padding: 28px; border: 0; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.privacy-dialog::backdrop { background: rgba(5,13,22,.65); backdrop-filter: blur(3px); }
.privacy-dialog h2 { margin-bottom: 10px; }
.privacy-dialog p { color: var(--muted); }
.dialog-close { position: absolute; top: 10px; right: 14px; color: var(--muted); background: transparent; border: 0; font-size: 28px; }
.dialog-ok { min-width: 130px; border: 0; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--blue); border: 0; border-radius: 50%; box-shadow: 0 8px 20px rgba(8,104,243,.25); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 1050px) {
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: 12px; }
  .header-cta { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .footer-main { grid-template-columns: 1fr 1fr 1.4fr; padding: 24px 0; }
  .footer-nav { grid-column: 1 / 3; justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --radius: 11px; }
  html { scroll-padding-top: 72px; }
  .container { width: min(calc(100% - 28px), 620px); }
  .section { padding: 34px 0; }
  .mobile-only { display: block; }
  .header-inner { height: 72px; gap: 15px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand-name { font-size: 22px; }
  .brand-tagline { font-size: 8px; }
  .desktop-nav, .header-contact { display: none; }
  .mobile-phone { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); }
  .mobile-phone svg { width: 25px; height: 25px; }
  .menu-toggle { width: 40px; height: 40px; display: grid; align-content: center; gap: 5px; padding: 8px; background: transparent; border: 0; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { position: fixed; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); display: grid; gap: 3px; padding: 12px 18px 22px; overflow: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px rgba(10,29,50,.14); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a:not(.button) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }

  .hero { min-height: 615px; background: #fff; }
  .hero-media { inset: 236px 0 0; height: 379px; background-image: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 30%), url('../img/hero.jpg'); background-size: auto 100%; background-position: 67% center; }
  .hero-inner { min-height: 615px; display: block; }
  .hero-copy { width: 100%; padding: 22px 0 0; }
  .hero-copy .eyebrow { margin-bottom: 5px; }
  h1 { margin-bottom: 9px; font-size: clamp(29px, 9vw, 40px); line-height: 1.04; letter-spacing: -1.3px; }
  .hero-lead { max-width: 100%; font-size: 14px; line-height: 1.35; }
  .hero-actions { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: grid; gap: 8px; }
  .button-large { width: 100%; min-height: 49px; }
  .hero-note { display: none; }

  .benefits { padding: 15px 0; }
  .benefits-grid { min-height: 0; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .benefits article { min-width: 0; display: grid; justify-items: center; gap: 7px; text-align: center; }
  .benefits article strong { font-size: 10px; line-height: 1.15; }
  .benefits article p { display: none; }
  .icon-disc { width: 42px; height: 42px; flex-basis: 42px; }
  .icon-disc svg { width: 22px; }

  .about-grid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .about-copy { order: 1; }
  .about-photo { order: 2; height: 210px; border-radius: var(--radius); }
  .about-points { order: 3; padding: 17px; }
  .about-copy h2, .section-heading h2, .booking-copy h2 { font-size: 25px; }
  .about-copy p:not(.eyebrow) { font-size: 14px; }
  .about-points li { font-size: 13px; }
  .section-heading { margin-bottom: 18px; text-align: left; }

  .services-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .service-card { display: grid; grid-template-columns: 112px 1fr; gap: 13px; padding-right: 33px; align-items: center; }
  .service-image { height: 92px; border-radius: 9px; }
  .service-card h3 { margin: 0 0 5px; font-size: 13px; }
  .service-card p { font-size: 11px; }
  .service-card a { position: absolute; right: 0; top: 50%; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; transform: translateY(-50%); font-size: 22px; }

  .work-filters { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .work-filters button { flex: 0 0 auto; }
  .works-grid { grid-template-columns: 1fr; gap: 20px; }
  .before-after { height: 155px; }
  .work-card h3 { text-align: left; }

  .steps { grid-template-columns: 1fr; gap: 13px; }
  .steps li { padding: 0; align-items: flex-start; }
  .steps li:not(:last-child)::after { content: '↓'; left: 20px; right: auto; top: 42px; font-size: 24px; }
  .steps > li > span { width: 44px; height: 44px; flex-basis: 44px; font-size: 22px; }
  .steps h3 { font-size: 14px; }

  .review-slider { padding: 0 20px; }
  .review-track { display: flex; overflow: hidden; }
  .review-card { min-width: 100%; }
  .slider-arrow { position: absolute; z-index: 2; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 50%; transform: translateY(-50%); font-size: 25px; }
  .slider-arrow.prev { left: -2px; }
  .slider-arrow.next { right: -2px; }
  .slider-dots { display: flex; }

  .booking { padding: 34px 0; background-position: 67% center; }
  .booking-grid { grid-template-columns: 1fr; gap: 22px; }
  .booking-copy h2 { font-size: 27px; }
  .telegram-link { margin-top: 5px; }
  .booking-form { padding: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-main { grid-template-columns: 1fr auto; gap: 20px; padding: 28px 0 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; }
  .social-links { grid-column: 2; grid-row: 4; }
  .footer-bottom { gap: 8px 18px; }
  .footer-bottom p { flex-basis: 100%; }
}

@media (max-width: 390px) {
  .hero { min-height: 675px; }
  .hero-inner { min-height: 675px; }
  .hero-media { inset: 292px 0 0; height: 383px; }
  h1 { font-size: 29px; }
  .benefits-grid { gap: 4px; }
  .benefits article strong { font-size: 9px; }
  .service-card { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
