:root{
  /* Brandbook */
  --pine:#055732;   /* RGB 5 87 50 */
  --olive:#697636;  /* RGB 105 118 54 */
  /* UI */
  --bg:#F4F7F6;
  --text:#1F2937;
  --muted:#6B7280;

  --card: #fff;
  --stroke: rgba(0,0,0,.08);

  --radius-card: 18px;
  --radius-btn: 14px;
  --shadow: 0 14px 40px rgba(0,0,0,.08);

  --container: 1280px;
}

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

img{max-width:100%; display:block; height:auto}
a{color:inherit; text-decoration:none}
a:hover{color:var(--olive)}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px; /* FIX: было padding:@media0 20px; */
}

.muted{color:var(--muted)}
.fine{font-size:12px}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px) saturate(180%);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.header .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.header .phone{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:800;
  font-size:14px;
  color:var(--pine);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(5,87,50,.25);
  background:rgba(5,87,50,.06);
  white-space:nowrap;
}

.header .phone .icon{
  width:16px;
  height:16px;
  fill:currentColor;
  flex-shrink:0;
}

.header .phone:hover{
  color:var(--olive);
  border-color:rgba(105,118,54,.45);
}

.header .brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.header .brand .logo{
  height:46px;
  width:auto;
}
.header .brand .text small{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
}

.header .nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.header .nav a{
  font-weight:700;
  color:rgba(31,41,55,.92);
}

.header .actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:var(--bg);
  display:grid;
  place-items:center;
}
.icon svg{width:20px;height:20px; fill:rgba(31,41,55,.85)}
.icon:hover{border-color:rgba(105,118,54,.35)}
.icon:hover svg{fill:var(--olive)}

/* Burger + mobile menu */
.burger{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:var(--bg);
  display:none;
  padding:10px;
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;
  background:rgba(31,41,55,.85);
  border-radius:2px;
  margin:6px 0;
}
.mobile{
  display:none;
  border-top:1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
}

.mobile.is-open{display:block}
.mobile .inner{
  padding:14px 0 18px;
  justify-content:unset;
  display:grid;
  gap:10px;
}
.mobile .inner a{
  width: 100%;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(5,87,50,.06);
  border: 1px solid rgba(5,87,50,.10);
  font-weight:700;
}
.mobile .cta{display:grid; gap:10px; margin-top:8px}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:var(--radius-btn);
  border:1px solid transparent;
  font-weight:800;
  cursor:pointer;
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease, border-color .15s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform: translateY(1px)}
.btn--lg{padding:14px 18px}
.btn--small{padding:10px 12px; font-weight:800; border-radius:12px}

.btn--primary{
  background: var(--pine);
  color:var(--bg);
  box-shadow: 0 14px 30px rgba(5,87,50,.22);
}
.btn--primary:hover{filter: brightness(1.06)}
.btn--outline{
  background: transparent;
  color: var(--pine);
  border-color: rgba(5,87,50,.35);
}
.btn--outline:hover{border-color: rgba(105,118,54,.55); color: var(--olive)}
.btn--ghost{
  background: transparent;
  border-color: transparent;
  color: rgba(31,41,55,.92);
}
.btn--ghost:hover{color: var(--olive)}
.w-full{width:100%}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding: 52px 0 34px;
}
.hero .bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(105,118,54,.30), transparent 60%),
    linear-gradient(180deg, rgba(5,87,50,.10) 0%, rgba(5,87,50,.55) 58%, rgba(5,87,50,.88) 100%),
    image-set(
      url("/assets/images/hero.webp") type("image/webp"),
      url("/assets/images/hero.jpg") type("image/jpeg")
    )
    center/cover no-repeat;
  filter:saturate(1.08) contrast(1.02);
  transform:scale(1.02);
  z-index:0;
}
.hero .grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:start;
}

.hero .content{color:var(--bg); padding: 18px 0}

.hero .content p{
  margin:0 0 16px;
  max-width:60ch;
  font-size:18px;
  color: var(--bg);
}
.hero .actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:10px}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight:700;
  font-size:14px;
}
.pill__dot{
  width:10px;height:10px;border-radius:99px;
  background: var(--olive);
  box-shadow: 0 0 0 6px rgba(105,118,54,.18);
}
/* Кнопка на фото: контраст + лёгкая подложка */
.btn--on-photo{
  color:var(--bg) !important;
  border-color: rgba(255,255,255,.70) !important;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.btn--on-photo:hover{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.85) !important;
  color:var(--bg) !important;
}

h1,h2,h3{font-family: Manrope, Inter, system-ui, sans-serif; letter-spacing:-.02em}
h1{margin:14px 0 10px; font-size:56px; line-height:1.05}


.stats{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.stat{
  padding:12px 14px;
  border-radius:16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}
.stat strong{display:block; font-size:15px}
.stat span{display:block; font-size:13px; margin-top:2px; color: rgba(255,255,255,.86)}

/* Lead */
.lead{
  background: rgba(244,247,246,.96);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.lead h2{margin:6px 6px 4px; font-size:22px; color: var(--pine)}
.lead__sub{margin:0 6px 12px; color: rgba(31,41,55,.70)}

.form{display:grid; gap:12px}
.form__row{display:grid; grid-template-columns: 1fr 1fr; gap:12px}

.field__label{
  display:block;
  font-size:12px;
  font-weight:900;
  color: rgba(31,41,55,.72);
  margin:0 0 6px;
}
.field__input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.10);
  background:var(--bg);
  font:inherit;
  outline:none;
}
.field__input:focus{
  border-color: rgba(105,118,54,.55);
  box-shadow: 0 0 0 6px rgba(105,118,54,.14);
}

.lead__quick{display:grid; gap:10px; margin-top:8px}

.notice{
  display:none;
  margin-top:8px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:var(--bg);
}
.notice.is-show{display:block}
.notice.is-ok{border-color: rgba(5,87,50,.35); background: rgba(5,87,50,.06)}
.notice.is-err{border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.06)}

/* Sections */
.section{padding:36px 0; background:var(--bg)}
.section--soft{background: var(--bg)}
.section--dark{
  background: linear-gradient(180deg, rgba(5,87,50,1) 0%, rgba(4,58,35,1) 100%);
  color:var(--bg);
}
.head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.head h2{margin:0; font-size:40px; line-height:1.12; color: var(--pine)}
.head p{margin:8px 0 0; color: var(--muted); max-width:70ch}
.head--dark h2{color:var(--bg)}
.head--dark p{color: rgba(255,255,255,.78)}

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


.card{
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .2s ease;
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
  overflow:hidden;
}

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

.card .img{
  height:200px;
  background:center / cover no-repeat;
}
.card .body{padding:14px 14px 16px}
.card .title{margin:0 0 10px; font-size:18px; line-height:1.25}

.card .route{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}
.card .route .item{
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  overflow:hidden;
  background:var(--bg);
}

.card .route .item .toggle{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  background:rgba(5,87,50,.05);
  border:none;
  cursor:pointer;
  font-weight:800;
  font-size:15px;
  text-align:left;
  transition:background .2s ease;
}

.card .route .item .toggle:hover{
  background:rgba(105,118,54,.08);
}

.card .route .item .toggle .icon{
  width:18px;
  height:18px;
  transition:transform .25s ease;
}

.card .route .item.is-open .icon{
  transform: rotate(180deg);
}

.card .route .item .content{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  background:var(--bg);
}

.card .route .item .content .inner{
  padding:14px 16px 16px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}


.card .bottom{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.card .bottom .price .label{font-size:12px; color: rgba(31,41,55,.65); font-weight:800}
.card .bottom .price .value{font-size:18px; color: var(--pine)}
.card .chips{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px}
.card .chip{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(5,87,50,.06);
  color: rgba(5,87,50,.92);
  border: 1px solid rgba(5,87,50,.10);
  font-weight:900;
  font-size:12px;
}
.card .chip--soft{
  background: rgba(105,118,54,.10);
  color: rgba(105,118,54,.98);
  border-color: rgba(105,118,54,.16);
}
.card .badges{
  position:absolute;
  top:12px; left:12px;
  display:flex; gap:8px; flex-wrap:wrap;
}
.card .badge{
  padding:7px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(0,0,0,.06);
  font-weight:900;
  font-size:12px;
}

.section--dark .card{background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12);padding:16px;
  border-radius:16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);}

.section--dark .card h3{margin:0 0 6px}
.section--dark .card p{margin:0; color: rgba(255,255,255,.80)}

/* Reviews */
.review{padding:16px}
.review__top{display:flex; align-items:center; gap:12px; margin-bottom:10px}
.avatar{
  width:44px;height:44px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--pine), var(--olive));
  color:var(--bg);
  font-weight:900;
  font-family: Manrope, Inter, system-ui, sans-serif;
}
.review p{margin:0; color: rgba(31,41,55,.92)}

/* Contacts */
.contacts{display:grid; grid-template-columns: 1fr 1fr; gap:16px}
.contacts .card{padding:16px}
.list{margin:10px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.row{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.map{
  margin-top:12px;
  height:220px;
  border-radius:16px;
  background: linear-gradient(135deg, rgba(5,87,50,.10), rgba(105,118,54,.12));
  border: 1px dashed rgba(0,0,0,.14);
  display:grid;
  place-items:center;
  text-align:center;
}

/* Footer */
.footer{
  background: #043a23;
  color:var(--bg);
  padding:26px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a{color: rgba(255,255,255,.86)}
.footer__links a:hover{color:var(--bg)}

/* Back to top */
.back-to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid rgba(5,87,50,.25);
  background:rgba(5,87,50,.85);
  color:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(10px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    background .15s ease,
    box-shadow .15s ease;
  box-shadow:0 10px 24px rgba(5,87,50,.25);
  z-index:40;
}
.back-to-top svg{
  width:20px;
  height:20px;
  fill:currentColor;
}
.back-to-top.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.back-to-top:hover{
  background:var(--olive);
  box-shadow:0 14px 30px rgba(105,118,54,.35);
}

/* Сетки и галереи */
.grid-3,
.grid-2,
.steps{
  grid-template-columns: 1fr;
  gap: 12px;
}
.features{
  display: grid;
  grid-template-columns: 1fr;
  flex-direction: column;
  gap: 24px;
}

/* Content */
.content ul{padding-left:18px}
.cta-box{margin-top:40px}
.content{max-width: 900px}
.content h2{margin-bottom: 14px}
.content h3{
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--pine);
}
.content p{margin-bottom: 14px}

/* FAQ */
.faq{
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  background: var(--bg);
}
.faq-item + .faq-item{
  border-top: 1px solid rgba(0,0,0,.06);
}
.faq-question{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  background: rgba(5,87,50,.03);
  border:none;
  cursor:pointer;
  font-size:16px;
  font-weight:900;
  text-align:left;
  transition: background .2s ease;
}
.faq-question:hover{
  background: rgba(105,118,54,.08);
}
.faq-icon{
  width:18px;
  height:18px;
  transition: transform .25s ease;
}
.faq-item.is-open .faq-icon{
  transform: rotate(180deg);
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .25s ease;
  background:var(--bg);
}
.faq-answer__inner{
  padding:0 20px 18px;
}
.faq-answer p{
  margin:0;
  color:rgba(31,41,55,.9);
}

/* Breadcrumbs */
.breadcrumbs{padding:14px 0 0}
.breadcrumbs__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
}
.breadcrumbs__item{
  display:flex;
  align-items:center;
}
.breadcrumbs__item:not(:last-child)::after{
  content:"/";
  margin:0 6px;
  color:rgba(31,41,55,.4);
}
.breadcrumbs__link{
  display:flex;
  align-items:center;
  color:var(--pine);
  font-weight:600;
}
.breadcrumbs__link:hover{color:var(--olive)}
.breadcrumbs__home{
  width:18px;
  height:18px;
}
.breadcrumbs__current{
  color:rgba(31,41,55,.65);
}

/* скрытый текст для SEO */
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Compare */
.compare{
  margin-top: 40px;
  overflow-x: auto;
}
.compare__table{
  min-width: 800px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.compare__row{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}
.compare__row > div{
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-right: 1px solid rgba(0,0,0,.06);
}
.compare__row > div:last-child{border-right: none}
.compare__row--head{
  background: rgba(5,87,50,.06);
  font-weight: 800;
}
.compare__row--cta{
  background: rgba(105,118,54,.06);
  text-align: center;
}
.compare__row--cta .btn{margin: 0 auto}

/* FIX: hero--format больше НЕ переопределяет глобальный .hero__bg */
.hero--format{
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--bg);
}
.hero--format .hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.05);
}
.hero--format .hero__overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,87,50,0.2) 0%, rgba(5,87,50,0.75) 80%),
    radial-gradient(circle at 20% 20%, rgba(105,118,54,0.4), transparent 60%);
}
.hero--format .hero__inner{
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero--format .hero__text h1{
  font-size: 52px;
  margin-bottom: 14px;
}
.hero--format .hero__text p{
  font-size: 18px;
  opacity: 0.95;
  max-width: 560px;
}
.hero--format .hero__formats{
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.format-chip{
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 700;
  transition: 0.2s ease;
}
.format-chip:hover{
  background: var(--olive);
  border-color: var(--olive);
  color: var(--pine);
}
.format-chip.is-active{
  background: var(--olive);
  border-color: var(--olive);
}

.section.wide .title{
  font-size: 40px;
  margin-bottom: 16px;
  color: #055732;
}
.section.wide .lead{
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 40px;
  color: #555;
}
.section.wide .grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.section.wide .block h3{
  margin-bottom: 16px;
  color: #055732;
}

.section.page{
  background: var(--card);
}

.section.page .content{
  max-width: 820px;
  margin: 0 auto;
  background: #fdfcf7; /* цвет бумаги */
  padding: 20px 20px;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  position: relative;
}

/* Отступы */
.section.page p{
  margin: 0 0 22px;
}

.styled-list{
  list-style: none;
  padding: 0;
}
.styled-list li{
  padding-left: 24px;
  margin-bottom: 12px;
  position: relative;
}
.styled-list li::before{
  content: "";
  width: 8px;
  height: 8px;
  background: #697636;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}
.cta-box{
  text-align: center;
  margin-top: 40px;
}

/* ================= Responsive ================= */

/* Tablet */
@media (max-width: 1024px){
  h1{font-size:46px}
  .hero .grid{grid-template-columns: 1fr; gap:18px}
  .stats{grid-template-columns: 1fr}
  .grid--4{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .grid--3{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .contacts{grid-template-columns: 1fr}
  .plans{grid-template-columns: 1fr}
  .header .inner{ gap:10px; }
  .header .brand{ min-width: 0; gap:10px; }
  .header{ padding-left: 10px; padding-right: 10px; }
  .card .img{ height:200px; }
}

/* Mobile */
@media (max-width: 760px){
  .hero .grid{grid-template-columns: 1fr; gap:1px}
  .header .nav{display:none}
  .burger{display:inline-block}
  h1{font-size:38px}
  .section{padding:56px 0}
  .head{flex-direction:column; align-items:flex-start}
  .form__row{grid-template-columns: 1fr}
  .card{grid-template-columns: 1fr}
  .grid--3{grid-template-columns: 1fr}
  .header .brand .logo{ height:38px; }
  .header .brand .text{ display:none; }
  .header .actions{ gap: 8px;}
  .icon{ width:40px; height:40px; border-radius:13px; }
  .header .phone{ display:inline-flex; }
  .back-to-top{ right:14px; bottom:70px; }
  .card .img{ height:170px; }
}
/* ===== LOCATION MODAL */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.modal.is-open {
  display: block;
}

.modal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.modal .dialog {
  position: relative;
  width: min(900px, 92%);
  max-height: 90vh;
  margin: 5vh auto;
  background: var(--bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal .content {
  padding: 24px;
  overflow-y: auto;
}

.modal .close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(0,0,0,.05);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
}

.modal .loader {
  text-align: center;
  padding: 40px 0;
  color: #666;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition:
    background .25s ease,
    box-shadow .25s ease,
    transform .15s ease;
}

.modal-prev { left: 0px; }
.modal-next { right: 0px; }

.modal-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

.modal-nav:active {
  transform: translateY(-50%) scale(.92);
}

.modal-nav svg {
  transition: transform .2s ease;
}

.modal-prev:hover svg {
  transform: translateX(-2px);
}

.modal-next:hover svg {
  transform: translateX(2px);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition:
    background .25s ease,
    box-shadow .25s ease,
    transform .15s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

.modal-close:active {
  transform: scale(.92);
}

.modal-close svg {
  transition: transform .2s ease;
}

.modal-close:hover svg {
  transform: rotate(90deg);
}




/* LIGHTBOX */
#lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s step-end;
}

#lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  max-width: 95vw;
  max-height: 95vh;
  min-width: 320px;
  min-height: 200px;
}
.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

/* Показываем подпись при наведении мыши */
.lightbox__content:hover .lightbox__caption {
  opacity: 1;
}
#lightboxImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Когда изображение загружено — показываем */
#lightboxImage[src] {
  opacity: 1;
}

/* Кнопки управления */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  z-index: 10000;

  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition:
    background .25s ease,
    box-shadow .25s ease,
    transform .15s ease,
    opacity .2s ease;
}

/* Hover */
.lightbox__close:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.lightbox__prev:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.lightbox__next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

/* Active (нажатие) */
.lightbox__close:active {
  transform: scale(.95);
}

.lightbox__prev:active {
  transform: translateY(-50%) scale(.95);
}

.lightbox__next:active {
  transform: translateY(-50%) scale(.95);
}

/* Позиционирование */
.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lightbox__next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
.lightbox__prev svg,
.lightbox__next svg,
.lightbox__close svg {
  transition: transform .2s ease;
}

.lightbox__prev:hover svg {
  transform: translateX(-2px);
}

.lightbox__next:hover svg {
  transform: translateX(2px);
}

.lightbox__close:hover svg {
  transform: rotate(90deg);
}


/* SLIDER */
.gallery{
  display: grid;
  grid-template-columns: 1.15fr;
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  min-height: 420px;
  max-width: 820px;
  position: relative;
  margin: 0 auto;


}

.gallery .slider {
  position: relative;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.slider .track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider .slitem {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slider .slitem.is-active {
  opacity: 1;
  position: absolute;
}

.slider .slitem img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;

  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition:
    background .25s ease,
    box-shadow .25s ease,
    transform .15s ease,
    opacity .2s ease;
}

/* Hover */
.slider .prev:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

.slider .next:hover {
  transform: translateY(-50%) scale(1.1);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

/* Active (нажатие) */
.slider .prev:active {
  transform: translateY(-50%) scale(.92);
}

.slider .next:active {
  transform: translateY(-50%) scale(.92);
}

/* Позиционирование */
.slider .prev {
  left: 12px;
}

.slider .next {
  right: 12px;
}
.slider .nav svg {
  transition: transform .2s ease;
}

.slider .prev:hover svg {
  transform: translateX(-2px);
}

.slider .next:hover svg {
  transform: translateX(2px);
}


.slider .sldots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slider .sldot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
}

.slider .sldot.is-active {
  background: #ffffff;
}




