.site-header{position:sticky;top:0;z-index:50;background:rgba(243,240,233,.88);backdrop-filter:blur(18px);border-bottom:1px solid var(--color-line)}
.header-inner{min-height:82px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px}
.logo{display:flex;align-items:center;gap:10px;min-width:176px;flex-shrink:0}.logo img{display:block;width:176px;height:auto;max-width:100%;object-fit:contain}
.main-nav{justify-self:center}.main-nav ul{display:flex;align-items:center;gap:clamp(18px,2vw,34px)}
.main-nav a{font-size:14px;font-weight:600;transition:opacity var(--transition)}.main-nav a:hover{opacity:.55}
.header-actions{display:flex;align-items:center;gap:12px}.header-phone{font-size:14px;font-weight:700;white-space:nowrap}
.btn{min-height:52px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;border-radius:var(--radius-pill);font-weight:700;line-height:1;transition:transform var(--transition),background var(--transition),color var(--transition),border-color var(--transition)}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--color-accent);color:#111}.btn-primary:hover{background:var(--color-accent-hover)}
.btn-dark{background:#171717;color:#fff}.btn-outline{border:1px solid var(--color-text);color:var(--color-text)}
.icon-btn{width:48px;height:48px;border:1px solid var(--color-line);border-radius:50%;display:none;align-items:center;justify-content:center}
.icon-btn img{width:20px;height:20px}

.card{background:var(--color-surface);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-card)}
.pill{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border:1px solid currentColor;border-radius:var(--radius-pill);font-size:12px;font-weight:700}

.site-footer{background:var(--color-surface-dark);color:#fff;padding:64px 0 30px;margin-top:var(--section-y)}
.footer-top{display:grid;grid-template-columns:1.3fr .8fr .8fr 1fr;gap:36px;padding-bottom:48px;border-bottom:1px solid var(--color-line-dark)}
.footer-brand p{max-width:420px;margin-top:18px;color:rgba(255,255,255,.65)}
.footer-title{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.48);margin-bottom:16px}
.footer-links{display:grid;gap:10px}.footer-links a{color:rgba(255,255,255,.82)}
.footer-contact strong{font-size:clamp(24px,2.5vw,38px);letter-spacing:-.035em;line-height:1.05;display:block;margin-bottom:14px}
.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:24px;color:rgba(255,255,255,.42);font-size:12px}

.mobile-panel{display:none}

/* Client data / price blocks */
.logo img{display:block;width:176px;height:auto;max-height:none;object-fit:contain}
.footer-brand .logo img{width:204px;color:inherit;filter:none}
.data-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:34px}
.data-card{padding:22px;border:1px solid var(--color-line);border-radius:20px;background:var(--color-surface)}
.data-card strong{display:block;font-size:26px;line-height:1.05;letter-spacing:-.03em;margin-bottom:8px}
.data-card span{font-size:13px;color:var(--color-text-soft)}
.price-list{display:grid;gap:0;margin-top:34px;border-top:1px solid var(--color-line)}
.price-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;padding:18px 0;border-bottom:1px solid var(--color-line)}
.price-row .name{font-size:clamp(18px,2vw,24px)}
.price-row .price{font-size:clamp(18px,2vw,24px);font-weight:700;white-space:nowrap}
.price-note{margin-top:22px;max-width:760px;color:var(--color-text-soft)}
.trust-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;margin-top:30px}
.trust-list li{padding:14px 0;border-bottom:1px solid var(--color-line);display:flex;justify-content:space-between;gap:20px}
.trust-list span:last-child{font-weight:700;text-align:right}
@media(max-width:900px){.data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trust-list{grid-template-columns:1fr}}
@media(max-width:560px){.data-grid{grid-template-columns:1fr}.price-row{grid-template-columns:1fr;gap:6px}.logo{min-width:138px}.logo img{width:138px}.footer-brand .logo img{width:168px}}


/* Promo marquee */
.promo-marquee{
  position:relative;z-index:42;display:block;overflow:hidden;
  background:#171512;color:#d7b06a;border-bottom:1px solid rgba(215,176,106,.18);
  text-decoration:none;white-space:nowrap;
}
.promo-marquee__track{
  display:flex;width:max-content;align-items:center;
  animation:bro-marquee 24s linear infinite;will-change:transform;
}
.promo-marquee__track span{
  display:inline-flex;align-items:center;gap:12px;padding:11px 36px;
  font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
}
.promo-marquee__track b{font-weight:800;color:#f2d59a}
.promo-marquee:hover .promo-marquee__track{animation-play-state:paused}
@keyframes bro-marquee{from{transform:translateX(0)}to{transform:translateX(-33.3333%)}}
@media(max-width:680px){
  .promo-marquee__track{animation-duration:31s}
  .promo-marquee__track span{padding:10px 24px;font-size:11px;letter-spacing:.09em}
}
@media(prefers-reduced-motion:reduce){
  .promo-marquee__track{animation:none}
}

/* Logo v19: full visible mark on every page */
.logo{overflow:visible!important;min-width:190px!important;flex:0 0 auto!important}.logo img{display:block!important;width:190px!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:left center!important;overflow:visible!important}.footer-brand .logo{min-width:220px!important}.footer-brand .logo img{width:220px!important;filter:none!important}
@media(max-width:760px){.logo{min-width:132px!important}.logo img{width:132px!important}.footer-brand .logo{min-width:170px!important}.footer-brand .logo img{width:170px!important}}


/* Header messenger icons */
.header-brand{display:flex;align-items:center;gap:12px;min-width:0}
.header-messengers{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.header-messenger{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;transition:transform .2s ease,opacity .2s ease,background .2s ease;flex:0 0 28px}
.header-messenger:hover{transform:translateY(-2px) scale(1.06);opacity:.92}
.header-messenger img{display:block;width:25px;height:25px;object-fit:contain}
.site-header--home .header-messenger{background:rgba(255,255,255,.05)}
.site-header:not(.site-header--home) .header-messenger{background:rgba(0,0,0,.05)}
@media(max-width:760px){
  .header-brand{gap:7px}
  .header-messengers{gap:5px}
  .header-messenger{width:24px;height:24px;flex-basis:24px}
  .header-messenger img{width:22px;height:22px}
}
@media(max-width:380px){
  .header-brand{gap:5px}
  .header-messenger{width:22px;height:22px;flex-basis:22px}
  .header-messenger img{width:20px;height:20px}
}


/* ===== Header messenger alignment v35 — compact beside logo ===== */
.header-brand{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  min-width:0!important;
  width:max-content!important;
}
.header-brand .logo{margin:0!important;flex:0 0 auto!important}
.header-messengers{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:5px!important;
  margin:0 0 0 1px!important;
  width:auto!important;
  height:20px!important;
  flex:0 0 auto!important;
}
.header-messenger{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  flex:0 0 18px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:4px!important;
  background:transparent!important;
  line-height:0!important;
  overflow:hidden!important;
}
.header-messenger img{
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  object-fit:contain!important;
}
@media(max-width:760px){
  .header-brand{gap:5px!important}
  .header-messengers{gap:4px!important;height:18px!important}
  .header-messenger,.header-messenger img{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-basis:16px!important}
}


/* Header messenger buttons beside the calculator CTA */
.header-quick-messengers{
  display:flex;align-items:center;gap:8px;flex:0 0 auto;
}
.header-quick-messenger{
  width:38px;height:38px;min-width:38px;display:grid;place-items:center;
  border-radius:10px;overflow:hidden;text-decoration:none;
  box-shadow:0 5px 15px rgba(0,0,0,.12);
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.header-quick-messenger:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.18)}
.header-quick-messenger img{display:block;width:100%;height:100%;object-fit:cover}
.header-quick-messenger--telegram{background:#3da5e8}
.header-quick-messenger--max{background:#6750e9}
@media(max-width:760px){
  .header-quick-messengers{gap:6px}
  .header-quick-messenger{width:32px;height:32px;min-width:32px;border-radius:9px;box-shadow:none}
}
@media(max-width:390px){
  .header-quick-messenger{width:29px;height:29px;min-width:29px;border-radius:8px}
}

.site-header .header-brand > .header-messengers{display:none!important}


/* ===== Delayed contact popup (60 sec) ===== */
.contact-nudge{
  position:fixed;right:22px;bottom:22px;z-index:95;
  width:min(360px,calc(100vw - 32px));
  padding:18px 18px 16px;border:1px solid rgba(216,183,125,.34);
  border-radius:20px;background:rgba(24,21,17,.97);color:#fff;
  box-shadow:0 22px 60px rgba(0,0,0,.28);backdrop-filter:blur(16px);
  opacity:0;visibility:hidden;transform:translateY(18px) scale(.98);
  transition:opacity .25s ease,transform .25s ease,visibility .25s ease;
}
.contact-nudge.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.contact-nudge__close{
  position:absolute;top:9px;right:9px;width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);color:#fff;font-size:22px;line-height:1;cursor:pointer;
}
.contact-nudge__eyebrow{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#dfbf8b;font-weight:800;padding-right:38px}
.contact-nudge h3{font-size:20px;line-height:1.18;margin-top:7px;padding-right:38px;color:#fff}
.contact-nudge p{font-size:12px;line-height:1.5;color:rgba(255,255,255,.62);margin-top:7px}
.contact-nudge__messengers{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:14px}
.contact-nudge__messengers a{min-height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:800;color:#fff}
.contact-nudge__tg{background:#229ED9}.contact-nudge__wa{background:#1f9d62}.contact-nudge__max{background:linear-gradient(135deg,#18b8ed,#6a37f5)}
.contact-nudge__phones{display:flex;gap:7px;margin-top:8px}
.contact-nudge__phones a{flex:1;min-width:0;padding:10px 8px;border-radius:11px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);font-size:11px;font-weight:700;text-align:center;color:#fff;white-space:nowrap}
@media(max-width:650px){
  .contact-nudge{right:12px;left:12px;bottom:86px;width:auto;padding:15px 15px 14px;border-radius:17px}
  .contact-nudge h3{font-size:17px}.contact-nudge p{font-size:11px;margin-top:5px}
  .contact-nudge__messengers{margin-top:11px}.contact-nudge__messengers a{min-height:40px;font-size:10px}
  .contact-nudge__phones a{font-size:10px;padding:9px 5px}
  .contact-nudge__close{width:32px;height:32px}
}
@media(max-width:380px){.contact-nudge__phones{display:grid;grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.contact-nudge{transition:none}}

/* Telegram form states */
.form-tech-note.is-success,.review-form__status.is-success{color:#b8d79a!important}
.form-tech-note.is-error,.review-form__status.is-error{color:#ffb3a7!important}

/* mobile phone chooser v52 */
.mobile-phone-toggle,.mobile-phone-menu{display:none}
.mobile-phone-menu[hidden]{display:none!important}
@media(max-width:760px){
  .header-actions{position:relative;align-items:center}
  .header-contact,.header-actions>.header-phone{display:none!important}
  .mobile-phone-toggle{display:grid!important;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;border:1px solid rgba(222,187,130,.7);border-radius:50%;background:#dfbd82;color:#16120e;padding:0;cursor:pointer;box-shadow:0 5px 16px rgba(0,0,0,.16);position:relative;z-index:30;font-size:0;line-height:0;overflow:hidden}
  .mobile-phone-toggle__icon{display:block;width:20px;height:20px;pointer-events:none}
  .site-header--home .mobile-phone-toggle{background:rgba(222,187,130,.96);border-color:#dfbd82;color:#17130f}
  .mobile-phone-toggle:active{transform:scale(.95)}
  .mobile-phone-toggle[aria-expanded="true"]{background:#171411;color:#dfbd82;border-color:#dfbd82}
  .mobile-phone-menu{position:absolute;right:0;top:calc(100% + 10px);width:270px;max-width:calc(100vw - 24px);padding:10px;background:#171411;color:#fff;border:1px solid rgba(222,187,130,.26);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.36);z-index:9999}
  .mobile-phone-menu:not([hidden]){display:grid!important;gap:8px}
  .mobile-phone-menu__title{padding:4px 6px 7px;color:#d9b77f;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
  .mobile-phone-menu a{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.07);color:#fff;text-decoration:none;white-space:normal}
  .mobile-phone-menu a span{font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:rgba(255,255,255,.5)}
  .mobile-phone-menu a strong{font-size:16px;line-height:1.2;color:#fff;font-weight:700}
  .mobile-phone-menu a:active{background:rgba(222,187,130,.17)}
}
