/* Approved shared shell and system-page composition, Figma page 728:69. */
.site-header{position:relative;z-index:20;padding:0;background:#fff;color:var(--ink)}
.site-header .header__inner{width:min(calc(100% - 48px),1312px);min-height:88px;padding:0;gap:32px}
.site-header .brand{flex:0 0 auto}
.site-header .brand__wordmark{width:368px;height:auto;object-fit:contain;content:normal}
.site-header .header__nav-card{width:auto;min-height:0;display:flex;align-items:center;justify-content:flex-end;flex:1;gap:36px;padding:0;border-radius:0;background:transparent;color:var(--ink)}
.site-header .desktop-nav{margin:0 auto;gap:30px}
.site-header .header__nav-card .desktop-nav a{min-height:44px;padding:0;color:var(--ink);border-radius:0;font:650 14px/1.2 var(--head)}
.site-header .header__nav-card .desktop-nav a:hover{background:transparent;color:var(--ocean)}
.site-header .header__actions{gap:0}
.site-header .header__phone{display:none}
.button--conversation{min-height:52px;justify-content:space-between;gap:24px;padding:10px 16px 10px 18px;border-color:transparent;border-radius:8px;background:var(--ocean);color:#fff}
.button--conversation:hover{background:#0b4e50;color:#fff}
.button--conversation img{width:24px;height:24px;flex:none;transition:transform var(--motion-fast) var(--motion-ease)}
.button--conversation:hover img,.button--conversation:focus-visible img{transform:translate(2px,-1px)}
.site-header .header__cta{min-width:238px;min-height:52px;padding-inline:18px;background:var(--ocean);color:#fff}
.site-header .header__cta:hover{background:#0b4e50}
.menu-toggle{width:auto;min-width:70px;height:44px;display:none;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.menu-toggle__label{width:auto!important;height:auto!important;background:none!important;font:650 13px/1 var(--head)}
.mobile-menu__close{position:relative}
.mobile-menu__close span{position:absolute;display:block;width:19px;height:1.5px;background:currentColor}
.mobile-menu__close span:first-child{transform:rotate(45deg)}
.mobile-menu__close span:last-child{transform:rotate(-45deg)}

.site-footer{position:relative;padding:32px 0 30px;background:#091a25;color:#fff}
.site-footer .footer__grid{width:calc(100% - 80px);max-width:1240px;display:grid;grid-template-columns:1.15fr 2fr 1fr 1.35fr;align-items:start;gap:28px;margin-inline:auto;padding:0}
.site-footer .brand--light .brand__wordmark{width:368px;height:auto;object-fit:contain}
.site-footer .footer__tagline{max-width:280px;margin:16px 0 0;color:#aebdc2;font-size:13px;line-height:1.5}
.footer__nav{display:flex;flex-wrap:wrap;gap:8px 30px;padding-top:2px}
.footer__nav a,.footer__contact a,.footer__documents a,.footer__documents button{min-height:32px;display:inline-flex;align-items:center;padding:4px 0;border:0;background:none;color:#fff;font:650 13px/1.35 var(--head);text-decoration:none}
.footer__nav a:hover,.footer__contact a:hover,.footer__documents a:hover,.footer__documents button:hover{color:var(--amber)}
.footer__contact{display:flex;align-items:flex-start;flex-direction:column}
.footer__documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:flex-start;column-gap:16px;row-gap:0}
.footer__contact span{color:#9eb0b6;font-size:12px;line-height:1.5}
.footer__documents a,.footer__documents button{min-height:28px;color:#9eb0b6;font:400 12px/1.4 var(--body);text-decoration:none}
.footer__copyright{position:absolute;right:50%;bottom:12px;transform:translateX(50%);margin:0;color:#9eb0b6;font-size:12px;line-height:1.2;text-align:center;white-space:nowrap}

.page-contact-r3{background:#f6f2ea}
.contact-r3-hero{min-height:570px;padding:94px 0 70px;background:var(--ocean-deep);color:#fff}
.contact-r3-kicker,.system-r3-kicker{margin:0;color:var(--amber);font:600 11px/1.35 var(--mono);letter-spacing:.04em;text-transform:uppercase}
.contact-r3-hero h1{max-width:1100px;margin:36px 0 28px;color:#fff;font-size:clamp(54px,5.4vw,76px);line-height:.98;letter-spacing:-.055em;text-wrap:balance}
.contact-r3-lead{max-width:700px;margin:0;color:#c5d1d3;font-size:18px;line-height:1.55;text-wrap:pretty}
.contact-r3-cta{min-width:230px;margin-top:30px}
.contact-r3-assessment{padding:76px 0 34px;background:#f6f2ea}
.contact-r3-kicker--ocean{color:#177c91}
.contact-r3-assessment h2{max-width:760px;margin:28px 0 36px;font-size:clamp(42px,4vw,58px);line-height:1.03;letter-spacing:-.05em}
.contact-r3-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.contact-r3-facts article{min-height:180px;padding:20px;border-radius:18px;background:#fff}
.contact-r3-facts span,.contact-r3-direct>span{color:#177c91;font:600 11px/1.3 var(--mono);letter-spacing:.03em;text-transform:uppercase}
.contact-r3-facts h3{margin:0 0 8px;font-size:24px;line-height:1.15;letter-spacing:-.035em}
.contact-r3-facts p{margin:0;color:#6b7477;font-size:14px;line-height:1.5}
.contact-r3-direct{margin-top:46px;padding:24px 22px 28px;border-radius:18px;background:#177c91;color:#fff}
.contact-r3-direct>span{color:#d8edf0}
.contact-r3-direct a{display:block;width:max-content;max-width:100%;margin-top:22px;color:#fff;font:650 clamp(26px,3.1vw,38px)/1.15 var(--head);letter-spacing:-.035em;text-decoration:none;overflow-wrap:anywhere}
.contact-r3-direct p{margin:14px 0 0;color:#d8edf0;font-size:14px}

.page-legal-r3{background:#f6f2ea}
.page-legal-r3 .legal-page{width:min(calc(100% - 48px),1080px);max-width:none;padding:80px 0 96px}
.page-legal-r3 .legal-page__header{max-width:920px;padding:0 0 42px;border:0}
.page-legal-r3 .legal-page__header:before{content:"Документ · Weborka";display:block;margin-bottom:26px;color:#177c91;font:600 11px/1.3 var(--mono);letter-spacing:.04em;text-transform:uppercase}
.page-legal-r3 .legal-page__header h1{max-width:920px;margin:0 0 22px;font-size:clamp(54px,5vw,72px);line-height:1;letter-spacing:-.055em}
.page-legal-r3 .legal-page__meta{margin:0 0 20px!important;color:#177c91!important;font-size:10px}
.page-legal-r3 .legal-lead{max-width:760px!important;margin:0;color:#748083;font-size:18px}
.legal-page__document{padding:34px 40px 52px;border-radius:20px;background:#fff}
.legal-page__document>:first-child{margin-top:0}

.system-r3-error{min-height:812px;display:flex;align-items:flex-start;padding:82px 0 110px;background:var(--ocean-deep);color:#fff}
.system-r3-error strong{display:block;color:#177c91;font:700 clamp(108px,14vw,180px)/.8 var(--head);letter-spacing:-.09em}
.system-r3-error .system-r3-kicker{margin-top:44px}
.system-r3-error h1{max-width:900px;margin:30px 0 16px;color:#fff;font-size:clamp(50px,5vw,68px);line-height:1;letter-spacing:-.05em}
.system-r3-copy{max-width:680px;margin:0;color:#c5d1d3;font-size:18px;line-height:1.55}
.system-r3-error .button{min-width:250px;margin-top:38px}

@media(max-width:1000px){
  .site-header .header__inner{width:calc(100% - 64px);min-height:80px}
  .site-header .brand__wordmark{width:328px}
  .site-header .header__nav-card{display:none}
  .site-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .site-footer .footer__grid{width:calc(100% - 64px);grid-template-columns:1.2fr 1.8fr 1fr;gap:24px}
  .site-footer .brand--light .brand__wordmark{width:328px}
  .footer__documents{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,max-content);gap:0 24px}
  .contact-r3-hero{min-height:620px;padding-top:92px}
}

@media(max-width:620px){
  .site-header .header__inner{width:100%;min-height:72px;display:flex;padding:0 20px}
  .site-header .brand{width:auto;height:auto;padding:0}
  .site-header .brand__wordmark{width:min(290px,calc(100vw - 120px));height:auto}
  .site-header .menu-toggle{display:inline-flex;grid-column:auto;grid-row:auto}
  .site-footer{padding:28px 0 26px}
  .site-footer .shell{width:calc(100% - 40px)}
  .site-footer .footer__grid{width:calc(100% - 40px);grid-template-columns:1fr;gap:22px}
  .site-footer .brand--light .brand__wordmark{width:330px}
  .site-footer .footer__tagline{max-width:100%;margin-top:14px;font-size:12px}
  .footer__nav{display:none}
  .footer__contact a{font-size:12px}
  .footer__documents{grid-column:auto;display:flex;gap:0}
  .footer__documents a,.footer__documents button{min-height:28px;font-size:11px}
  .footer__copyright{bottom:4px}
  .contact-r3-hero{min-height:590px;padding:72px 0 64px}
  .page-contact-r3 .shell{width:calc(100% - 40px)}
  .contact-r3-hero h1{max-width:350px;margin:28px 0 22px;font-size:43px;line-height:1.03}
  .contact-r3-lead{font-size:15px;line-height:1.55}
  .contact-r3-cta{width:100%;margin-top:28px}
  .contact-r3-assessment{padding:60px 0 34px}
  .contact-r3-assessment h2{margin:22px 0 26px;font-size:34px;line-height:1.05}
  .contact-r3-facts{grid-template-columns:1fr;gap:12px}
  .contact-r3-facts article{min-height:0;padding:20px;border-radius:16px}
  .contact-r3-facts h3{margin-top:0;font-size:21px}
  .contact-r3-facts p{font-size:13px}
  .contact-r3-direct{margin-top:30px;padding:22px 20px 28px;border-radius:16px}
  .contact-r3-direct a{font-size:24px}
  .page-legal-r3 .legal-page{width:calc(100% - 40px);padding:62px 0 70px}
  .page-legal-r3 .legal-page__header{padding-bottom:32px}
  .page-legal-r3 .legal-page__header:before{margin-bottom:22px;font-size:10px}
  .page-legal-r3 .legal-page__header h1{max-width:350px;font-size:43px;line-height:1.02}
  .page-legal-r3 .legal-lead{font-size:16px}
  .legal-page__document{padding:24px 18px 34px;border-radius:16px}
  .system-r3-error{min-height:912px;padding:82px 0 100px}
  .page-system-r3 .shell{width:calc(100% - 40px)}
  .system-r3-error strong{font-size:118px}
  .system-r3-error .system-r3-kicker{margin-top:44px}
  .system-r3-error h1{margin-top:26px;font-size:43px;line-height:1.03}
  .system-r3-copy{font-size:16px}
  .system-r3-error .button{width:100%;min-width:0}
}

@media(prefers-reduced-motion:reduce){
  .button--conversation,.button--conversation img{transition:none}
  .button--conversation:hover,.button--conversation:active{transform:none}
  .button--conversation:hover img,.button--conversation:focus-visible img{transform:none}
}

/* Specificity guard: legacy route styles must not restore older shell variants. */
body[class] .site-header{position:relative;top:auto;width:100%;padding:0;background:#fff;color:var(--ink)}
body[class] .site-header .header__inner{width:min(calc(100% - 48px),1312px);min-height:88px;display:flex;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body[class] .site-header .brand{width:auto;height:auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body[class] .site-header .brand__wordmark{width:368px;height:auto;object-fit:contain;object-position:center;content:normal}
body[class] .site-header .header__nav-card{width:auto;min-height:0;display:flex;flex:1;padding:0;border-radius:0;background:transparent;color:var(--ink)}
body[class] .site-header .header__nav-card .desktop-nav{display:flex;margin:0 auto;gap:30px}
body[class] .site-header .header__nav-card .desktop-nav a{min-height:44px;padding:0;color:var(--ink);border-radius:0}
body[class] .site-header .header__nav-card .desktop-nav a:hover{background:transparent;color:var(--ocean)}
body[class] .site-header .header__cta{display:inline-flex;min-width:238px;min-height:52px;background:var(--ocean);color:#fff}
body[class] .site-header .menu-toggle{background:#fff;color:var(--ink)}
body[class] .services-r2-button--accent,body[class] .detail-r2-button--accent{border-color:var(--ocean);background:var(--ocean);color:#fff}
body[class] .services-r2-button--accent:hover,body[class] .detail-r2-button--accent:hover{border-color:#0b4e50;background:#0b4e50;color:#fff}
body[class] .site-footer{width:100%;margin:0;padding:32px 0 30px;border-radius:0;background:#091a25;color:#fff}
body[class] .site-footer .footer__grid{width:calc(100% - 80px);max-width:1240px;display:grid;grid-template-columns:1.15fr 2fr 1fr 1.35fr;gap:28px;margin-inline:auto;padding:0}
body[class] .site-footer .brand__wordmark{width:368px;height:auto;object-fit:contain;object-position:center}

@media(max-width:1000px){
  body[class] .site-header .header__inner{width:calc(100% - 64px);min-height:80px}
  body[class] .site-header .brand__wordmark{width:328px}
  body[class] .site-header .header__nav-card{display:none}
  body[class] .site-header .header__cta{display:none}
  body[class] .site-header .menu-toggle{display:inline-flex}
  body[class] .site-footer .footer__grid{width:calc(100% - 64px);grid-template-columns:1.2fr 1.8fr 1fr;gap:24px}
  body[class] .site-footer .brand__wordmark{width:328px}
}

@media(max-width:620px){
  /* Header / Public, Device=Mobile: 16px rails and a fixed 48px menu control. */
  body[class] .site-header .header__inner{width:100%;min-height:72px;display:flex;padding:0 16px}
  body[class] .site-header .brand__wordmark{width:min(290px,calc(100vw - 120px));height:auto}
  body[class] .site-header .menu-toggle{width:48px;min-width:48px;height:48px;padding:0;display:inline-flex;grid-column:auto;grid-row:auto;margin-left:auto;flex:none}
  body[class] .site-footer{width:100%;margin:0;padding:28px 0 26px;border-radius:0}
  body[class] .site-footer .footer__grid{width:calc(100% - 40px);grid-template-columns:1fr;gap:22px}
  body[class] .site-footer .brand__wordmark{width:330px;height:auto}
}
