
/*
Theme Name: OptOkna
Description: Тема WordPress из статических файлов. Исправление: hero сохранён, добавлен home.php и шаблон Landing.
Version: 1.0.2
Text Domain: optokna
*/

*,*:before,*:after{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;display:block}

:root{
  --bg:#fff;
  --text:#0a0a0a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#111827;
  --accent:#f97316;
  --btn-bg:#111827;
  --btn-fg:#fff;
  --btn-h:36px
}

body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  letter-spacing:.01em
}

.container{
  width:min(1200px,92vw);
  margin-inline:auto
}

/* Header Styles */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(10px);
  opacity:1;
  transform:translateY(0);
  transition:transform .35s,background-color .2s,backdrop-filter .2s,box-shadow .2s
}

.topbar.topbar--scrolled{
  background:rgba(255,255,255,.7);
  box-shadow:0 8px 24px rgba(0,0,0,.06)
}

.topbar.topbar--hidden{
  transform:translateY(-100%)
}

.topbar.topbar--affixed{
  transform:translateY(0)
}

.topbar-inner{
  display:grid;
  align-items:center;
  gap:24px;
  padding:10px 4px;
  grid-template-columns:1fr auto 1fr
}

/* Progress Bar Styles */
.scroll-progress{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:2px;
  background:rgba(229,231,235,.3);
  overflow:hidden
}

.scroll-progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--accent) 0%, #ea580c 100%);
  transition:width .1s ease-out;
  border-radius:0 1px 1px 0
}

.brand{
  display:flex;
  align-items:baseline;
  gap:16px;
  justify-self:start
}

.logo{
  font-weight:800;
  letter-spacing:.02em;
  color:inherit;
  text-decoration:none;
  display:inline-flex;
  align-items:baseline
}

.logo .accent{
  color:var(--accent)
}

.tagline{
  color:var(--muted);
  font-size:14px
}

.nav{
  display:flex;
  gap:28px;
  font-size:14px;
  justify-self:center;
  align-items:center;
  position:relative
}

.nav a{
  display:inline-flex;
  align-items:center;
  color:#111827;
  text-decoration:none;
  position:relative;
  padding-bottom:6px;
  transition:color .25s
}

.nav a:after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:2px;
  width:100%;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .25s
}

.nav a:hover{
  color:var(--accent)
}

.nav a:hover:after{
  transform:scaleX(1)
}

.nav-item{
  position:relative
}

.nav-item>.has-dropdown{
  height:var(--btn-h);
  padding-bottom:6px;
  display:inline-flex;
  align-items:center;
  gap:6px
}

.nav-item>.has-dropdown:before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-left:4px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
  opacity:.7;
  transition:transform .2s,opacity .2s
}

.nav-item.open>.has-dropdown:before{
  transform:rotate(225deg);
  opacity:.95
}

.dropdown{
  position:fixed;
  top:var(--topbar-h,64px);
  left:50%;
  transform:translateX(-50%) translateY(0);
  min-width:240px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.08);
  padding:8px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:100
}

.nav-item.open .dropdown{
  opacity:1;
  pointer-events:auto
}

.dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:#111827;
  text-decoration:none;
  font-size:14px
}

.dropdown a:hover{
  background:rgba(249,115,22,.1);
  color:#111827
}

.cta-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  justify-self:end
}

.cta-wrap .btn{
  height:var(--btn-h);
  min-height:var(--btn-h);
  padding:0 12px;
  font-size:14px;
  font-weight:500
}

/* Button Styles */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  height:var(--btn-h);
  min-height:var(--btn-h);
  line-height:1;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
  border:1px solid transparent;
  transition:transform .06s,box-shadow .2s,background .2s,color .2s,border-color .2s;
  box-sizing:border-box
}

.btn:hover{
  transform:translateY(-1px)
}

.btn-outline{
  border-color:#111827;
  color:#111827;
  background:transparent
}

.btn-outline:hover{
  background:#111827;
  color:#fff
}

.btn-dark{
  background:var(--btn-bg);
  color:var(--btn-fg);
  border-color:var(--btn-bg)
}

.btn-dark:hover{
  background:#fff;
  color:#000;
  border-color:#000;
  box-shadow:none
}

/* Hero Section */
.hero{
  position:relative;
  padding-top:120px;
  padding-bottom:56px
}

.hero-title{
  font-size:clamp(34px,6vw,54px);
  line-height:1.02;
  letter-spacing:-.01em;
  font-weight:800;
  margin:0 0 18px
}

.hero-title .accent{
  color:var(--accent)
}

.hero-sub{
  font-size:16px;
  color:#111827;
  opacity:.95;
  margin:0 0 18px
}

.hero-sub .accent{
  color:var(--accent);
  font-weight:600
}

.br-lg{
  display:none
}

@media (min-width:840px){
  .br-lg{
    display:inline
  }
}

.hero-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#374151;
  font-size:15px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:18px;
  position:relative
}

.delivery{
  display:flex;
  align-items:center;
  gap:10px;
  position:relative;
  cursor:help
}

.delivery .pin{
  width:22px;
  height:22px;
  color:#111827;
  display:inline-flex;
  align-items:center;
  justify-content:center
}

.delivery .qmark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  font-size:12px;
  color:#111827
}

.tooltip{
  position:absolute;
  top:130%;
  left:32px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  border-radius:10px;
  padding:12px 14px;
  min-width:240px;
  opacity:0;
  transform:translateY(6px);
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:10
}

.tooltip:before{
  content:"";
  position:absolute;
  top:-6px;
  left:18px;
  width:10px;
  height:10px;
  background:#fff;
  border-left:1px solid var(--line);
  border-top:1px solid var(--line);
  transform:rotate(45deg)
}

.delivery:hover .tooltip,.delivery:focus-within .tooltip{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto
}

/* Hero Image and Overlays */
.hero-image{
  width:100%;
  overflow:visible;
  margin-top:18px;
  border-top:1px solid var(--line);
  position:relative
}

.hero-image img{
  width:100%;
  height:auto;
  display:block;
  transition:filter .7s,opacity .7s;
  position:relative;
  z-index:0
}

.hero-image.hero-image--bright img{
  filter:brightness(0.9) saturate(1.5);
  opacity:.3
}

.overlay-cards{
  position:absolute;
  left:0;
  right:0;
  top:35%;
  transform:translateY(-50%);
  z-index:4
}

.overlay-inner{
  width:min(1200px,92vw);
  margin:0 auto
}

.ov-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px
}

@media (max-width:960px){
  .ov-grid{
    grid-template-columns:1fr
  }
  .overlay-cards{
    position:static;
    transform:none;
    margin-top:12px
  }
}

.vcard{
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  border:1px solid rgba(229,231,235,.85);
  border-radius:14px;
  padding:16px 18px;
  box-shadow:0 14px 40px rgba(0,0,0,.08);
  transform:translateY(24px);
  opacity:0;
  transition:transform .5s,opacity .5s
}

.overlay-cards.show .vcard{
  transform:translateY(0);
  opacity:1
}

.vcard h3{
  margin:0 0 6px;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em
}

.vcard p{
  margin:0;
  color:#374151;
  font-size:14px
}

/* FIXED: Under Image Positioning for Mobile */
.under-image{
  position:absolute;
  left:50%;
  bottom:1%;
  z-index:3;
  overflow:hidden;
  width:min(50vw,700px);
  max-width:700px;
  min-width:420px;
  aspect-ratio:16/10;
  transform:translateX(-50%) translateY(30px) rotate(3.5deg);
  opacity:0;
  transition:transform .6s,opacity .6s;
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.18),0 6px 18px rgba(0,0,0,.12);
  border:6px solid #fff;
  background:#fff;
  isolation:isolate
}

.under-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important
}

.under-image.show{
  transform:translateX(-50%) translateY(0) rotate(3.5deg);
  opacity:1
}

/* MOBILE FIX: Move under-image below content on mobile */
@media (max-width:960px){
  .under-image{
    /* Remove absolute positioning on mobile */
    position:static;
    width:88vw;
    min-width:0;
    max-width:none;
    margin:40px auto 0;
    transform:translateY(30px) rotate(1.5deg);
    border-width:4px;
    left:auto;
    bottom:auto
  }
  .under-image.show{
    transform:translateY(0) rotate(1.5deg)
  }
  
  /* Ensure hero section has proper spacing */
  .hero{
    padding-bottom:20px
  }
  
  /* Add margin to section after hero to prevent overlap */
  .hero + .section{
    margin-top:60px
  }
}

/* Page Content Styles */
.page-header{
  padding-top:120px;
  padding-bottom:40px;
  text-align:center
}

.page-title{
  font-size:clamp(28px,4vw,42px);
  font-weight:800;
  letter-spacing:-.01em;
  margin:0 0 16px
}

.page-subtitle{
  font-size:18px;
  color:var(--muted);
  margin:0;
  max-width:800px;
  margin-left:auto;
  margin-right:auto
}

.section{
  padding:56px 0
}

.section-title{
  font-size:clamp(24px,3vw,32px);
  font-weight:800;
  letter-spacing:-.01em;
  margin:0 0 18px
}

.section-subtitle{
  color:#6b7280;
  margin:0 0 24px
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px
}

@media (max-width:1100px){
  .cards{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}

@media (max-width:840px){
  .cards{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media (max-width:540px){
  .cards{
    grid-template-columns:1fr
  }
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
  transition:transform .18s,box-shadow .2s
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 34px rgba(0,0,0,.08)
}

.card-img{
  aspect-ratio:16/10;
  width:100%;
  object-fit:cover
}

.card-body{
  padding:14px 14px 16px
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:rgba(249,115,22,.12);
  color:var(--accent);
  border:1px solid rgba(249,115,22,.35)
}

.meta{
  margin-top:10px;
  font-size:14px;
  color:#374151
}

.meta-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:6px 0;
  border-bottom:1px dashed #e5e7eb
}

.meta-row:last-child{
  border-bottom:none
}

.price{
  margin-top:10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between
}

.price .sum{
  font-weight:800;
  font-size:20px
}

.price .sum-old{
  font-size:14px;
  color:#9ca3af;
  text-decoration:line-through;
  margin-bottom:2px;
  display:block;
  line-height:1
}

.price .lead{
  font-size:13px;
  color:#6b7280
}

.price .sum-wrap{
  text-align:right;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-end
}

/* Steps */
.steps{
  padding:56px 0 70px;
  background:#fcfcfc
}

.steps .title{
  font-size:clamp(24px,3vw,32px);
  font-weight:800;
  letter-spacing:-.01em;
  margin:0 0 10px
}

.steps .subtitle{
  color:#6b7280;
  margin:0 0 24px
}

.steps-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  counter-reset:step
}

@media (max-width:900px){
  .steps-grid{
    grid-template-columns:1fr
  }
}

.step{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 18px 18px 80px;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
  position:relative
}

.step:before{
  counter-increment:step;
  content:counter(step);
  position:absolute;
  top:50%;
  left:18px;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:16px;
  background:linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
  color:#fff;
  font-weight:800;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(249,115,22,.3)
}

.step h3{
  margin:0 0 8px;
  font-size:18px;
  font-weight:800
}

.step p{
  margin:0;
  color:#374151;
  font-size:14px
}

/* Footer */
.footer{
  background:#0f172a;
  color:#e5e7eb;
  padding:48px 0 20px;
  margin-top:12px
}

.footer a{
  color:#e5e7eb;
  text-decoration:none;
  opacity:.9
}

.footer a:hover{
  opacity:1;
  color:#fff
}

.foot-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:28px
}

.foot-title{
  font-weight:700;
  font-size:14px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#cbd5e1;
  margin:0 0 12px
}

.foot-brand{
  display:flex;
  flex-direction:column;
  gap:12px
}

.foot-logo{
  font-weight:800;
  letter-spacing:.02em;
  color:#fff
}

.foot-logo .accent{
  color:var(--accent)
}

.foot-note{
  color:#94a3b8;
  font-size:14px
}

.foot-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:10px;
  font-size:14px
}

.foot-contact p{
  margin:6px 0;
  color:#cbd5e1;
  font-size:14px
}

.subscribe{
  background:rgba(148,163,184,.08);
  border:1px solid rgba(148,163,184,.25);
  border-radius:12px;
  padding:8px;
  display:flex;
  gap:6px
}

.subscribe input{
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:#e5e7eb;
  font-size:13px;
  padding:8px 10px;
  min-width:0
}

.subscribe input::placeholder{
  color:#94a3b8
}

.subscribe button{
  background:var(--accent);
  color:#0b0b0b;
  border:none;
  padding:8px 12px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
  font-size:13px;
  white-space:nowrap
}

.subscribe button:hover{
  filter:brightness(1.05)
}

.socials{
  display:flex;
  gap:10px;
  margin-top:10px
}

.socials a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:rgba(148,163,184,.12);
  border:1px solid rgba(148,163,184,.2)
}

.socials a:hover{
  background:rgba(148,163,184,.2)
}

.foot-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid rgba(148,163,184,.2);
  margin-top:28px;
  padding-top:14px;
  color:#94a3b8;
  font-size:13px;
  flex-wrap:wrap;
  gap:8px
}

.foot-legal{
  display:flex;
  gap:16px
}

/* FAQ Styles */
.faq{
  padding:56px 0 84px;
  background:#fff
}

.faq .container{
  width:min(1200px,92vw);
  margin-inline:auto
}

.faq-title{
  margin:0 auto 20px;
  font-size:clamp(22px,2.6vw,28px);
  font-weight:800;
  letter-spacing:-.01em;
  text-align:center
}

.faq-list{
  border:0
}

.faq-item{
  --faq-dur:.5s
}

.faq-in{
  width:100%;
  margin:0 auto;
  padding:0
}

.faq-item>summary{
  list-style:none;
  cursor:pointer;
  display:block
}

.faq-item>summary::-webkit-details-marker{
  display:none
}

.faq-card{
  position:relative;
  max-width:1000px;
  margin:14px auto;
  padding:22px 64px 22px 24px;
  border:1px solid #e6e9ef;
  border-radius:16px;
  background:#fff;
  box-shadow:0 1px 2px rgba(17,24,39,.04);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  transition:box-shadow .2s,border-color .2s,background .2s
}

.faq-item>summary:hover .faq-card{
  background:#fcfcff;
  box-shadow:0 6px 20px rgba(17,24,39,.06)
}

.faq-item[open]>summary .faq-card{
  border-color:#e7ebf2;
  box-shadow:0 10px 28px rgba(17,24,39,.07)
}

.faq-q{
  margin:0;
  color:#111827;
  font-weight:400;
  font-size:clamp(18px,2.1vw,22px);
  letter-spacing:-.005em;
  flex:1
}

.faq-icon{
  flex:0 0 32px;
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #e6e9ef;
  box-shadow:inset 0 -1px 0 rgba(17,24,39,.04);
  transition:transform var(--faq-dur)
}

.faq-icon:before{
  content:"";
  display:block;
  width:12px;
  height:12px;
  border-right:2px solid #111827;
  border-bottom:2px solid #111827;
  transform:rotate(45deg);
  transition:transform var(--faq-dur)
}

.faq-item[open] .faq-icon:before{
  transform:rotate(-135deg)
}

.faq-a{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-6px);
  transition:max-height var(--faq-dur) ease,opacity var(--faq-dur) ease,transform var(--faq-dur) ease
}

.faq-item[open] .faq-a{
  opacity:1;
  transform:translateY(0)
}

.faq-a>.faq-in{
  max-width:1000px;
  margin:0 auto;
  padding:0 24px 18px;
  color:#374151;
  font-size:15px;
  line-height:1.7
}

.faq-a p{
  margin:0 0 10px
}

.faq-a ul{
  margin:6px 0 10px 18px
}

/* Form Styles */
.form-group{
  margin-bottom:20px
}

.form-label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:#111827
}

.form-input,.form-textarea{
  width:100%;
  padding:12px 16px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:14px;
  transition:border-color .2s,box-shadow .2s
}

.form-input:focus,.form-textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(249,115,22,.1)
}

.form-textarea{
  resize:vertical;
  min-height:120px
}

/* SEO Text */
.seo-text{
  padding:8px 0 40px
}

.seo-text p{
  color:#4b5563;
  font-size:15px;
  max-width:900px;
  margin:0 auto;
  text-align:center
}

.seo-text a{
  color:var(--accent);
  text-decoration:none
}

/* Utility Classes */
.mt-14{
  margin-top:14px
}

.center{
  display:flex;
  justify-content:center;
  margin:8px 0 40px
}

.text-center{
  text-align:center
}

.visually-hidden{
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0
}

/* Mobile Menu Styles - COMPLETELY REWRITTEN */
@media (max-width:900px){
  .topbar-inner{
    grid-template-columns:1fr auto;
    align-items:center;
    padding:8px 12px;
    gap:12px
  }
  .brand{
    flex-direction:column;
    align-items:flex-start;
    gap:2px
  }
  .logo{
    font-size:16px
  }
  .tagline{
    font-size:11px;
    opacity:.85;
    white-space:nowrap
  }
  .desktop-nav{
    display:none
  }
  .cta-wrap{
    gap:6px
  }
  .cta-wrap .btn{
    height:30px;
    min-height:30px;
    padding:0 8px;
    font-size:12px
  }
  .hero-meta{
    flex-direction:column;
    align-items:stretch;
    gap:12px
  }
  .delivery{
    width:100%
  }
  .hero-meta .btn{
    align-self:center
  }
  .burger{
    display:flex!important
  }
}

@media (min-width:901px){
  .burger{
    display:none!important
  }
}

.burger{
  display:none;
  position:relative;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  flex-shrink:0;
  flex-direction:column;
  justify-content:center;
  align-items:center
}

.burger span{
  position:absolute;
  left:8px;
  right:8px;
  height:2px;
  background:#111827;
  border-radius:1px;
  transform-origin:center;
  transition:all .3s ease
}

.burger span:nth-child(1){
  top:11px
}

.burger span:nth-child(2){
  top:17px
}

.burger span:nth-child(3){
  top:23px
}

/* Mobile Panel - FIXED */
.mobile-panel{
  position:fixed;
  top:var(--topbar-h,64px);
  left:0;
  right:0;
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
  box-shadow:0 12px 28px rgba(0,0,0,.08);
  padding:12px;
  z-index:60;
  max-height:calc(100vh - var(--topbar-h,64px));
  overflow-y:auto;
  
  /* Initially hidden */
  opacity:0;
  visibility:hidden;
  transform:translateY(-20px);
  transition:all .3s ease
}

/* Show mobile panel when menu is open */
.topbar.mobile-open .mobile-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0)
}

.mobile-nav{
  display:grid;
  gap:8px
}

.mobile-nav > a{
  display:block;
  padding:12px 14px;
  border-radius:10px;
  color:#111827;
  text-decoration:none;
  font-weight:500;
  transition:background .2s
}

.mobile-nav > a:hover{
  background:rgba(249,115,22,.1)
}

.mobile-dropdown{
  border-radius:10px;
  overflow:hidden
}

.mobile-dropdown-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background:transparent;
  border:none;
  color:#111827;
  font-size:16px;
  font-weight:500;
  cursor:pointer;
  text-align:left;
  transition:background .2s;
  border-radius:10px
}

.mobile-dropdown-toggle:hover{
  background:rgba(249,115,22,.1)
}

.mobile-arrow{
  font-size:12px;
  transition:transform .3s ease
}

.mobile-dropdown-toggle[aria-expanded="true"] .mobile-arrow{
  transform:rotate(180deg)
}

.mobile-dropdown-content{
  background:rgba(249,115,22,.05);
  border-top:1px solid rgba(249,115,22,.1);
  overflow:hidden;
  max-height:0;
  transition:max-height .3s ease
}

.mobile-dropdown-content.open{
  max-height:400px
}

.mobile-dropdown-content a{
  display:block;
  padding:10px 24px;
  color:#111827;
  text-decoration:none;
  font-size:14px;
  transition:background .2s
}

.mobile-dropdown-content a:hover{
  background:rgba(249,115,22,.1)
}

/* Burger animation when open */
.topbar.mobile-open .burger span:nth-child(1){
  top:17px;
  transform:rotate(45deg)
}

.topbar.mobile-open .burger span:nth-child(2){
  opacity:0
}

.topbar.mobile-open .burger span:nth-child(3){
  top:17px;
  transform:rotate(-45deg)
}

/* Responsive Design */
@media (min-width:1024px){
  :root{
    --btn-h:44px
  }
  .topbar-inner{
    padding:12px 4px;
    grid-template-columns:.9fr auto 1.1fr
  }
  .nav{
    top:3px
  }
  .hero-image.hero-image--bright img{
    opacity:.32
  }
}

@media (max-width:980px){
  .foot-grid{
    grid-template-columns:1fr 1fr
  }
}

@media (max-width:640px){
  .foot-grid{
    grid-template-columns:1fr
  }
  .foot-contact .subscribe{
    flex-direction:column;
    gap:8px
  }
  .foot-legal{
    flex-direction:column;
    gap:8px
  }
}

@media (prefers-reduced-motion:reduce){
  *{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important
  }
  .faq-a{
    transition:none
  }
}

/* ==== Progress bar repaint fix (WordPress) ==== */
.topbar{ border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.scroll-progress{
  position:absolute; left:0; right:0; bottom:0;
  height:3px;
  background: rgba(229,231,235,.25);
  pointer-events:none; overflow:hidden;
  contain: paint;
  z-index: 3;
}
.scroll-progress-bar{
  width:100%; height:100%;
  background: linear-gradient(90deg, var(--accent) 0%, #ea580c 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform .08s linear;
}
/* ============================================= */


/* ==== Progress bar outside topbar (artifact fix) ==== */
.topbar .scroll-progress{ display:none !important; } /* hide in-topbar bar if left in markup */

.scroll-progress-fixed{
  position: fixed;
  top: var(--topbar-h, 64px);
  left: 0; right: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
  z-index: 60;
  contain: layout paint;
  isolation: isolate;
}
.scroll-progress-fixed .scroll-progress-bar{
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #ea580c 100%);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  backface-visibility: hidden;
}
/* ================================================ */


/* ===== Fancy 404 ===== */
.notfound{ padding: 80px 0; background: linear-gradient(180deg, #fff 0%, #fcfcff 100%); }
.notfound-in{ display:grid; grid-template-columns:1.4fr 1fr; gap:32px; align-items:start; }
@media (max-width: 900px){ .notfound-in{ grid-template-columns:1fr; } }
.nf-hero{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:24px; box-shadow:0 10px 28px rgba(17,24,39,.06); }
.nf-code{ font-size:clamp(56px,12vw,120px); line-height:1; font-weight:900; letter-spacing:-.03em; color:#0f172a; }
.nf-title{ margin:6px 0 8px; font-size:clamp(22px,3vw,32px); font-weight:800; }
.nf-sub{ margin:0 0 14px; color:#6b7280; }
.nf-actions{ display:flex; gap:10px; margin:10px 0 16px; }
.nf-search input[type='search']{ width:100%; padding:12px 14px; border:1px solid #d1d5db; border-radius:10px; }
/* Suggestions */
.nf-suggestions{ background:#fff; border:1px dashed var(--line); border-radius:16px; padding:20px; }
.nf-sg-title{ margin:0 0 12px; font-size:16px; text-transform:uppercase; letter-spacing:.08em; color:#6b7280; }
.nf-links{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.nf-links a{ text-decoration:none; color:#111827; }
.nf-links a:hover{ color:var(--accent); }
/* ===== Hint Bubble under LK button ===== */
.hero-meta{ position: relative; }
.login-hint{
  position: absolute; right: 0; top: calc(100% + 18px);
  display: flex; gap: 10px; align-items: flex-start;
  width: clamp(260px, 28vw, 340px);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  animation: loginHintIn .35s ease both .2s;
}
.login-hint:after{
  content:""; position:absolute; top:-7px; right: 48px;
  width:12px; height:12px; transform:rotate(45deg);
  background:#fff; border-left:1px solid var(--line); border-top:1px solid var(--line);
}
.login-hint .i{
  flex:0 0 22px; width:22px; height:22px; display:inline-grid; place-items:center;
  border-radius:999px; border:1px solid #cbd5e1; color:#111827; font-size:12px; font-weight:700;
}
.login-hint p{ margin:0; color:#374151; font-size:14px; line-height:1.5; }
@keyframes loginHintIn{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none;} }
@media (max-width: 900px){
  .login-hint{ position: static; width:auto; margin-top:12px; }
  .login-hint:after{ display:none; }
}


/* Footer messenger text buttons */
.footer-m-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:36px;
  padding:0 12px;
  margin-right:8px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  color:#e5e7eb;
  font-weight:600;
  text-decoration:none;
}
.footer-m-btn:hover{
  background:rgba(249,115,22,.12);
  border-color:rgba(249,115,22,.35);
  color:#fff;
}


/* Footer messengers — deterministic block */
.footer-messengers{display:flex; gap:8px; margin:8px 0 0;}
.footer-messengers .footer-m-btn{
  display:inline-flex !important;
  align-items:center; justify-content:center;
  height:32px; padding:0 10px;
  border:1px solid var(--line, rgba(255,255,255,.12));
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:#e5e7eb; font-weight:600; text-decoration:none;
  width:auto !important; min-width:0 !important; max-width:none !important;
}
.footer-messengers .footer-m-btn:hover{background:rgba(249,115,22,.12); border-color:rgba(249,115,22,.35); color:#fff;}
/* Hide legacy icons */
footer a svg, footer a img{ display:none !important; }


/* Ensure socials anchors don't stretch full width */
footer .socials .footer-m-btn{display:inline-flex !important; width:auto !important;}


/* === Global rules (applied site-wide) === */
.section{ padding: 35px 0; }
.faq{ padding: 56px 0 0 0; }
.scrolltop{
  position:fixed; right:24px; bottom:24px;
  width:48px; height:48px; border-radius:9999px;
  display:flex; align-items:center; justify-content:center;
  background:#111; color:#fff; border:0; opacity:.95;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  backdrop-filter:saturate(140%) blur(4px);
  transition:transform .2s, box-shadow .2s, opacity .2s;
}
.scrolltop:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(0,0,0,.28); }
.scrolltop:active{ transform:translateY(0); }
.scrolltop.show{ display:flex; }

    .page .hero-line{width:144px} /* в 2 раза шире линии под H1 */
    .page .hero-meta{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px}
    .page .hero-meta .btn{justify-self:end}

    /* Большое изображение: текущая финальная высота */
    .page .hero-image{position:relative;height:80vh;max-height:755px;overflow:hidden;border-top:1px solid var(--line);margin-top:18px; border-radius:12px; box-shadow:0 24px 42px -24px rgba(249,115,22,.22) !important;}
    .page .hero-image img{width:100%;height:100%;object-fit:cover;display:block;position:relative;z-index:0 !important;}

    /* Ослабленное «засвечивание» при скролле (~ -30% от старого эффекта) */
    .page .hero-image.hero-image--bright img{filter: brightness(1.1) saturate(1.0); opacity: 0.6 !important;} 

    /* Карточки поверх изображения — по центру по вертикали */
    .page .overlay-cards{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);z-index:4}
    /* Анимация появления карточек снизу при первом скролле */
    .page .vcard{transform:translateY(24px);opacity:0;transition:transform .5s,opacity .5s}
    .page .overlay-cards.show .vcard{transform:translateY(0);opacity:1}

    /* Оранжевые подчеркивания под h2/h3 тоньше (2px), как у H1 */
    .page .section h2,.page-okna .section h3{position:relative;padding-bottom:8px}
    .page .section h2::after,.page-okna .section h3::after{
      content:"";position:absolute;left:0;bottom:-6px;width:56px;height:2px;background:var(--accent);border-radius:2px
    }

    /* Стили для изображений/фигур: лёгкое скругление и оранжевая тень снизу */
    .page .figure{border-radius:12px;overflow:hidden;box-shadow:0 24px 42px -24px rgba(249,115,22,.18)}
    .page .figure img{display:block;width:100%;height:auto}

    /* На очень узких экранах высоту можно немного снизить, чтобы карточки не налезали на края */
    @media (max-width:980px){
      .page .hero-image{height:58vh;max-height:508px}
    }

h4, h5 {margin-top:0; padding-top:0;}


/* === Reveal images on scroll (match overlay-cards effect) === */
.page img.reveal{
  transform:translateY(24px);
  opacity:0;
  transition:transform 1s, opacity 1s;
  will-change:transform, opacity;
  display:block;
}
.page img.reveal.is-visible{
  transform:none;
  opacity:1;
}
@media (prefers-reduced-motion: reduce){
.page img.reveal{
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
  }
}
/* === /Reveal images on scroll === */

/* === МОДАЛЬНОЕ ОКНО ЗАКАЗА ЗВОНКА === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.callback-form {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #f97316;
}

.submit-btn {
    width: 100%;
    background: #f97316;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 15px;
}

.submit-btn:hover {
    background: #ffb62c;
}

.privacy-notice {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.4;
}

.privacy-notice a {
    color: #f97316;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    .modal-header, .callback-form {
        padding: 15px 20px;
    }
}


/* ——— OptOkna: hotfix только для блока цен ——— */
.ok-pricing .cards{
  display:grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:18px;
}
@media (max-width:840px){ .ok-pricing .cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width:540px){ .ok-pricing .cards{ grid-template-columns: 1fr; padding-inline:4vw; } }

/* Изображения: ничего не обрезаем */
.ok-pricing .card-img{
  width:100%;
  height:auto !important;
  object-fit:contain !important;
  aspect-ratio:auto !important;
  display:block;
}

/* Кнопки: нормальный вид и одинаковая ширина (240px) */
.ok-pricing .card-body > div:last-child {display:grid; grid-template-columns:1fr; gap:12px; margin-top:18px; justify-items:center;}
.ok-pricing .card-body > div:last-child .btn{
  width:240px; max-width:100%;
}

/* Сбросить «синие ссылки» у кнопок */
.ok-pricing .btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:0 14px; height:36px; min-height:36px; line-height:1;
  border-radius:8px; font-weight:600; border:1px solid transparent;
  background: var(--accent, #f97316);           /* fallback на случай, если переменной нет */
  color:#fff !important;                        /* перебиваем цвет ссылок темы */
  text-decoration:none !important;              /* убираем подчёркивание у тем */
  border-color: var(--accent, #f97316);
  transition:transform .06s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.ok-pricing .btn:hover{
  transform: translateY(-1px);
  background:#fff; color: var(--accent, #f97316) !important; border-color: var(--accent, #f97316);
}

/* Чтоб карточки не «схлопывались» из-за чужих отступов/флоатов */
.ok-pricing .card{
  background:#fff; border:1px solid var(--line, #e5e7eb);
  border-radius:16px; overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.ok-pricing .card-body{ padding:14px 14px 16px; }

/* Сетка с ценами и характеристиками — как в превью */
.ok-pricing .price{ margin-top:10px; display:flex; align-items:flex-end; justify-content:space-between; }
.ok-pricing .price .sum{ font-weight:800; font-size:20px; }
.ok-pricing .price .sum-old{ font-size:14px; color:#9ca3af; text-decoration:line-through; margin-bottom:2px; display:block; line-height:1; }
.ok-pricing .price .lead{ font-size:13px; color:#6b7280; }
.ok-pricing .price .sum-wrap{ text-align:right; display:inline-flex; flex-direction:column; align-items:flex-end; }
.ok-pricing .meta{ margin-top:10px; font-size:14px; color:#374151; }
.ok-pricing .meta-row{ display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px dashed #e5e7eb; }
.ok-pricing .meta-row:last-child{ border-bottom:none; }
