:root{
  --bg:#f5f6f8;
  --paper:#ffffff;

  --text:#111827;
  --muted:#5b6472;

  --line:#e7eaf0;
  --line2:#dfe4ec;

  --accent:#1f7a55;
  --accent2:#0f5f40;

  --shadow: 0 18px 50px rgba(17,24,39,.10);
  --shadow2: 0 10px 28px rgba(17,24,39,.08);

  --r:18px;
  --r2:14px;

  --container: 1180px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);

  /* ЛОКАЛЬНЫЙ ФОН: берём переменную из .hero, если нет — запасной градиент */
  background:
    linear-gradient(180deg, rgba(245,246,248,.94), rgba(245,246,248,.82)),
    radial-gradient(900px 500px at 15% 0%, rgba(31,122,85,.06), transparent 55%),
    radial-gradient(900px 500px at 85% 10%, rgba(17,24,39,.08), transparent 60%);
}

a{ color:inherit; }
a:hover{ text-decoration:underline; }

.container{ width:min(var(--container), 92vw); margin:0 auto; }
.muted{ color:var(--muted); }
.small{ font-size:.92rem; }

.phone-reveal, .email-reveal{ cursor:pointer; white-space:nowrap; text-decoration:none; }
.phone-reveal:hover, .email-reveal:hover{ text-decoration:underline; }

/* Top */
.top{
  background: rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.top__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:.65rem 0;
}
.top__left,.top__right{ display:flex; gap:.75rem; align-items:center; flex-wrap:wrap; }
.top__text{ color:var(--muted); font-weight:650; }
.top__link{ font-weight:900; text-decoration:none; }
.dot{ color:#9aa3b2; }

.badge{
  display:inline-flex; align-items:center;
  padding:.28rem .62rem;
  border-radius:999px;
  border:1px solid var(--line2);
  background:#fff;
  font-weight:1000;
  font-size:.86rem;
}
.badge--city{
  border-color: rgba(31,122,85,.18);
  background: rgba(31,122,85,.06);
}

/* Header */
.header{
  position:sticky; top:0; z-index:60;
  background: rgba(245,246,248,.86);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; padding:1rem 0;
}

.nav{ display:flex; gap:.4rem; align-items:center; }
.nav a{
  text-decoration:none;
  font-weight:900;
  color:#2a3442;
  padding:.48rem .65rem;
  border-radius:12px;
}
.nav a:hover{ background: rgba(17,24,39,.05); }

.header__cta{ display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.78rem 1rem;
  border-radius: 14px;
  border:1px solid var(--line2);
  background:#fff;
  font-weight:1000;
  letter-spacing:.2px;
  text-decoration:none;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select:none;
}
.btn:hover{ box-shadow: var(--shadow2); text-decoration:none; }
.btn:active{ transform: translateY(1px); }
.btn--full{ width:100%; }

.btn--primary{
  background: linear-gradient(135deg, var(--accent), rgba(31,122,85,.72));
  border-color: rgba(31,122,85,.22);
  color:#fff;
  box-shadow: 0 14px 30px rgba(31,122,85,.35);
}
.btn--primary:hover{ background: linear-gradient(135deg, var(--accent2), rgba(31,122,85,.82)); }
.btn--ghost{ background: rgba(255,255,255,.90); }
.btn--soft{
  background: rgba(17,24,39,.03);
  border-color: rgba(17,24,39,.08);
  color:#1f2a3a;
}
.btn--soft:hover{ background: rgba(17,24,39,.06); }

/* ====== BRAND (иконка + текст в одном зелёном блоке) ====== */
.brand{
  display:flex;
  align-items:center;
  gap:.85rem;
  text-decoration:none;

  padding:.62rem .95rem;
  border-radius: 18px;

  background: linear-gradient(135deg, #1f7a55 0%, #168a5a 45%, #0f5f40 100%);
  border: 1px solid rgba(15,95,64,.35);

  box-shadow:
    0 12px 26px rgba(31,122,85,.25),
    inset 0 1px 0 rgba(255,255,255,.20);

  color:#fff;
  min-height: 52px;

  position:relative;
  overflow:hidden;
}
.brand::before{
  content:"";
  position:absolute;
  inset:-40px -60px auto auto;
  width:140px;
  height:140px;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  border-radius: 999px;
  pointer-events:none;
}

.brand__mark{
  width:44px;
  height:44px;
  border-radius:14px;
  flex:0 0 auto;

  display:flex;
  align-items:center;
  justify-content:center;

  background: linear-gradient(145deg, #1f7a55 0%, #177a53 45%, #0f5f40 100%);
  border: 1px solid rgba(15,95,64,.45);

  box-shadow:
    0 10px 24px rgba(31,122,85,.35),
    inset 0 1px 0 rgba(255,255,255,.18);

  position:relative;
  overflow:hidden;
}
.brand__mark::before{
  content:"W";
  font-weight: 1000;
  font-size: 1.35rem;
  letter-spacing: .5px;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.brand__mark::after{
  content:"";
  position:absolute;
  top:-18px;
  left:-10px;
  width:70px;
  height:40px;
  transform: rotate(15deg);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  border-radius: 999px;
  pointer-events:none;
}

.brand__text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand__text strong{
  font-size: 1.05rem;
  letter-spacing: .2px;
  font-weight: 1000;
  color:#fff;
}
.brand__text small{
  margin-top:.18rem;
  font-size: .88rem;
  font-weight: 750;
  color: rgba(255,255,255,.85);
}
.brand:hover{
  box-shadow:
    0 16px 34px rgba(31,122,85,.30),
    inset 0 1px 0 rgba(255,255,255,.22);
  text-decoration:none;
}

/* Hero (локальный фон через CSS variable) */
.hero{
  padding: 1.6rem 0 2.0rem;

  background:
    linear-gradient(180deg, rgba(245,246,248,.92), rgba(245,246,248,.82)),
    radial-gradient(900px 500px at 15% 0%, rgba(31,122,85,.06), transparent 55%),
    radial-gradient(900px 500px at 85% 10%, rgba(17,24,39,.08), transparent 60%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 1px solid var(--line);
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:1.2rem;
  align-items:start;
}
.hero__content{
  background: rgba(255,255,255,.90);
  border:1px solid rgba(223,228,236,.95);
  border-radius: var(--r);
  box-shadow: 0 30px 80px rgba(17,24,39,.14);
  padding: 1.15rem;
  backdrop-filter: blur(10px);
}

.hero__chips{ display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:.9rem; }
.chip{
  display:inline-flex;
  padding:.28rem .6rem;
  border-radius:999px;
  border:1px solid rgba(31,122,85,.20);
  background: rgba(31,122,85,.07);
  color:#1b5e43;
  font-weight:1000;
  font-size:.85rem;
}
.chip--gray{
  border-color: rgba(17,24,39,.12);
  background: rgba(17,24,39,.04);
  color:#334155;
}

.hero h1{
  margin:0 0 .55rem;
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  letter-spacing:-.35px;
  line-height:1.06;
}
.hero h1::after{
  content:"";
  display:block;
  width: 110px;
  height: 4px;
  margin-top: .65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31,122,85,.85), rgba(31,122,85,.10));
}
.hero__lead{
  margin:0 0 .9rem;
  color:#2f3b4a;
  line-height:1.68;
  max-width: 90ch;
}
.hero__actions{ display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom: .85rem; }

.hero__cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:.6rem;
}
.kcard{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r2);
  padding: .78rem;
  box-shadow: 0 12px 26px rgba(17,24,39,.07);
}
.kcard__title{ color:var(--muted); font-weight:900; font-size:.9rem; }
.kcard__value{ margin-top:.35rem; font-weight:1000; letter-spacing:.2px; }
.kcard__meta{ margin-top:.2rem; color:var(--muted); font-size:.92rem; }

.note{
  margin-top: .95rem;
  background: rgba(31,122,85,.07);
  border: 1px solid rgba(31,122,85,.16);
  border-radius: var(--r2);
  padding: .85rem .9rem;
  color:#203244;
}

/* Side */
.hero__side{ display:flex; flex-direction:column; gap:.9rem; }
.photo{
  height: 220px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;

  /* ЛОКАЛЬНАЯ КАРТИНКА */
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(245,246,248,.85)),
    url("/static/img/photo-card.jpg");
  background-size: cover;
  background-position: center;
}
.photo__overlay{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:1rem; gap:.25rem;
}
.photo__label{
  display:inline-flex; align-self:flex-start;
  padding:.3rem .65rem;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.88);
  font-weight:1000;
}
.photo__hint{ color:#2a3442; font-weight:800; }

.mini-form{
  background: rgba(255,255,255,.90);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  backdrop-filter: blur(10px);
}
.mini-form__head{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:1rem; margin-bottom: .85rem;
}
.mini-form__split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:.65rem;
  margin-top:.75rem;
}
.mini-form__foot{
  margin-top:.85rem;
  color:var(--muted);
  font-weight:750;
  font-size:.95rem;
}

/* Sections */
.section{ padding: 2.4rem 0; }
.section--soft{
  background: rgba(255,255,255,.70);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.section__head h2{
  margin:0 0 .45rem;
  font-size: 1.85rem;
  letter-spacing:-.2px;
}
.section__head p{ margin:0; }

.text-grid{
  margin-top:1rem;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:1rem;
}
.text-card{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1.1rem;
}
.text-card h3{ margin:.1rem 0 .6rem; }
.text-card p{ margin:0; color:#2f3b4a; line-height:1.75; }
.list{ margin:.2rem 0 0; padding-left: 1.1rem; color:#2f3b4a; line-height:1.8; }

/* Choose */
.choose{
  margin-top:1rem;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:1rem;
  align-items:start;
}
.choose__card{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1.15rem;
}
.choose__card--accent{
  background: linear-gradient(180deg, rgba(31,122,85,.08), rgba(255,255,255,.92) 55%);
  border-color: rgba(31,122,85,.18);
}
.step{
  display:flex; gap:.85rem; align-items:flex-start;
  padding: .85rem .9rem;
  border:1px solid var(--line);
  border-radius: var(--r2);
  background: rgba(17,24,39,.02);
  margin-top:.75rem;
}
.step__num{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(31,122,85,.10);
  border:1px solid rgba(31,122,85,.18);
  color:#1b5e43;
  font-weight:1000;
  flex:0 0 auto;
}
.step__title{ font-weight:1000; margin-bottom:.15rem; }

.callout{
  margin-top: .9rem;
  padding: .9rem;
  border-radius: var(--r2);
  border: 1px solid rgba(31,122,85,.16);
  background: rgba(31,122,85,.07);
  font-weight:900;
  color:#203244;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.btn-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:.7rem;
  margin-top: .9rem;
}

/* Catalog */
.catalog{ margin-top:1rem; }
.catalog__title{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1rem 1.1rem;
}
.catalog__title h3{ margin:.1rem 0 .25rem; }
.catalog__title p{ margin:0; color:var(--muted); }
.catalog__title--mt{ margin-top:1rem; }

.grid{
  margin-top:1rem;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.item{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.item[open]{ border-color: rgba(31,122,85,.25); }
.item > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding: 1rem 1.05rem;
  font-weight:1000;
}
.item > summary::-webkit-details-marker{ display:none; }

.pill2{
  display:inline-flex;
  padding:.22rem .6rem;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.04);
  color:#334155;
  font-weight:1000;
  font-size:.85rem;
}
.pill2--hollow{
  border-color: rgba(31,122,85,.18);
  background: rgba(31,122,85,.07);
  color:#1b5e43;
}

.item__body{ border-top:1px solid var(--line); padding: 0 1.05rem 1rem; }
.item__body p{ margin:.85rem 0 .85rem; color:#2f3b4a; line-height:1.75; }
.item__cta{ display:flex; gap:.65rem; flex-wrap:wrap; }

.catalog__bottom{
  margin-top: 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1rem 1.1rem;
}
.hint2{ display:flex; flex-direction:column; gap:.25rem; }
.hint2 span{ color:var(--muted); font-weight:750; }

/* Delivery */
.deliver{
  margin-top:1rem;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:1rem;
}
.dcard{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1.1rem;
}
.dcard h3{ margin:.1rem 0 .5rem; }
.dcard p{ margin:0; color:#2f3b4a; line-height:1.75; }

/* Contacts */
.contacts{
  margin-top:1rem;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:1rem;
  align-items:start;
}
.contacts__left{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.cbox{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1.05rem;
}
.cbox__label{ color:var(--muted); font-weight:900; font-size:.92rem; }
.cbox__value{
  margin-top:.35rem;
  font-weight:1000;
  font-size:1.05rem;
  text-decoration:none;
  display:block;
}

.cta{
  border:1px solid rgba(31,122,85,.16);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(31,122,85,.08), rgba(255,255,255,.92) 60%);
}
.cta h3{ margin:.1rem 0 .35rem; }
.cta p{ margin:.2rem 0 .85rem; color:var(--muted); line-height:1.7; }

.seo-bottom{
  margin-top: 1.2rem;
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 1.1rem;
}
.seo-bottom h2{ margin:.1rem 0 .55rem; font-size: 1.35rem; letter-spacing:-.1px; }
.seo-bottom p{ margin:.65rem 0 0; color:#2f3b4a; line-height:1.85; }

/* Footer */
.footer{
  padding: 1.3rem 0 2rem;
  border-top:1px solid var(--line);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  font-weight:900;
  color:#2a3442;
}
.footer__links{
  display:flex;
  gap:.9rem;
  flex-wrap:wrap;
}
.footer__links a{
  text-decoration:none;
  color:#2a3442;
  font-weight:1000;
}
.footer__links a:hover{ text-decoration:underline; }

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__cards{ grid-template-columns: 1fr; }
  .mini-form__split{ grid-template-columns: 1fr; }
  .text-grid{ grid-template-columns: 1fr; }
  .choose{ grid-template-columns: 1fr; }
  .btn-row{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .deliver{ grid-template-columns: 1fr; }
  .contacts{ grid-template-columns: 1fr; }
  .contacts__left{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction:column; align-items:flex-start; }
  .hero{ background-attachment: scroll; }
}
@media (max-width: 720px){
  .header__inner{ flex-wrap:wrap; }
  .header__cta{ width:100%; }
  .header__cta .btn{ flex:1 1 auto; }
  .hero__actions .btn{ width:100%; }
  .top__inner{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 520px){
  .brand__text small{ display:none; }
  .hero h1{ font-size: 2rem; }
  .photo{ height: 190px; }
  .btn{ padding:.74rem .9rem; }
}
