/* Consumer reviews and buyer guides — expert versus user ratings
   палитра: мятная-свежая | стиль: брутальный | код: бэм-полный
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #f6fbf8;
  --color-text: #12241c;
  --color-muted: #4d6b5d;
  --color-accent: #0f7a5a;
  --color-surface: #e7f4ee;
  --color-on-accent: #ffffff;

  --font-heading: 'Space Grotesk', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --radius: 0;
  --shadow: 6px 6px 0 var(--color-text);
  --container: 66rem;
}

*, *::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.75rem, 7vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
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; }

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

section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

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

/* шапка */
.header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.header--transparent { background: transparent; border-bottom-color: transparent; }
.header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.header__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__link { 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; }
.nav__link:hover { background: var(--color-surface); }
.nav__link.js-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.nav--split { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.header__burger { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.header__burger span { width: 22px; height: 2px; background: var(--color-text); }

/* кнопки */
.btn {
  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;
}
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-accent); color: var(--color-on-accent); }

/* формы */
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form input, .form 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;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.form [aria-invalid="true"] { border-color: #c62828; }
.form__error { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.form__ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.form__consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form__consent input { width: auto; margin: .25rem 0 0; }

/* футер */
.footer { background: var(--color-surface); }
.footer--contrast { background: var(--color-text); color: var(--color-bg); }
.footer--contrast a { color: inherit; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.footer__brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.footer__tagline { opacity: .75; font-size: .95rem; }
.footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.footer__address { font-style: normal; line-height: 1.7; }
.footer__hours { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__cookie { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.footer__bottom { 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); }
.footer__bottom p { margin: 0; }

/* плашка cookie */
.cookie {
  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;
}
.cookie.js-visible { transform: translateY(0); }
.cookie__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.cookie__text p { margin: 0; font-size: .92rem; max-width: 70ch; }
.cookie__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.cookie__configure { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cookie__options { display: grid; gap: .6rem; margin-top: 1rem; }
.cookie__option { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.cookie__option span { grid-column: 2; font-weight: 400; opacity: .75; }

/* правовые страницы */
.legal { background: var(--color-bg); }
.legal__inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h2 { margin-top: 2.2rem; }
.legal h3 { margin-top: 1.4rem; }
.legal__updated { color: var(--color-muted); font-size: .9rem; }
.legal__table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.legal__table th, .legal__table td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.legal__table th { width: 34%; font-weight: 600; }
.legal__back { margin-top: 2.5rem; }
/* анимации: без 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) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .cookie__inner { flex-direction: column; align-items: stretch; }
  .cookie__actions { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .header__burger { display: flex; }
  .header__cta { display: none; }
  .nav { display: none; width: 100%; }
  .nav.js-open { display: block; }
  .nav__list { flex-direction: column; padding-block: .6rem; }
  .header__inner { flex-wrap: wrap; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom, .footer__row { flex-direction: column; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

/* ===== Секционные раскладки ===== */

/* Общая иерархия секций */
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

main > section:nth-of-type(odd) { background: var(--color-bg); }
main > section:nth-of-type(even) { background: var(--color-surface); }
main > section > .container > h2,
main > section > .container > .eyebrow + h2 { max-width: 19ch; }

/* Формы в карточках */
.form-card,
.contact-section__card {
  padding: 1.75rem;
  border: 2px solid var(--color-text);
  background: var(--color-bg);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.form-card__field label { display: block; margin-bottom: .3rem; font-weight: 700; }
.form-card__field input,
.form-card__field textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: .8rem;
  padding: .72rem .85rem;
  border: 2px solid var(--color-text);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
.form-card__check { display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 1rem; }
.form-card__check input { width: auto; flex: 0 0 auto; margin-top: .35rem; }

/* Первый экран */
.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  background: var(--color-bg) !important;
  background-image: linear-gradient(135deg, transparent 55%, var(--color-bg) 55%) !important;
}
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__content p:not(.eyebrow) { max-width: 58ch; }

/* Текст и фото */
.about__grid,
.split__grid,
.reverse-split__grid,
.page-hero__grid { display: grid; gap: 2rem; align-items: center; }
.about__grid img,
.split__grid img,
.page-hero__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--color-text);
  border-radius: 0;
  box-shadow: var(--shadow);
}
.reverse-split__grid img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border: 2px solid var(--color-text); box-shadow: var(--shadow); }

/* Нумерованный список */
.numbered__list { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: section-step; }
.numbered__list li {
  position: relative;
  min-height: 5rem;
  padding: 1.25rem 1rem 1.25rem 5rem;
  border-top: 2px solid var(--color-text);
  counter-increment: section-step;
}
.numbered__list li:last-child { border-bottom: 2px solid var(--color-text); }
.numbered__list li::before {
  content: counter(section-step, decimal-leading-zero);
  position: absolute; left: .5rem; top: .65rem;
  color: var(--color-accent); font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
}

/* Широкое фото */
.wide-media img { width: 100%; margin: 2rem 0; aspect-ratio: 16 / 7; object-fit: cover; border: 2px solid var(--color-text); box-shadow: var(--shadow); }
.wide-media__text { display: grid; gap: 1.5rem; }

/* Счётчики */
.metrics__grid { display: grid; gap: 1rem; margin: 2rem 0; }
.metrics__grid article { display: flex; flex-direction: column; min-height: 10rem; padding: 1.5rem; border: 2px solid var(--color-text); background: var(--color-bg); }
.metrics__value { color: var(--color-accent); font-family: var(--font-heading); font-size: clamp(2.8rem, 7vw, 4.5rem); line-height: 1; }

/* Аккордеоны */
.accordion { margin-top: 2rem; --bs-accordion-border-color: var(--color-text); --bs-accordion-border-width: 2px; --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; }
.accordion-item { color: var(--color-text); background: var(--color-bg); border: 2px solid var(--color-text); }
.accordion-item + .accordion-item { margin-top: .75rem; }
.accordion-button { color: var(--color-text); background: var(--color-bg); font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--color-on-accent); background: var(--color-accent); }
.accordion-body { padding: 1.25rem; }
.faq .accordion { max-width: 52rem; }
.faq .btn { margin-top: 1.5rem; }

/* Бенто */
.bento__grid { display: grid; gap: 1rem; margin-top: 2rem; }
.bento__item { padding: 1.75rem; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow); }
.bento__item--featured { background: var(--color-accent); color: var(--color-on-accent); }

/* Две колонки текста */
.two-copy__grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.two-copy__grid > div { padding-top: 1rem; border-top: 2px solid var(--color-text); }

/* Таблица сравнения */
.table-responsive { margin: 2rem 0 1.5rem; border: 2px solid var(--color-text); }
.comparison__table { min-width: 42rem; margin: 0; color: var(--color-text); }
.comparison__table > :not(caption) > * > * { padding: .9rem; border: 1px solid var(--color-text); background: var(--color-bg); }
.comparison__table thead th { color: var(--color-on-accent); background: var(--color-accent); }

/* Карточки */
.cards__grid,
.team__grid { display: grid; gap: 1.25rem; margin: 2rem 0; align-items: stretch; }
.card,
.team__grid article {
  height: 100%; padding: 1.75rem; border: 2px solid var(--color-text); border-radius: 0;
  background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow);
}
.team__grid article { display: flex; flex-direction: column; }
.team__grid img { width: 100%; margin-bottom: 1.25rem; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--color-text); }

/* Таймлайн */
.timeline__list { position: relative; list-style: none; max-width: 46rem; margin: 2rem 0 0; padding: 0 0 0 3.5rem; }
.timeline__list::before { content: ""; position: absolute; top: .5rem; bottom: .5rem; left: 1.25rem; width: 2px; background: var(--color-text); }
.timeline__list li { position: relative; display: grid; grid-template-columns: 1fr; gap: .6rem; padding: 0 0 1.75rem; }
.timeline__list li > span { position: absolute; left: -3.5rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--color-text); background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }

/* Цитата */
.quote { background: var(--color-accent) !important; color: var(--color-on-accent); }
.quote .eyebrow, .quote a { color: var(--color-on-accent); }
.quote blockquote { max-width: 24ch; margin: 1.5rem 0; font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.btn--light { border: 2px solid var(--color-on-accent); background: var(--color-on-accent); color: var(--color-accent) !important; }

/* Слайдеры */
.review-slider .swiper,
.services .swiper { margin-top: 2rem; padding: .25rem .5rem 3.5rem; }
.swiper-wrapper { align-items: stretch; }
.swiper-slide.card,
.swiper-slide.pricing-card { height: auto; }
.swiper-button-prev,
.swiper-button-next { width: 2.75rem; height: 2.75rem; border: 2px solid var(--color-text); background: var(--color-bg); color: var(--color-accent); }
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1rem; font-weight: 900; }
.swiper-pagination-bullet { background: var(--color-text); opacity: .4; }
.swiper-pagination-bullet-active { background: var(--color-accent); opacity: 1; }

/* Галерея */
.gallery__grid { display: grid; gap: 1.25rem; margin: 2rem 0; }
.gallery__grid figure { margin: 0; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow); }
.gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__grid figcaption { padding: 1rem; }

/* Тарифы */
.pricing-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.75rem; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow);
}
.pricing-card--recommended { border-color: var(--color-accent); border-width: 4px; }
.pricing-card__badge { align-self: flex-start; margin: -1rem 0 1rem; padding: .25rem .65rem; background: var(--color-accent); color: var(--color-on-accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pricing-card__price { color: var(--color-accent); font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.pricing-card__price span { color: var(--color-muted); font-family: var(--font-body); font-size: .9rem; font-weight: 500; }
.pricing-card ul { margin-bottom: 1.5rem; padding-left: 1.25rem; }
.pricing-card .btn { margin-top: auto; }
.services__note { margin-top: 1.5rem; padding: 1rem; border-left: 4px solid var(--color-accent); }

/* Внутренние страницы */
.page-hero { min-height: 64vh; display: flex; align-items: center; }
.story .two-copy__grid { margin-top: 2rem; }
.principles .card:nth-child(2) { background: var(--color-accent); color: var(--color-on-accent); }
.contact-details__grid { display: grid; gap: 1.25rem; align-items: stretch; }
.contact-details__grid article { padding: 1.75rem; border: 2px solid var(--color-text); background: var(--color-bg); box-shadow: var(--shadow); }
.contact-details address { font-style: normal; }
.contact-map iframe { display: block; margin-top: 1.5rem; border: 2px solid var(--color-text) !important; box-shadow: var(--shadow); }
.contact-section__card { display: grid; gap: 2rem; }

/* Адаптив: малые телефоны */
@media (max-width: 575px) {
  .hero__grid, .about__grid, .split__grid, .reverse-split__grid, .page-hero__grid,
  .metrics__grid, .bento__grid, .two-copy__grid, .cards__grid, .team__grid,
  .gallery__grid, .contact-details__grid, .contact-section__card { grid-template-columns: minmax(0, 1fr); }
  .form-card, .contact-section__card, .card, .pricing-card, .bento__item { padding: 1.25rem; }
  .hero { min-height: auto; padding-top: 4rem; }
  .wide-media img { aspect-ratio: 4 / 3; }
  .swiper-button-prev, .swiper-button-next { display: none; }
}

/* Адаптив: планшеты */
@media (min-width: 576px) {
  .metrics__grid, .bento__grid, .cards__grid, .team__grid, .gallery__grid, .contact-details__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-section__card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

/* Адаптив: средние экраны */
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr); }
  .about__grid, .split__grid, .page-hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reverse-split__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .two-copy__grid, .wide-media__text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards__grid, .team__grid, .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(9rem, auto); }
  .bento__item--featured { grid-column: span 2; grid-row: span 2; }
}

/* Адаптив: десктоп */
@media (min-width: 992px) {
  .hero__grid { gap: 3.5rem; }
  .split__grid, .about__grid, .page-hero__grid { gap: 3rem; }
  .reverse-split__grid { gap: 3rem; }
  .numbered__list { max-width: 54rem; }
  .evidence__accordion { max-width: 50rem; margin-left: auto; }
  .pricing-card--recommended { transform: translateY(-.65rem); }
}
