/* Sustainable living and eco-friendly products — energy efficient home
   палитра: земляная | стиль: стеклянный | код: сокращённый
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #faf7f2;
  --color-text: #221f19;
  --color-muted: #6a6154;
  --color-accent: #5f6d2f;
  --color-surface: #eeeade;
  --color-on-accent: #ffffff;

  --font-heading: 'Abril Fatface', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --radius: 20px;
  --shadow: 0 12px 40px rgb(0 0 0 / .12);
  --container: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* .swiper-pagination (vendor) всегда z-index:10 и растянута на всю ширину —
   кнопки листания не должны оказаться под ней, с каким бы z-index их ни
   поставила секционная раскладка. */
[data-slider-prev], [data-slider-next] { z-index: 20 !important; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(1rem, 1.1vw, 1.125rem); margin: 0 0 1.1em; max-width: 68ch; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.cnt {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: hidden;
}

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

.sc-eye {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .6rem;
}

/* шапка */
.hd {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.hd-tra { background: transparent; border-bottom-color: transparent; }
.hd-inn { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.hd-bra { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.nv-lis { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nv-lin { display: block; padding: .5rem .9rem; border-radius: var(--radius);
  color: var(--color-text); text-decoration: none; font-weight: 500;
  transition: background .2s ease, color .2s ease; }
.nv-lin:hover { background: var(--color-surface); }
.nv-lin.active-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.nv-spl { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.hd-bur { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.hd-bur span { width: 22px; height: 2px; background: var(--color-text); }

/* кнопки */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bt-pri { background: var(--color-accent); color: var(--color-on-accent); }
.bt-pri:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bt-gho { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.bt-gho:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* формы */
.fm label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.fm input, .fm textarea {
  width: 100%; padding: .8rem 1rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: inherit;
}
.fm input:focus, .fm textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.fm [aria-invalid="true"] { border-color: #c62828; }
.fm-err { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.fm-ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.fm-con { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.fm-con input { width: auto; margin: .25rem 0 0; }

/* правовые страницы */
.lg { background: var(--color-bg); }
.lg-inn { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lg h2 { margin-top: 2.2rem; }
.lg h3 { margin-top: 1.4rem; }
.lg-upd { color: var(--color-muted); font-size: .9rem; }
.lg-tab { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.lg-tab th, .lg-tab td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.lg-tab th { width: 34%; font-weight: 600; }
.lg-bac { margin-top: 2.5rem; }

/* футер */
.ft { background: var(--color-surface); }
.ft-con { background: var(--color-text); color: var(--color-bg); }
.ft-con a { color: inherit; }
.ft-inn { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.ft-row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.ft-bra { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.ft-tag { opacity: .75; font-size: .95rem; }
.ft-tit { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.ft-add { font-style: normal; line-height: 1.7; }
.ft-hou { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.ft-lin { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ft-ck { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.ft-bot { display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.2rem; font-size: .85rem; opacity: .75;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); }
.ft-bot p { margin: 0; }

/* плашка cookie */
.ck {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1080;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  box-shadow: 0 -8px 30px rgb(0 0 0 / .12);
  transform: translateY(100%); transition: transform .35s ease;
}
.ck.visible-active { transform: translateY(0); }
.ck-inn { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.ck-tex p { margin: 0; font-size: .92rem; max-width: 70ch; }
.ck-act { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.ck-con { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ck-opt { display: grid; gap: .6rem; margin-top: 1rem; }
.ck-opt { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.ck-opt span { grid-column: 2; font-weight: 400; opacity: .75; }
/* анимации: без JS всё видно */
[data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991px) {
  .ft-inn { grid-template-columns: 1fr 1fr; }
  .ck-inn { flex-direction: column; align-items: stretch; }
  .ck-act { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .hd-bur { display: flex; }
  .hd-cta { display: none; }
  .nv { display: none; width: 100%; }
  .nv.open-active { display: block; }
  .nv-lis { flex-direction: column; padding-block: .6rem; }
  .hd-inn { flex-wrap: wrap; }
  .ft-inn { grid-template-columns: 1fr; gap: 2rem; }
  .ft-bot, .ft-row { flex-direction: column; }
  .ck-act .bt { flex: 1 1 auto; }
}

/* Секционные раскладки: hero-grd — первый экран, spl — текст/фото,
   crd — карточка, gal — галерея, bento — асимметричная сетка. */
.rd-pro {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  height: 4px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}
.rd-pro span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--color-accent);
}
.hero,
.in-hero { min-height: 90vh; display: flex; align-items: center; }
.hero-grd,
.spl,
.con-grd { display: grid; gap: 2rem; align-items: center; }
.hero-grd > *,
.spl > *,
.con-grd > * { min-width: 0; }
.hero-grd > div,
.spl > div { padding-block: .5rem; }
.sec-img,
.wide-img,
.gal img,
.swiper-slide img,
.bento img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.sec-img,
.wide-img { box-shadow: var(--shadow); }
.bt-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.crd {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 2.25rem;
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.crd > :last-child { margin-bottom: 0; }
.crd-grd,
.tile-grd,
.gal,
.count-grd { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
.ico {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  letter-spacing: .08em;
}
.tab-wrap {
  margin-block: 2rem;
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cmp-tab { width: 100%; min-width: 42rem; border-collapse: collapse; background: var(--color-bg); }
.cmp-tab th,
.cmp-tab td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--color-surface); }
.cmp-tab thead th { background: var(--color-accent); color: var(--color-on-accent); }
.cmp-tab tbody th { font-weight: 700; }
.cmp-tab tbody tr:last-child > * { border-bottom: 0; }
.num-lis { list-style: none; margin: 2.25rem 0; padding: 0; counter-reset: decisions; }
.num-lis li {
  position: relative;
  counter-increment: decisions;
  padding: 1.5rem 0 1.5rem 4.5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.num-lis li::before {
  content: "0" counter(decisions);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
}
.tile-grd .crd:nth-child(even) { transform: translateY(.8rem); }
.gal { margin-block: 2rem; }
.gal figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow);
}
.gal img { border-radius: var(--radius) var(--radius) 0 0; }
.gal figcaption { flex: 1; padding: 1.25rem; }
.quote-sec { background: var(--color-accent) !important; color: var(--color-on-accent); }
.quote-sec .sc-eye,
.quote-sec a { color: var(--color-on-accent); }
.quote-sec .bt-gho { border-color: var(--color-on-accent); }
.quote-sec .bt-gho:hover { background: var(--color-on-accent); color: var(--color-accent); }
.quote-sec blockquote {
  max-width: 24ch;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.2;
}
.sld-wrap { position: relative; margin-top: 2rem; padding-bottom: 3.75rem; }
.swiper { overflow: hidden; }
.swiper-wrapper { align-items: stretch; }
.swiper-slide { height: auto; }
.swiper-slide img { margin: -2.25rem -2.25rem 1.5rem; width: calc(100% + 4.5rem); max-width: none; border-radius: var(--radius) var(--radius) 0 0; }
.sld-btn {
  position: absolute;
  bottom: 0;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-accent);
  font-size: 1.35rem;
  cursor: pointer;
}
[data-slider-prev] { left: 0; }
[data-slider-next] { right: 0; }
.sld-wrap .swiper-pagination { bottom: .75rem; }
.swiper-pagination-bullet-active { background: var(--color-accent); }
.txt-cols { margin-block: 2rem; }
.txt-cols > div { min-width: 0; }
.bento { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
.bento .crd { justify-content: center; }
.bento-big { justify-content: flex-start !important; }
.bento-big img { margin-top: auto; }
.count-grd { margin-block: 2rem; }
.count {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / .25);
  border-radius: var(--radius);
  background: var(--color-bg);
  text-align: center;
  box-shadow: var(--shadow);
}
.count strong { font-family: var(--font-heading); font-size: clamp(2.8rem, 6vw, 4.5rem); color: var(--color-accent); line-height: 1; }
.count span { margin-top: .8rem; }
.wide-img { aspect-ratio: 2 / 1; margin: 2rem 0; }
.accordion { margin-top: 2rem; --bs-accordion-border-color: color-mix(in srgb, var(--color-muted) 22%, transparent); }
.accordion-item { overflow: hidden; margin-bottom: .8rem; border-radius: var(--radius) !important; background: color-mix(in srgb, var(--color-bg) 88%, transparent); }
.accordion-button { padding: 1.25rem 1.4rem; font-family: var(--font-body); font-weight: 700; color: var(--color-text); background: transparent; }
.accordion-button:not(.collapsed) { color: var(--color-on-accent); background: var(--color-accent); box-shadow: none; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.accordion-button:focus { box-shadow: inset 0 0 0 2px var(--color-accent); }
.accordion-body { padding: 1.25rem 1.4rem 1.5rem; }
.timeline { position: relative; list-style: none; margin: 2.5rem 0; padding: 0 0 0 3.4rem; counter-reset: stages; }
.timeline::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: 1.25rem; width: 2px; background: var(--color-accent); }
.timeline li { position: relative; counter-increment: stages; padding: 0 0 2rem 1rem; }
.timeline li::before {
  content: counter(stages);
  position: absolute;
  left: -3.15rem;
  top: -.25rem;
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}
.timeline p { margin-bottom: 0; }
.price { position: relative; }
.price ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.price li + li { margin-top: .45rem; }
.price .bt { margin-top: auto; }
.price-val { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.25rem); color: var(--color-accent); }
.price-val span { font-family: var(--font-body); font-size: .95rem; color: var(--color-muted); }
.price-feat { border: 2px solid var(--color-accent); }
.badge { align-self: flex-start; margin-bottom: 1rem; padding: .55rem .8rem; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); }
.price-note { max-width: none; margin-top: 1.5rem; font-weight: 700; }
.cta { padding-block: 1rem; text-align: center; }
.cta p { margin-inline: auto; }
.cta .bt-row { justify-content: center; }
.con-grd { align-items: start; }
.con-grd iframe { display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.fm { padding: 1.5rem; border: 1px solid rgb(255 255 255 / .25); border-radius: var(--radius); background: color-mix(in srgb, var(--color-bg) 88%, transparent); box-shadow: var(--shadow); }
#location iframe { margin-top: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 576px) {
  .crd-grd,
  .tile-grd,
  .count-grd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm { padding: 2.25rem; }
}

@media (min-width: 768px) {
  .hero-grd { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
  .spl,
  .con-grd { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .txt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
  .txt-cols > div + div { padding-left: clamp(1rem, 3vw, 2.5rem); border-left: 1px solid var(--color-accent); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-big { grid-row: span 2; }
  .count-grd { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-feat { transform: translateY(-.65rem); }
}

@media (min-width: 992px) {
  .crd-grd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-grd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(10rem, auto); }
  .bento-big { grid-column: span 2; grid-row: span 2; }
  #topic-09 .crd:nth-child(2) { transform: translateY(1.5rem); }
  #topic-09 .crd:nth-child(3) { transform: translateY(3rem); }
  #faq .accordion,
  #service-faq .accordion { max-width: 58rem; }
}

@media (max-width: 575px) {
  .bt-row .bt { width: 100%; }
  .crd { padding: 1.5rem; }
  .swiper-slide img { margin: -1.5rem -1.5rem 1.25rem; width: calc(100% + 3rem); }
  .tile-grd .crd:nth-child(even),
  .price-feat { transform: none; }
  .wide-img { aspect-ratio: 16 / 10; }
}
