/* Theme variables */
:root{
  --bg:#F8F5F2; /* тёплый бежевый */
  --text:#3A312A; /* тёмно-шоколадный */
  --accent:#D87C4A; /* терракота */
  --muted:#6B7B75; /* серо-зелёный */
  --white:#FFFFFF;
  --shadow:0 4px 12px rgba(0,0,0,.05);
  --progress:#FFC529;
  /* Фон героя перенесён с главной страницы */
  --hero-bg: url('https://skazano-sdelano.pro/local/templates/main/img/main-top-bg.webp');
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:18px; line-height:1.6;
}
html{scroll-behavior:smooth}

/* Scroll progress */
.scrollbar{position:fixed; left:0; right:0; top:0; height:3px; z-index:1000; background:transparent}
.scrollbar__bar{width:0%; height:100%; background:linear-gradient(90deg, var(--accent), var(--progress)); box-shadow:0 0 10px rgba(216,124,74,.6)}

.container{max-width:1280px; margin:0 auto; padding:0 20px}

/* Header */
.thb-header{position:fixed; top:0; left:0; right:0; height:84px; display:flex; align-items:center; z-index:50; background:transparent; transition:background .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;}
.thb-header.sticky{background:rgba(255,255,255,.85); backdrop-filter: blur(6px); box-shadow:0 2px 10px rgba(0,0,0,.12)}
.header__row{display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:24px}
.header__nav{display:none; gap:24px; justify-content:center; font-weight:600}
.nav__link{color:var(--text); text-decoration:none}
.header__brand{display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center; text-decoration:none; color:var(--text); text-align:left}
.brand-logo{height:32px; width:auto; display:block; grid-row:1 / span 2}
.brand-title{font-weight:900; letter-spacing:.02em}
.brand-desc{font-size:12px; color:var(--muted)}
.header__right{display:flex; align-items:center; gap:16px; justify-content:flex-end}
.header__phone{color:var(--accent); text-decoration:none; font-weight:700; display:flex; align-items:center; gap:6px; white-space:nowrap}
.langs{display:none; gap:10px; align-items:center}
.lang-btn{height:34px; padding:0 12px; border-radius:8px; border:1px solid #ddd; background:#fff; cursor:pointer; font-weight:700}
.langs{position:relative}
.lang-menu{position:absolute; right:0; top:100%; margin-top:8px; background:#fff; border:1px solid #e5e5e5; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:6px; display:none; gap:4px; z-index:200}
.lang-menu:not([hidden]){display:grid}
.lang-menu li{list-style:none}
.lang-menu button{display:block; width:100%; text-align:left; background:none; border:0; padding:6px 10px; cursor:pointer}
.lang-menu button[aria-selected="true"]{font-weight:800}
.burger{display:none; width:40px; height:40px; background:transparent; border:0; padding:0; cursor:pointer}
.burger span{display:block; height:2px; background:var(--text); margin:7px 5px}
.mobile-menu{display:none; position:fixed; left:0; right:0; top:70px; z-index:80; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.15); padding:12px 16px; border-top:1px solid #eee; transform:translateY(-8px); opacity:0; pointer-events:none;}
.mobile-menu.open{display:flex; flex-direction:column; gap:8px; transform:translateY(0); opacity:1; pointer-events:auto}
.mnav__link{display:block; padding:12px 6px; color:var(--text); text-decoration:none; font-weight:600; border-radius:8px}
.mnav__link:active, .mnav__link:hover{background:#f7f7f7}
.mnav__phone{display:flex; align-items:center; gap:8px; padding:12px 6px; color:var(--accent); text-decoration:none; font-weight:800}

/* Hero */
.hero{position:relative; min-height:85vh; display:flex; align-items:center; padding-top:80px; background:var(--hero-bg, #000); background-size:cover; background-position:center; background-repeat:no-repeat}
.hero__bg{display:none}
.hero__scroll{margin-top:40px; text-align:center}
.hero__down{display:inline-grid; place-items:center; width:44px; height:44px; border-radius:999px; background:rgba(255,255,255,.9); box-shadow:0 8px 16px rgba(0,0,0,.18); text-decoration:none}
.hero__down::after{content:""; width:10px; height:10px; border-right:2px solid var(--text); border-bottom:2px solid var(--text); transform:rotate(45deg)}
.hero__down:hover{background:#fff}
.hero::before{content:""; position:absolute; inset:0; background:rgba(58,49,42,.6)}
.hero .container{display:block}
.hero__content{position:relative; z-index:1; max-width:880px}
.hero__title{font-family:"Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:800; font-size:64px; color:#fff; margin:0 0 20px; letter-spacing:-0.02em}
.hero__subtitle{font-size:24px; color:#fff; margin:0 0 16px}
.hero__list{list-style:none; padding:0; margin:0; color:#fff}
.hero__list li{display:flex; gap:8px; align-items:flex-start; margin-top:16px; font-weight:300; font-size:18px}
.hero__actions{margin-top:40px; display:flex; gap:20px; flex-wrap:wrap}

.btn{display:inline-flex; align-items:center; justify-content:center; padding:16px 32px; border-radius:8px; text-decoration:none; font-weight:600; transition:transform .15s ease, box-shadow .15s ease}
.btn--accent{background:var(--accent); color:#fff}
.btn--dark{background:var(--text); color:#fff}

/* Pulsing */
@keyframes pulse{0%{transform:scale(1)} 50%{transform:scale(1.03)} 100%{transform:scale(1)}}
.btn--pulse{animation:pulse 3s ease-in-out infinite}

/* Arrows wiggle */
@keyframes wiggle{0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)}}
.btn--arrows .arr{display:inline-block; margin:0 8px; animation:wiggle 1.8s ease-in-out infinite}

@media (hover:hover) and (min-width:1024px){
	.btn:hover{transform:scale(1.05)}
	.btn:active{transform:scale(.98)}
}

/* Sections */
.section{padding:60px 0}
.hero + .section{padding-top:16px}
.section--muted{background:var(--bg)}
.section--plain{background:#fff}
.section--geo{
  position:relative;
  /* gradient overlay + png (если есть) + jpg (если есть) + локальный fallback */
  background-image: 

    url('/content/tbilisi.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section--geo > .container{position:relative; z-index:1}
.geo-map{position:absolute; inset:0; width:100%; height:100%; z-index:0}
.geo-map__shape{fill:rgba(216,124,74,.08); transition:fill .2s ease, stroke .2s ease}
.geo-map__shape.is-active{fill:rgba(216,124,74,.22); stroke:rgba(216,124,74,.8)}
.section--dark{background:var(--text); color:#fff}
.h2{font-family:"Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:800; font-size:48px; margin:0 0 40px; color:var(--text); letter-spacing:-0.01em}
.h2--light{color:#fff}
.lead-txt{color:var(--text)}
.lead-txt.center{text-align:center; max-width:800px; margin:0 auto 40px}

/* About */
.about{display:grid; gap:28px}
.about__brand{display:grid; grid-template-columns:88px 1fr; gap:18px; align-items:center}
.about__logo{width:88px; height:auto; display:block}
.about__stats{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px}
.stat{background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:18px; text-align:center}
.stat__val{font-family:"Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:800; font-size:36px; color:var(--accent)}
.stat__label{color:var(--muted); margin-top:6px}
.about__list{margin-top:8px}
@media (max-width:768px){
  .about__stats{grid-template-columns:1fr;}
  .about__brand{grid-template-columns:68px 1fr}
  .about__logo{width:68px}
}

.list{margin:24px 0 0; padding:0; list-style:none}
.list--check li{margin:24px 0}

/* Cards grid */
.grid{display:grid; gap:24px}
.adv-grid{grid-template-columns:repeat(3,1fr)}
.card{background:#fff; border-radius:14px; box-shadow:0 6px 16px rgba(0,0,0,.06); padding:22px; transition:transform .18s ease, box-shadow .18s ease}
.adv{height:100%}
.adv__ico{width:34px; height:34px; border-radius:50%; display:inline-grid; place-items:center; background:linear-gradient(135deg, #10b981, #059669); color:#fff; font-size:18px; font-weight:800; box-shadow:0 6px 16px rgba(16,185,129,.35)}
.adv__title{margin:10px 0 6px; font-weight:800; color:#3b82f6}
.adv__text{margin:0; color:#6b7280}
.card:hover{transform:translateY(-2px); box-shadow:0 12px 24px rgba(0,0,0,.10)}

/* For who section */
.forwho{display:grid; grid-template-columns:repeat(2,1fr); gap:16px}
.forwho__card{display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:start; background:#fff; border-radius:12px; padding:16px 18px; box-shadow:0 4px 12px rgba(0,0,0,.06); border-left:4px solid #10b981}
.forwho__ico{width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg, #10b981, #059669); display:inline-block; position:relative; box-shadow:0 4px 12px rgba(16,185,129,.35)}
.forwho__ico::after{content:""; position:absolute; left:6px; top:3px; width:6px; height:10px; border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(45deg)}

/* Check icon (same as forwho__ico) */
.check-icon{width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg, #10b981, #059669); display:inline-block; position:relative; box-shadow:0 4px 12px rgba(16,185,129,.35); margin-right:8px}
.check-icon::after{content:""; position:absolute; left:6px; top:3px; width:6px; height:10px; border-right:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(45deg)}
.forwho__text{margin:0; color:var(--text)}
@media (max-width:768px){ 
  .forwho{grid-template-columns:1fr} 
  .forwho__text{font-size:18px}
  .hero__scroll{margin-top:60px}
}

/* Timeline */
.timeline{position:relative; margin:0 auto; max-width:1100px}
.timeline::before{content:""; position:absolute; left:40px; top:0; bottom:0; width:2px; background:linear-gradient(var(--accent), #f3b27c)}
.timeline--simple{--tl-pad:80px; --tl-dot:40px; padding-left:var(--tl-pad)}
.timeline--simple::before{left:calc(var(--tl-pad) + var(--tl-dot)/2)}
.timeline--simple .tline__item{position:relative; display:grid; grid-template-columns:40px 1fr; gap:16px; align-items:flex-start; margin:28px 0}
.timeline--simple .tline__dot{width:var(--tl-dot); height:var(--tl-dot)}
.timeline--simple .tline__dot{grid-column:1}
.timeline--simple .tline__content{grid-column:2}
.tline__dot{width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg, var(--accent), #f3b27c); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; box-shadow:0 6px 16px rgba(216,124,74,.35)}
.tline__content{background:#fff; border:1px solid #eee; border-radius:12px; box-shadow:0 8px 22px rgba(0,0,0,.06); padding:14px 16px}
.tline__title{font-weight:800}
.tline__desc{color:var(--muted)}
@media (max-width:768px){
  .timeline:not(.timeline--simple)::before{left:20px}
  .timeline--simple{--tl-pad:56px}
  .tline__item{width:100%; grid-template-columns:40px 1fr; margin:18px 0; padding:0}
  .tline__item:nth-child(odd){grid-template-columns:40px 1fr; text-align:left; margin-right:0}
  .tline__content::after{left:34px}
}

/* Services */
.services-grid{grid-template-columns:repeat(2,1fr)}
.service__title{font-family:"Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:800; font-size:28px; margin:0 0 8px}
.service__desc{color:var(--muted); margin:0 0 16px}
.service__price{color:var(--accent); font-weight:700}
.service__hint{color:var(--muted); font-style:italic}

/* Work prices */
.wprices{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.wprice{background:#fff; border:1px solid #eee; border-radius:12px; padding:16px; box-shadow:0 8px 24px rgba(0,0,0,.06); display:grid; gap:10px; transition:box-shadow .2s ease, transform .2s ease}
.wprice:hover{transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,.1)}
.wprice__icon{width:100%; height:120px; border-radius:12px; background:#f3f3f3 center/contain no-repeat; margin-bottom:10px}
.wprice__title{font-weight:700}
.wprice__list{margin:8px 0 8px 18px; color:var(--muted)}
.wprice__price{margin-top:6px; color:#FFC529; font-weight:700}
@media (max-width:768px){
  /* мобильный слайдер: горизонтальный скролл со snap */
  .wprices{
    display:flex; 
    overflow-x:auto; 
    gap:16px; 
    scroll-snap-type:x mandatory; 
    -webkit-overflow-scrolling:touch; 
    padding:0 20px 20px 20px;
    margin:0 -20px;
    scrollbar-width:none; /* Firefox */
    -ms-overflow-style:none; /* IE/Edge */
  }
  .wprices::-webkit-scrollbar{display:none} /* Chrome/Safari */
  .wprice{
    min-width:280px; 
    flex:0 0 280px; 
    scroll-snap-align:center;
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    transition:all .3s ease;
  }
  .wprice:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 32px rgba(0,0,0,.12);
  }
  .wprice__icon{
    height:100px;
    border-radius:12px;
    margin-bottom:12px;
  }
  .wprice__title{
    font-size:18px;
    margin-bottom:8px;
  }
  .wprice__list{
    font-size:14px;
    margin:8px 0 12px 16px;
  }
  .wprice__price{
    font-size:16px;
    margin-top:8px;
  }
  
  /* Индикаторы слайдера */
  .wpslider-indicators{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:20px;
    padding:0 20px;
  }
  .wpslider-indicator{
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(0,0,0,.15);
    transition:all .3s ease;
    cursor:pointer;
    border:2px solid transparent;
  }
  .wpslider-indicator:hover{
    background:rgba(0,0,0,.3);
    transform:scale(1.1);
  }
  .wpslider-indicator.active{
    background:var(--accent);
    border-color:var(--accent);
    transform:scale(1.3);
  }
  
  /* Контейнер слайдера */
  .wpslider-container{
    position:relative;
  }
  
  /* Кнопки навигации слайдера */
  .wpslider-nav{
    position:absolute;
    top:50%;
    left:0;
    right:0;
    transform:translateY(-50%);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 10px;
    pointer-events:none;
    z-index:10;
  }
  .wpslider-btn{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#fff;
    color:var(--text);
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .3s ease;
    z-index:10;
    pointer-events:auto;
  }
  .wpslider-btn:hover{
    background:var(--accent);
    color:#fff;
    transform:scale(1.1);
  }
  .wpslider-btn:disabled{
    opacity:0.5;
    cursor:not-allowed;
    transform:none;
  }
  .wpslider-btn i{
    font-size:18px;
  }
  
  /* Подсказка для слайдера */
  .wpslider-hint{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:var(--muted);
    font-size:14px;
    margin-bottom:16px;
    padding:8px 16px;
    background:rgba(0,0,0,.03);
    border-radius:20px;
    border:1px solid rgba(0,0,0,.08);
  }
  .wpslider-hint i{
    font-size:16px;
    color:var(--accent);
  }
}
@media (min-width:992px){ 
  .wprices{grid-template-columns:repeat(6,1fr)}
  .wpslider-hint{display:none}
  .wpslider-nav{display:none}
  .wpslider-indicators{display:none}
}

/* Columns */
.columns{display:grid; gap:24px}
.columns--2{grid-template-columns:repeat(2,1fr)}
.columns--3{grid-template-columns:repeat(3,1fr)}

/* Numbers */
.numbers{grid-template-columns:repeat(3,1fr); text-align:center}
.num__ico{font-size:28px; color:var(--accent)}
.num__val{font-family:"Manrope", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight:800; font-size:36px}
.num__label{color:var(--muted)}

/* FAQ */
.faq{display:grid; gap:12px}
@media (min-width:1024px){ .faq{grid-template-columns:1fr 1fr} }
.faq__item{background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:0; overflow:hidden; transition:transform .15s ease, box-shadow .15s ease}
.faq__item:hover{transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.08)}
.faq__q{cursor:pointer; padding:18px 48px 18px 20px; list-style:none; position:relative; font-weight:800}
.faq__q::marker{content:""}
.faq__q::-webkit-details-marker{display:none}
.faq__q::after{content:""; position:absolute; right:18px; top:50%; width:10px; height:10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-50%) rotate(-45deg); transition:transform .2s ease}
details[open] > .faq__q::after{transform:translateY(-50%) rotate(135deg)}
.faq__a{padding:0 20px; background:#f7f7f9; color:var(--muted); max-height:0; opacity:0; overflow:hidden; transition:max-height .25s ease, opacity .25s ease, padding .25s ease}
details[open] .faq__a{padding:0 20px 18px; max-height:400px; opacity:1}

/* Contract section */
.contract-grid{display:grid; gap:24px; grid-template-columns:1.2fr 1.8fr; align-items:start}
.contract__list li{margin:14px 0}
.img-reserved{width:100%; height:100%; min-height:220px; background:linear-gradient(135deg, #eee, #ddd); border-radius:12px; display:block}

/* Free list */
.free-list{list-style:none; padding:0; margin:0; text-align:center}
.free-list li{margin:12px 0}
.free-list .dot{color:var(--accent)}

/* Contacts */
.center{text-align:center}
.socials{display:flex; gap:20px; justify-content:center; margin-top:20px}
.socials a{font-size:32px; color:var(--text); text-decoration:none}
.srow{justify-content:center}
.sbtn{width:52px; height:52px; border-radius:14px; display:inline-grid; place-items:center; text-decoration:none; color:var(--text); background:#fff; border:1px solid #e8e2da; box-shadow:0 6px 16px rgba(58,49,42,.08); transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease}
.sbtn i{font-size:22px}
.sbtn--call{background:#fff}
.sbtn--wa{background:#fff}
.sbtn--tg{background:#fff}
.sbtn--ig{background:#fff}
.sbtn:hover{transform:translateY(-2px); box-shadow:0 12px 22px rgba(58,49,42,.12), 0 0 0 3px rgba(216,124,74,.15); color:var(--accent);}
.btn--fixed-m{position:static}

/* CTA (between geo and about) */
.cta--wide{padding:0; background:linear-gradient(rgba(17,24,39,.78), rgba(17,24,39,.78)), url('images/cta-bg.webp'), url('https://skazano-sdelano.pro/local/templates/main/img/main-form_bg.webp'); background-size:cover; background-position:center}
.cta--wide > .container{max-width:1280px; padding:0 20px}
.cta--wide .cta__wrap{border-radius:12px}
.cta__wrap{display:grid; grid-template-columns: 1.2fr 1.8fr; gap:32px; align-items:center; border-radius:12px; padding:24px; color:#fff}
.cta__media{position:relative}
.cta-plan{width:100%; height:360px; background:url('images/plan.webp'), url('https://skazano-sdelano.pro/upload/dev2fun.imagecompress/webp/local/templates/main/img/main-form-map.webp'); background-position:center bottom; background-repeat:no-repeat; background-size:contain; filter:drop-shadow(0 12px 40px rgba(0,0,0,.35)); align-self:end}
.cta__title{margin:0 0 16px 0; font-size:28px; font-weight:800; color:#fff}
.cta-form__row{display:grid; grid-template-columns: 1fr 1fr; gap:16px; align-items:center}
.cta-form__row--wide{display:flex; gap:16px; align-items:center}
.cta-form__input{width:100%; flex:1 1 0%}
.cta__btn{flex:0 0 auto}
.cta-form__input{
  height:52px; 
  border:1px solid rgba(255,255,255,.3); 
  background:rgba(0,0,0,.25); 
  color:#fff; 
  border-radius:10px; 
  padding:0 14px;
  font-size:16px; /* Предотвращает зум на iOS */
  -webkit-appearance:none; /* Убирает стили браузера на iOS */
  appearance:none;
}
.cta-form__input::placeholder{
  color:rgba(255,255,255,.6);
  opacity:1; /* Firefox */
}
.cta-form__input:focus{
  outline:none;
  border-color:rgba(255,255,255,.5);
  background:rgba(0,0,0,.35);
}
.cta__btn{height:52px; border-radius:9999px}
.cta-form__consent{display:block; color:var(--muted); font-size:12px; margin-top:8px}
.cta-form__status{font-size:13px; margin-top:6px}
@media (max-width:768px){
  .cta__wrap{grid-template-columns:1fr; gap:16px; padding:20px}
  .cta-plan{height:200px}
  .cta__title{font-size:24px; margin-bottom:20px}
  .cta-form__row, .cta-form__row--wide{
    display:flex; 
    flex-direction:column; 
    gap:12px; 
    align-items:stretch
  }
  .cta-form__input{height:48px; font-size:16px}
  .cta__btn{height:48px; width:100%; font-size:16px}
  .cta-form__consent{font-size:11px; margin-top:12px}
}

/* Стили для планшетов */
@media (min-width:769px) and (max-width:1023px){
  .cta__wrap{gap:24px; padding:28px}
  .cta-plan{height:280px}
  .cta__title{font-size:26px}
  .cta-form__row--wide{
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:12px;
    align-items:center
  }
  .cta-form__input{height:50px}
  .cta__btn{height:50px}
  
  /* Скрываем элементы слайдера на планшетах */
  .wpslider-hint{display:none}
  .wpslider-nav{display:none}
  .wpslider-indicators{display:none}
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce){
  .btn--pulse, .btn--arrows .arr{animation:none !important}
}

/* Footer */
.footer{padding:24px 0; background:#fff; color:var(--muted)}
.footer__brand .brand{display:inline-grid; grid-auto-flow:row; align-items:flex-start; gap:6px; text-decoration:none; color:var(--text)}
.footer__brand-logo{height:40px; width:auto; display:block}

/* Responsive */
@media (min-width:1024px){
  .header__nav{display:flex}
  .langs{display:inline-flex}
  .header__row{grid-template-columns:auto 1fr auto auto}
  .header__brand{grid-column:1}
  .header__nav{grid-column:2}
  .langs{grid-column:3; justify-self:end}
  .header__phone{grid-column:4; justify-self:end}
  /* Desktop: default transparent header over dark hero */
  .thb-header:not(.sticky) .nav__link{color:rgba(255,255,255,.92)}
  .thb-header:not(.sticky) .nav__link:hover{color:#fff}
  .thb-header:not(.sticky) .header__brand, 
  .thb-header:not(.sticky) .brand-title{color:#fff}
  .thb-header:not(.sticky) .brand-desc{color:rgba(255,255,255,.75)}
  .thb-header:not(.sticky) .burger span{background:#fff}
  .thb-header:not(.sticky) .lang-btn{background:transparent; color:#fff; border-color:rgba(255,255,255,.6)}
  .thb-header:not(.sticky) .lang-menu{color:var(--text)}
}
@media (max-width:1024px){
  .thb-header{height:70px}
  .header__row{grid-template-columns:auto 1fr auto}
  .header__brand{text-align:left}
  .header__nav{display:none}
  .langs{display:none}
  .header__phone{display:none}
  .burger{display:inline-block; grid-column:3; justify-self:end}
  .adv-grid{grid-template-columns:repeat(2,1fr)}
}

/* Sticky overrides (explicit colors on scroll) */
.thb-header.sticky .nav__link{color:var(--text)}
.thb-header.sticky .brand-title{color:var(--text)}
.thb-header.sticky .brand-desc{color:var(--muted)}
.thb-header.sticky .burger span{background:var(--text)}
.thb-header.sticky .lang-btn{background:#fff; color:var(--text); border-color:#ddd}

@media (max-width:768px){
  body{font-size:16px}
  .hero__title{font-size:40px}
  .hero__content{max-width:90%}
  .services-grid{grid-template-columns:1fr}
  .numbers{grid-template-columns:1fr}
  .columns--2{grid-template-columns:1fr}
  .columns--3{grid-template-columns:1fr}
  .contract-grid{grid-template-columns:1fr}
  .btn--fixed-m{position:fixed; left:50%; transform:translateX(-50%); bottom:14px; width:90%; padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  /* Мобильный фон героя как на главной */
  :root{ --hero-bg: url('https://skazano-sdelano.pro/local/templates/main/img/main-top-bg-mob.webp'); }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width:480px){
  .cta__wrap{padding:16px}
  .cta__title{font-size:22px; margin-bottom:16px}
  .cta-plan{height:160px}
  .cta-form__input{height:44px; font-size:16px}
  .cta__btn{height:44px; font-size:15px}
  .cta-form__consent{font-size:10px; line-height:1.4}
}

@media (min-width:1024px){
  .hero__content{max-width:960px}
  .hero__title{max-width:22ch}
}

/* Reveal on scroll */
.reveal{opacity:0; transform:translateY(12px);}
.reveal.is-visible{opacity:1; transform:none; transition:opacity .4s ease, transform .4s ease}

/* Portfolio slider */
.p-slider{position:relative; overflow:hidden; border-radius:12px;}
.p-slider__track{display:flex; gap:12px; will-change:transform; touch-action:pan-y;}
.p-slide{flex:0 0 80%; border-radius:12px; overflow:hidden; background:#e9e9e9}
.p-slide img{display:block; width:100%; height:360px; object-fit:cover}
.p-slider__nav{position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:40px; height:40px; border-radius:50%; border:0; background:rgba(0,0,0,.5); color:#fff; cursor:pointer}
.p-slider__nav--prev{left:10px}
.p-slider__nav--next{right:10px}
.p-slider__dots{display:flex; gap:6px; justify-content:center; margin-top:10px}
.p-slider__dots button{width:8px; height:8px; border-radius:50%; border:0; background:#d1d5db; cursor:pointer}
.p-slider__dots button.is-active{background:#111}
@media (min-width:768px){ .p-slide{flex-basis:48%} }
@media (min-width:1200px){ .p-slide{flex-basis:32%} }

/* Modal form */
.modal{position:fixed; inset:0; z-index:1000; display:block}
.modal[aria-hidden="true"]{display:none}
.modal[hidden]{display:none}
.modal__overlay{position:absolute; inset:0; background:rgba(0,0,0,.5); backdrop-filter:saturate(140%) blur(2px)}
.modal__dialog{position:relative; margin:6vh auto; max-width:560px; background:#fff; border-radius:12px; padding:20px; box-shadow:0 10px 30px rgba(0,0,0,.2)}
.modal__close{position:absolute; right:8px; top:8px; background:transparent; border:0; font-size:18px; cursor:pointer}
.ui-form{display:grid; gap:12px}
.ui-form__row{display:grid; gap:12px; grid-template-columns:1fr}
@media(min-width:640px){ .ui-form__row{grid-template-columns:1fr 1fr} }
.ui-field{display:grid; gap:6px}
.ui-field input,.ui-field textarea,.ui-field select{width:100%; border:1px solid #ddd; border-radius:8px; padding:10px 12px; font:inherit; transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease}
.ui-field input:focus,.ui-field textarea:focus,.ui-field select:focus{outline:0; border-color:var(--accent); box-shadow:0 0 0 3px rgba(216,124,74,.25); background-color:#fff}

@media (hover:hover) and (min-width:1024px){
	.bi, .phone-ico{transition:color .2s ease, filter .2s ease}
	a:hover .bi, button:hover .bi, .socials__btn:hover .bi, .header__phone:hover .phone-ico{color:var(--accent); filter:drop-shadow(0 2px 4px rgba(0,0,0,.1))}
}
.ui-check{display:flex; gap:8px; align-items:center; font-size:14px; color:#555}

/* Tabs */
.tabs__nav{display:flex; gap:12px; justify-content:center; margin:24px 0 16px}
.tabs__btn{height:36px; padding:0 14px; border-radius:999px; border:1px solid #ddd; background:#fff; cursor:pointer; font-weight:700}
.tabs__btn.is-active{background:var(--accent); color:#111; border-color:var(--accent)}
.tabs__pane{display:none}
.tabs__pane.is-active{display:block}

/* Type cards */
.cards--types{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.typecard{background:linear-gradient(180deg, #2D3748 0%, #1F2937 100%); color:#fff; border-radius:12px; padding:18px; display:grid; gap:12px; grid-template-rows:auto auto auto 1fr auto auto; min-height:480px}
.typecard{text-align:left}
.typecard > *{max-width:92%; margin-left:auto; margin-right:auto}
.typecard__head{display:flex; align-items:center; gap:10px}
.typecard__title{margin:0; font-weight:900; font-size:18px}
.typecard__meta{display:grid; grid-template-columns:1fr 1fr; gap:14px; color:#d1d5db; text-transform:uppercase; font-weight:600; font-size:14px}
.typecard__meta > div{display:block; line-height:1.2}
.typecard__meta b{display:block; font-size:28px; font-weight:800; margin-top:6px; text-transform:none}
.typecard__lists{display:grid; gap:8px; position:relative}
.typecard{position:relative}
.typecard:not(.is-open) .typecard__lists{max-height:140px; overflow:hidden}
.typecard:not(.is-open) .typecard__lists:after{content:""; position:absolute; left:0; right:0; bottom:0; height:48px; background:linear-gradient(180deg, rgba(46,55,65,0), rgba(46,55,65,1)); pointer-events:none}
.typecard__group ul{margin:6px 0 0 0; padding:0; list-style:none}
.typecard__group li{position:relative; padding-left:18px; font-size:14px; line-height:1.5}
.typecard__group li::before{content:"✓"; position:absolute; left:0; top:0; color:#34D399; font-weight:800}
.typecard__gtitle{font-weight:700; text-transform:uppercase; font-size:14px; letter-spacing:.02em}
.typecard__toggle{background:none; border:0; color:#ffd15b; cursor:pointer; justify-self:start}
.typecard .btn{height:44px}

/* Services grid */
.grid--services{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.svc{display:grid; gap:8px; background:#2e3741; border-radius:12px; padding:12px; color:#fff; text-decoration:none; background-size:cover; background-position:center; background-repeat:no-repeat}
.svc__img{display:none}
/* Make full-card backgrounds via nth-child to avoid changing markup */
.grid--services .svc:nth-child(1){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/1.jpg')}
.grid--services .svc:nth-child(2){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/2.jpg')}
.grid--services .svc:nth-child(3){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/3.jpg')}
.grid--services .svc:nth-child(4){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/4.jpg')}
.grid--services .svc:nth-child(5){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/5.jpg')}
.grid--services .svc:nth-child(6){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/6.jpg')}
.grid--services .svc:nth-child(7){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/7.jpg')}
.grid--services .svc:nth-child(8){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/8.jpg')}
.grid--services .svc:nth-child(9){background-image:linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url('../images/portfolio/9.jpg')}
.svc .btn{justify-self:start}

@media (max-width:1200px){ .cards--types{grid-template-columns:repeat(2,1fr)} .grid--services{grid-template-columns:repeat(2,1fr)} }
@media (max-width:768px){ .cards--types{grid-template-columns:1fr} .grid--services{grid-template-columns:1fr} }

/* Footer */
.footer{background:#111; color:#fff; padding:40px 0 20px}
.footer a{color:#fff; text-decoration:none}
.footer__grid{display:grid; gap:24px; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; align-items:start}
.footer__brand .brand{display:inline-grid}
.footer__contacts{margin-top:12px; color:#d1d5db}
.footer__title{font-weight:800; margin-bottom:10px}
.footer__list{list-style:none; padding:0; margin:0; display:grid; gap:8px}
.footer__copy{padding-top:20px; border-top:1px solid rgba(255,255,255,.15); margin-top:20px; color:#d1d5db}
@media(max-width:1024px){ .footer__grid{grid-template-columns:1fr 1fr;}
  .footer__brand{grid-column:1/-1}
}
@media(max-width:640px){ .footer__grid{grid-template-columns:1fr} }

/* To top button */
.to-top{position:fixed; right:16px; bottom:16px; width:44px; height:44px; border-radius:999px; border:0; background:var(--accent); color:#fff; font-weight:800; cursor:pointer; box-shadow:0 8px 18px rgba(0,0,0,.18); opacity:0; transform:translateY(12px); transition:opacity .25s ease, transform .25s ease; z-index:60}
.to-top:not([hidden]){opacity:1; transform:none}
.to-top.is-hiding{opacity:0; transform:translateY(12px)}


/* CTA merge (desktop two-column layout) */
.cta-merge{background:#f7f7f9}
.cta-merge .free-list{margin-top:12px}
@media (min-width:1024px){
	.cta-merge__grid{display:grid; grid-template-columns:1.2fr .8fr; gap:40px; align-items:start}
	.cta-merge__right{background:#1c1c1f; color:#fff; padding:24px; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.15)}
	.cta-merge__right .dot{opacity:.9}
}

/* Side mini navigation */
.side-nav{position:fixed; right:16px; top:50%; transform:translateY(-50%); display:none; flex-direction:column; gap:10px; z-index:70}
.side-nav__link{width:10px; height:10px; border-radius:50%; background:rgba(58,49,42,.35); display:block; border:2px solid rgba(255,255,255,.7); position:relative}
.side-nav__link:hover{background:var(--accent)}
@media (min-width:1024px){ .side-nav{display:flex} }

/* Tooltip for side mini navigation */
.side-nav__link::after{content:attr(data-tip); position:absolute; right:140%; top:50%; transform:translateY(-50%) scale(.96); opacity:0; pointer-events:none; background:#1c1c1f; color:#fff; padding:6px 10px; border-radius:8px; white-space:nowrap; box-shadow:0 6px 18px rgba(0,0,0,.22); transition:opacity .18s ease, transform .18s ease}
.side-nav__link::before{content:""; position:absolute; right:120%; top:50%; width:8px; height:8px; background:#1c1c1f; transform:translateY(-50%) rotate(45deg); opacity:0; transition:opacity .18s ease}
.side-nav__link:hover::after, .side-nav__link:focus-visible::after{opacity:1; transform:translateY(-50%) scale(1)}
.side-nav__link:hover::before, .side-nav__link:focus-visible::before{opacity:1}

