/* Third refinement pass: compact hierarchy, richer process and three-up proof carousel. */
.mobile-hero-visual{display:none}
.hero-copy>.button-row{margin-top:24px}
.social img{width:17px;height:17px;display:block;filter:brightness(0) invert(1)}
.social .max-logo{width:19px;height:19px;filter:none}
.social.max{background:#fff;border:1px solid #dfe5f0;box-shadow:0 4px 12px rgba(24,33,61,.08)}
.call-mobile svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.factor-wrap{display:flex;flex-direction:column}
.factor-button{margin-top:24px;align-self:flex-start}

.about-grid{grid-template-columns:1fr 1fr;grid-template-areas:"photo heading" "photo copy";align-items:start}
.about-heading{grid-area:heading}
.about-photo{grid-area:photo;position:sticky;top:112px}
.about-copy{grid-area:copy}
.about-copy>p{margin:0 0 20px;max-width:72ch}
.about-copy .about-intro{font-size:18px;line-height:1.7;color:#46516d}
.about-detail{padding:22px 0;border-top:1px solid var(--line)}
.about-detail h3{margin:0 0 9px;font:700 20px/1.3 var(--display);color:var(--ink)}
.about-detail p{margin:0;max-width:72ch;color:var(--muted)}
.certificate-preview{width:min(100%,460px);margin-top:26px;padding:10px;border:1px solid #d9e4f3;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(38,66,125,.1);display:grid;grid-template-columns:154px 1fr;gap:16px;align-items:center;text-align:left;color:var(--ink);cursor:zoom-in;transition:transform .25s,box-shadow .25s,border-color .25s}
.certificate-preview:hover{transform:translateY(-2px);border-color:#b9cbe7;box-shadow:0 18px 42px rgba(38,66,125,.15)}
.certificate-preview:focus-visible,.certificate-close:focus-visible{outline:3px solid rgba(53,93,177,.3);outline-offset:3px}
.certificate-preview img{width:154px;aspect-ratio:1.45/1;object-fit:cover;border-radius:10px;background:#eef3f9}
.certificate-preview span,.certificate-preview strong,.certificate-preview small{display:block}
.certificate-preview strong{font:700 14px/1.4 var(--display)}
.certificate-preview small{margin-top:6px;color:var(--blue);font-size:12px;font-weight:600}
.certificate-dialog{width:min(1120px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:18px 18px 14px;border:0;border-radius:20px;background:#fff;box-shadow:0 30px 100px rgba(12,27,58,.35);overflow:auto}
.certificate-dialog::backdrop{background:rgba(15,25,46,.74);backdrop-filter:blur(5px)}
.certificate-dialog img{width:100%;height:auto;border-radius:12px;background:#eef3f9}
.certificate-dialog p{margin:12px 46px 0 4px;color:var(--muted);font-size:13px}
.certificate-close{position:absolute;right:24px;top:24px;width:42px;height:42px;border:0;border-radius:12px;background:rgba(24,33,61,.88);color:#fff;font:400 28px/1 var(--body);cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.22)}
body:has(.certificate-dialog[open]){overflow:hidden}

.process-section{position:relative;background:linear-gradient(180deg,#fff 0,#f6f9ff 100%);overflow:hidden}
.process-section:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-170px;top:80px;background:radial-gradient(circle,rgba(155,210,238,.35),transparent 68%)}
.steps{position:relative;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;counter-reset:none}
.steps:before{content:"";position:absolute;left:7%;right:7%;top:38px;height:2px;background:linear-gradient(90deg,#9bd2ee,#355db1,#916aaf);z-index:0}
.steps li{position:relative;display:block;min-width:0;padding:22px 18px 24px;background:rgba(255,255,255,.92);border:1px solid rgba(53,93,177,.1);border-radius:22px;box-shadow:0 14px 35px rgba(38,66,125,.08);z-index:1}
.steps li:nth-child(2n){margin-top:26px}
.steps li:before{display:none}
.process-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,var(--blue),var(--violet));color:#fff;box-shadow:0 12px 25px rgba(53,93,177,.22)}
.process-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.steps small{position:absolute;right:16px;top:16px;font:700 11px var(--display);letter-spacing:.09em;color:#7d91b6}
.steps h3{font-size:16px;line-height:1.3;margin:20px 0 9px}
.steps p{font-size:13px;line-height:1.55;margin:0;color:var(--muted)}

.reviews{padding-bottom:74px}
.review-carousel{overflow:hidden}
.review-track{gap:16px;align-items:stretch;will-change:transform}
.review-card{flex:0 0 calc((100% - 32px)/3);min-width:0;display:flex;flex-direction:column;padding:8px;border-radius:22px;overflow:hidden;align-items:stretch}
.review-photo{min-height:0;height:270px;border-radius:16px;background:#eef2f7;overflow:hidden;display:flex;align-items:center;justify-content:center}
.review-photo img{width:100%;height:100%;object-fit:contain;background:#f3f5f8}
.review-content{padding:18px 14px 16px;display:flex;flex:1;flex-direction:column;justify-content:flex-start}
.review-type{font-size:9px;padding:6px 8px}
.review-card blockquote{font-family:var(--body);font-size:13px;line-height:1.52;margin:14px 0 16px;max-height:190px;overflow:auto;padding-right:5px;scrollbar-width:thin}
.review-card p{margin-top:auto;font-size:12px}
.review-card p strong{font-family:var(--display);font-size:12px}
.review-card p a{font-size:11px}

.brand-icon{width:24px;height:24px;flex:0 0 24px;border-radius:8px;display:inline-grid;place-items:center}
.brand-icon img{width:14px;height:14px;display:block;filter:brightness(0) invert(1)}
.brand-icon.wa{background:#25d366}.brand-icon.tg{background:#27a7e7}.brand-icon.vk{background:#0077ff}.brand-icon.max{background:#fff}
.brand-icon.max img{width:19px;height:19px;filter:none}
.form-messengers a,.form-messengers>span,.contact-pill,.telegram-channel-button{display:inline-flex;align-items:center;gap:7px}
.form-messengers .brand-icon{width:28px;height:28px;flex-basis:28px;padding:0;border-radius:9px}
.form-messengers .brand-icon img{width:17px;height:17px;padding:0}
.form-messengers .brand-icon.max{border:1px solid #dfe5f0}
.contact-pill{justify-content:flex-start}
.telegram-channel-button .brand-icon{margin-left:-4px}

.mobile-quick-actions{display:none}

.consent-check{grid-column:1/-1;display:grid!important;grid-template-columns:20px 1fr;gap:9px 10px;align-items:start;padding:13px 14px;border:1px solid #d6dfed;border-radius:13px;background:#f8faff;font-size:12px!important;line-height:1.5;font-weight:500!important;color:var(--muted)!important}
.request-form .consent-check input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--blue);cursor:pointer}
.consent-check span{display:block}.consent-check a{text-decoration:underline;color:var(--blue)}
.consent-check .field-error{grid-column:2;min-height:0;margin-top:-5px}.consent-check input.invalid{outline:2px solid #c03562;outline-offset:2px}
.cookie-banner[hidden]{display:none}
.cookie-banner{position:fixed;z-index:1000;left:18px;right:18px;bottom:18px;display:flex;justify-content:center;pointer-events:none}
.cookie-banner__body{width:min(980px,100%);padding:20px 22px;border:1px solid rgba(53,93,177,.18);border-radius:20px;background:rgba(255,255,255,.98);box-shadow:0 24px 70px rgba(24,33,61,.24);backdrop-filter:blur(18px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;pointer-events:auto}
.cookie-banner p{margin:0;color:#46516d;font-size:13px;line-height:1.55}.cookie-banner p a,.cookie-banner__actions>a{color:var(--blue);text-decoration:underline;font-weight:600}
.cookie-banner__actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.cookie-banner__actions .button{white-space:nowrap}
.cookie-secondary{min-height:42px;padding:0 14px;border:1px solid #ccd9ef;border-radius:13px;background:#fff;color:var(--blue);font:600 12px var(--body);cursor:pointer}
.legal-main{padding:142px 0 90px;background:linear-gradient(180deg,#f5f9ff 0,#fff 340px)}
.legal-wrap{width:min(900px,calc(100% - 40px));margin:auto}.legal-back{display:inline-flex;margin-bottom:24px;color:var(--blue);font-weight:700;font-size:13px}
.legal-card{padding:50px 56px;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 20px 60px rgba(53,93,177,.1)}
.legal-card h1{margin:0 0 14px;font:800 clamp(34px,5vw,52px)/1.08 var(--display);letter-spacing:-.045em}.legal-updated{margin:0 0 34px;color:var(--muted);font-size:13px}
.legal-card h2{margin:34px 0 12px;font:700 22px/1.3 var(--display);color:var(--ink)}.legal-card h3{margin:24px 0 8px;font:700 17px/1.4 var(--display)}
.legal-card p,.legal-card li{font-size:15px;line-height:1.7;color:#46516d}.legal-card ul,.legal-card ol{padding-left:22px}.legal-card a{color:var(--blue);text-decoration:underline}.legal-card table{width:100%;border-collapse:collapse;margin:18px 0;font-size:14px}.legal-card th,.legal-card td{padding:12px;border:1px solid var(--line);text-align:left;vertical-align:top}.legal-card th{background:#f5f8fd;color:var(--ink)}
.legal-note{padding:16px 18px;border-radius:14px;background:#f2f7ff;border-left:4px solid var(--blue)}

@media(max-width:1080px){
  .steps{grid-template-columns:repeat(3,1fr)}
  .steps:before{display:none}
  .steps li:nth-child(2n){margin-top:0}
  .review-photo{height:240px}
}

@media(max-width:760px){
  .site-header .header-inner{min-height:64px}
  .hero{padding-top:94px}
  .hero-grid{display:block}
  .hero-copy{max-width:none}
  .hero-copy .eyebrow{font-size:10px;line-height:1.35;margin-bottom:18px}
  .hero h1{font-size:clamp(31px,9.2vw,38px);line-height:1.04;letter-spacing:-.05em;margin-bottom:10px}
  .hero .lead{font-size:14px;line-height:1.42;margin:0 0 12px;max-width:34em}
  .hero>.hero-glow{opacity:.55}
  .hero-visual{display:none}
  .mobile-hero-visual{display:block;height:205px;border-radius:20px;overflow:hidden;margin:12px 0;background:#dce7f3;box-shadow:0 14px 35px rgba(35,62,118,.14)}
  .mobile-hero-visual img{width:100%;height:100%;object-fit:cover;object-position:center 44%}
  .proofs{margin:11px 0 12px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .proofs li{font-size:11px;line-height:1.3;padding:8px 6px 8px 18px;border-radius:9px;background:rgba(255,255,255,.72)}
  .proofs li:before{left:7px;top:11px;width:5px;height:5px}
  .hero .button-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:0}
  .hero .button{min-height:42px;padding:0 10px;font-size:12px;justify-content:center}
  .hero .wave{height:42px}

  .section{padding-top:58px;padding-bottom:58px}
  .section-head{margin-bottom:28px}
  .section-head h2,.estimate h2,.about h2,.request-section h2,.faq-intro h2,.contacts h2{font-size:clamp(26px,7.6vw,32px);line-height:1.12;letter-spacing:-.04em}
  .section-head>p:last-child,.faq-intro>p,.about-copy>p{font-size:14px;line-height:1.55}
  .eyebrow{font-size:10px;letter-spacing:.11em;gap:8px}.eyebrow:before{width:22px}
  .feature{min-height:auto;padding:23px 21px}.feature .benefit-icon{width:50px;height:50px}.feature h3{font-size:16px;margin-top:18px}
  .service-visual{height:205px}.service-body{padding:20px}.service-body h3{font-size:17px}.service-body p{font-size:14px}

  .estimate-card{gap:22px}.factor-wrap{padding:22px}.factor-button{width:100%;justify-content:center;margin-top:19px}
  .about-grid{display:grid;grid-template-columns:1fr;grid-template-areas:"heading" "photo" "copy";gap:20px}
  .about-heading h2{margin-bottom:0}
  .about-photo{position:relative;top:auto}
  .about-photo img{height:290px}
  .about-photo figcaption{left:12px;bottom:12px;font-size:11px;padding:8px 10px}
  .about-copy .about-intro{font-size:15px;line-height:1.6}
  .about-copy>p{font-size:14px;line-height:1.58;margin-bottom:17px}
  .about-detail{padding:18px 0}.about-detail h3{font-size:17px}.about-detail p{font-size:14px;line-height:1.58}
  .markers{gap:7px}.markers span{font-size:12px}
  .certificate-preview{grid-template-columns:116px 1fr;gap:12px;margin-top:22px;padding:8px}
  .certificate-preview img{width:116px;border-radius:9px}.certificate-preview strong{font-size:12px}.certificate-preview small{font-size:11px;margin-top:4px}
  .certificate-dialog{padding:10px 10px 12px;border-radius:15px}.certificate-dialog img{border-radius:9px}.certificate-close{right:16px;top:16px;width:38px;height:38px;border-radius:10px}
  .cookie-banner{left:10px;right:10px;bottom:10px}.cookie-banner__body{padding:16px;border-radius:16px;grid-template-columns:1fr;gap:13px}.cookie-banner p{font-size:12px}.cookie-banner__actions{justify-content:flex-start}.cookie-banner__actions .button,.cookie-secondary{min-height:40px;font-size:11px}.legal-main{padding:104px 0 60px}.legal-wrap{width:min(100% - 24px,900px)}.legal-card{padding:28px 20px;border-radius:20px}.legal-card h1{font-size:30px}.legal-card h2{font-size:19px}.legal-card p,.legal-card li{font-size:14px}.legal-card table{display:block;overflow-x:auto;white-space:normal}

  .steps{grid-template-columns:1fr;gap:11px}
  .steps li{display:grid;grid-template-columns:48px 1fr;column-gap:14px;padding:16px;align-items:start}
  .process-icon{width:48px;height:48px;border-radius:15px;grid-row:1/3}
  .process-icon svg{width:26px;height:26px}
  .steps h3{font-size:15px;margin:2px 28px 4px 0}.steps p{font-size:12.5px}.steps small{right:14px;top:17px}

  .reviews .section-head h2{font-size:27px}
  .review-track{gap:12px}
  .review-card{flex-basis:100%;border-radius:20px}
  .review-photo{height:255px}
  .review-content{padding:17px 13px 15px}
  .review-card blockquote{font-size:12.5px;line-height:1.5;max-height:170px;margin:12px 0 14px}
  .review-controls{margin-top:17px}

  .request-copy h2{font-size:28px}.request-copy>p{font-size:14px}.request-photo{min-height:390px}
  .form-messengers{gap:6px}.form-messengers a,.form-messengers>span{font-size:11px;padding:6px 8px}
  .faq-layout{gap:26px}.faq-intro h2{margin-bottom:10px}.faq{border-radius:20px;padding:7px 16px}.faq-button{font-size:14px;line-height:1.35;padding:17px 0}.faq-answer p{font-size:13px}
  .big-phone{font-size:clamp(21px,6.3vw,26px);white-space:nowrap;letter-spacing:-.045em}
  .contact-card{padding:25px 20px}.contact-buttons{grid-template-columns:1fr 1fr}.contact-pill{font-size:12px;padding:9px}
  .mobile-menu.open{display:grid;max-height:calc(100vh - 70px);overflow:auto}
  .mobile-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding-top:16px}
  .mobile-menu .mobile-contact{display:flex;min-width:0;min-height:66px;padding:8px 4px;border:0;border-radius:14px;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:#fff;font-size:10px;font-weight:700}
  .mobile-menu .mobile-contact img{width:22px;height:22px;filter:brightness(0) invert(1)}
  .mobile-menu .mobile-contact.max{background:#fff;color:var(--muted);border:1px solid #dfe5f0}
  .mobile-menu .mobile-contact.max img{width:24px;height:24px;filter:none}
  .mobile-menu .mobile-contact.phone{background:var(--blue)}
  .mobile-menu .mobile-contact.phone svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-menu .mobile-contact.disabled{opacity:.72;cursor:not-allowed}
}

@media(max-width:390px){
  .brand-text small{display:none}
  .hero h1{font-size:30px}.mobile-hero-visual{height:185px}
  .proofs li{font-size:10.5px}.hero .button{font-size:11px}
  .big-phone{font-size:21px}
}
