/* Healthy recipes and meal planning — budget healthy eating
   палитра: океан | стиль: крупный-воздушный | код: layout-компонент
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #f5fafd;
  --color-text: #0f2027;
  --color-muted: #4a6570;
  --color-accent: #0d6e8c;
  --color-surface: #e3f1f7;
  --color-on-accent: #ffffff;

  --font-heading: 'Chivo', Georgia, serif;
  --font-body: 'Chivo', system-ui, sans-serif;

  --radius: 22px;
  --shadow: none;
  --container: 76rem;
}

*, *::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.8rem, 7vw, 4.75rem); }
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; }

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

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

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

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

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

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

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

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

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

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

/* ================================================================
   Секционные раскладки
   Слой дополняет базовые токены и компоненты выше.
   ================================================================ */

/* layout */
.l-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero .l-grid { align-items: center; }
.hero img,
#about img,
#topic-05 img,
#topic-16 img,
#history img,
#delivery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

section > .l-container > h2,
section > .l-container > .l-section__eyebrow,
section > .l-container > p { position: relative; }

section > .l-container > h2 { max-width: 22ch; }
section > .l-container > h2 + p { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

/* components */
.c-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 2.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
}

section:nth-of-type(even) .c-card { background: var(--color-bg); }
.c-card > :last-child { margin-bottom: 0; }
.c-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

figure { margin: 0; }
figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
figcaption { padding: 1rem .25rem 0; color: var(--color-muted); }

.table-responsive {
  margin-block: 2rem;
  border-radius: var(--radius);
  overflow: auto;
  background: var(--color-bg);
}
.table { width: 100%; margin: 0; color: var(--color-text); }
.table > :not(caption) > * > * {
  padding: 1rem 1.15rem;
  color: inherit;
  background: transparent;
  border-color: color-mix(in srgb, var(--color-muted) 20%, transparent);
}
.table thead { background: var(--color-accent); color: var(--color-on-accent); }

/* главная: 22 самостоятельных решения */
#hero { padding-top: clamp(6rem, 11vw, 10rem); }
#hero img { order: -1; }
#hero .c-btn { margin: .4rem .6rem .4rem 0; }

#about .l-grid { align-items: center; }
#about img { min-height: 20rem; }

#topic-01 .l-grid { margin-top: 2rem; }
#topic-01 .c-card { padding-top: 4.5rem; }
#topic-01 .c-card::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  width: 2rem;
  height: .35rem;
  border-radius: var(--radius);
  background: var(--color-accent);
}

#topic-02 .l-grid { margin-block: 2.5rem; }
#topic-02 .c-card { justify-content: center; min-height: 13rem; }
#topic-02 [data-countup] {
  display: block;
  color: var(--color-accent);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}
#topic-02 .c-card p { margin-top: 1rem; }

#topic-03 .l-grid { gap: clamp(2rem, 6vw, 6rem); margin-top: 2.5rem; }
#topic-03 .l-grid > div:last-child { padding-top: clamp(0rem, 4vw, 4rem); }

#topic-04 .table tbody tr:nth-child(even) { background: var(--color-surface); }

#topic-05 .l-grid { align-items: center; }
#topic-05 img { min-height: 24rem; }

#topic-06 img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 2rem 0 2.5rem;
  max-height: 38rem;
}
#topic-06 img ~ p { margin-inline: auto; }

#topic-07 .l-grid { margin-top: 2.25rem; }
#topic-07 .c-card:nth-child(2) { transform: translateY(1.5rem); }

#topic-08 .l-grid { margin-top: 2.25rem; }
#topic-08 figure { display: flex; flex-direction: column; }

#topic-09 .nav-tabs { gap: .5rem; margin-top: 2rem; border: 0; }
#topic-09 .nav-link {
  border: 0;
  border-radius: var(--radius);
  color: var(--color-text);
  padding: .75rem 1.2rem;
}
#topic-09 .nav-link.active { background: var(--color-accent); color: var(--color-on-accent); }
#topic-09 .tab-content { margin-block: 1rem 2rem; min-height: 12rem; justify-content: center; }

.accordion { display: grid; gap: .75rem; margin-top: 2rem; }
.accordion-item { border: 0; border-radius: var(--radius) !important; overflow: hidden; background: var(--color-bg); }
.accordion-button { padding: 1.25rem 1.5rem; color: var(--color-text); background: var(--color-bg); box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: var(--color-on-accent); background: var(--color-accent); }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.accordion-body { padding: 1.5rem; }
#topic-10 .accordion { max-width: 56rem; margin-inline: auto; }

#topic-11 .c-slider { margin-top: 2rem; padding: 0 0 4rem; }
#topic-11 .swiper-slide { height: auto; padding: 1.25rem; }
#topic-11 .swiper-slide img { margin-bottom: 1.5rem; }
#topic-11 [data-slider-prev],
#topic-11 [data-slider-next] {
  position: absolute;
  bottom: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
}
#topic-11 [data-slider-prev] { left: 0; }
#topic-11 [data-slider-next] { right: 0; }

#topic-12 .l-grid--bento { margin-top: 2.25rem; }
#topic-12 .c-card--featured { gap: 1rem; }
#topic-12 .c-card--featured img { margin-top: auto; }

.c-timeline { list-style: none; max-width: 52rem; margin: 3rem auto 0; padding: 0; counter-reset: steps; }
.c-timeline li { position: relative; padding: 0 0 2.5rem 4.5rem; counter-increment: steps; }
.c-timeline li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.25rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--color-on-accent);
  background: var(--color-accent);
  font-weight: 700;
}
.c-timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.45rem;
  top: 3rem;
  bottom: 0;
  width: .15rem;
  background: var(--color-accent);
}

#topic-14 { background: var(--color-accent); color: var(--color-on-accent); }
#topic-14 .l-section__eyebrow, #topic-14 a { color: var(--color-on-accent); }
#topic-14 blockquote {
  max-width: 24ch;
  margin: 2rem 0;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.25;
  font-weight: 700;
}

.c-numbered { list-style: none; margin: 3rem 0 0; padding: 0; counter-reset: errors; }
.c-numbered li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 2rem 0;
  counter-increment: errors;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent);
}
.c-numbered li::before {
  content: counter(errors, decimal-leading-zero);
  grid-row: 1 / 3;
  color: var(--color-accent);
  font-size: 2rem;
  font-weight: 700;
}
.c-numbered li > * { grid-column: 2; }

#topic-16 .l-grid { align-items: center; }

#social-proof .l-container { max-width: 66rem; text-align: center; }
#social-proof .l-section__eyebrow, #social-proof p { margin-inline: auto; }
#social-proof h2 { margin-inline: auto; }
#social-proof blockquote {
  margin: 2rem auto;
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  line-height: 1.35;
}

#services .l-grid, #plans .l-grid { margin-block: 3rem 2rem; }
#services .c-card, #plans .c-card { padding: 2.5rem; }
#services .c-card .c-btn, #plans .c-card .c-btn { margin-top: auto; }
.c-card--recommended {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}
.c-badge {
  align-self: flex-start;
  margin-bottom: 1.25rem;
  padding: .35rem .8rem;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.c-price { color: var(--color-accent); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.c-price small { display: block; color: var(--color-muted); font-size: .9rem; font-weight: 500; }
#services .c-card ul, #plans .c-card ul { padding-left: 1.2rem; margin-bottom: 2rem; }

#faq .accordion, #services-faq .accordion { max-width: 62rem; }

#contacts { background: var(--color-text); color: var(--color-bg); }
#contacts .l-container { max-width: 58rem; }
#contacts .l-section__eyebrow, #contacts a { color: var(--color-on-accent); }
#contacts .c-form, #contact-form .c-form {
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-block: 2rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}
#contacts iframe, #map iframe { display: block; border-radius: var(--radius); }

/* внутренние страницы */
#history .l-grid, #delivery .l-grid { align-items: center; }
#approach .l-grid, #principles .l-grid, #team .l-grid, #contact-details .l-grid { margin-top: 2.25rem; }
#team .c-card { padding: 1.25rem; }
#team .c-card img { margin-bottom: 1.5rem; }
#process .l-container { max-width: 56rem; }
#comparison .table-responsive { margin-top: 2.5rem; }
#delivery img { min-height: 24rem; }
#services-faq .c-btn { margin-top: 2rem; }
#map iframe { margin-top: 2rem; }
#contact-form .l-container { max-width: 58rem; }

/* 576: свободнее компоненты, но ещё одна колонка */
@media (min-width: 576px) {
  .l-container { padding-inline: 1.5rem; }
  #topic-01 .l-grid, #topic-02 .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #contacts .c-form, #contact-form .c-form { padding: 2.5rem; }
}

/* 768: двухколоночные сюжеты и галереи */
@media (min-width: 768px) {
  .l-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  #about .l-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  #topic-08 figure:nth-child(2) { transform: translateY(2rem); }
  #topic-12 .l-grid--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #topic-12 .c-card--featured { grid-row: span 2; }
  #topic-16 .l-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 992: полный десктопный ритм */
@media (min-width: 992px) {
  .l-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #topic-12 .l-grid--bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(11rem, auto); }
  #topic-12 .c-card--featured { grid-column: span 2; grid-row: span 2; }
  #services .c-card--recommended, #plans .c-card--recommended { transform: translateY(-1rem); }
}

@media (max-width: 575px) {
  #topic-07 .c-card:nth-child(2), #topic-08 figure:nth-child(2) { transform: none; }
  #topic-09 .nav-tabs { flex-direction: column; }
  #topic-09 .nav-item, #topic-09 .nav-link { width: 100%; }
  .c-numbered li { grid-template-columns: 2.75rem minmax(0, 1fr); }
  #contacts .c-btn, #contact-form .c-btn { width: 100%; }
}
