/* ============================================================
   ТОКЕНЫ
   ============================================================ */

:root {
  --c-heading:        #2944DB;
  --c-text:           #3D3F50;
  --c-white:          #FFFFFF;

  --c-tint:           #A0D2F8;
  --c-bg-soft:        rgba(160, 210, 248, 0.2);
  --c-bg-footer:      rgba(160, 210, 248, 0.4);

  /* TODO: точный hex подложки под фото — снят пипеткой */
  --c-media-bg:       #A9D6F5;

  --c-btn-bg:         #ECF6FE;
  --c-btn-text:       var(--c-text);
  --c-btn-bg-hover:   var(--c-white);
  --c-btn-text-hover: var(--c-heading);

  --shadow-btn:   0 8px 24px rgba(41, 68, 219, 0.16);
  --shadow-photo: 0 16px 32px rgba(61, 63, 80, 0.18);
  --shadow-menu:  0 12px 32px rgba(61, 63, 80, 0.12);

  --font-base: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;

  /* TODO: размеры сняты с макета на глаз — заменить значениями из Dev Mode */
  --fs-h1:      48px;
  --fs-h2:      34px;
  --fs-h3:      28px;
  --fs-h4:      16px;
  --fs-body:    18px;
  --fs-body-sm: 15px;
  --fs-caption: 13px;

  --lh-heading: 1.25;
  --lh-body:    1.6;

  --container:   1245px;
  --gutter:      24px;
  --section-gap: 104px;
  --header-height: 74px;

  --r-card:  16px;
  --r-media: 12px;
  --r-btn:   8px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  0.3s;
  --dur-slide: 0.5s;   /* смена слайда */
}

@media (max-width: 1024px) {
  :root { --fs-h1: 36px; --fs-h2: 28px; --section-gap: 72px; }
}

@media (max-width: 640px) {
  :root { --fs-h1: 28px; --fs-h2: 24px; --fs-body: 16px; --section-gap: 56px; --gutter: 16px; }
}

/* ============================================================
   СБРОС
   ============================================================ */

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

html { scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-base);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

/* Атрибуты width/height резервируют место под картинку,
   но без height:auto перебивают ширину, заданную в CSS */
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--c-heading); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  margin: 0;
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--c-heading);
}

.h1, h1 { font-size: var(--fs-h1); }
.h2, h2 { font-size: var(--fs-h2); }
.h3, h3 { font-size: var(--fs-h3); }
.h4, h4 { font-size: var(--fs-h4); }

.h2--upper { text-transform: uppercase; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.body-bold { font-weight: 700; }
.body-sm   { font-size: var(--fs-body-sm); }
.caption   { font-size: var(--fs-caption); }

/* Подпись под круглой карточкой */
.card-label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

/* ============================================================
   РАСКЛАДКА
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: calc(var(--section-gap) / 2); }

.grid { display: grid; gap: var(--gutter); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .product-card { margin-bottom: 32px; }
}

/* Заголовок секции + ссылка справа */
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section__head h2,
.about__title,
.intro__title,
.hero__title{
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: var(--r-btn);
  font-size: var(--fs-body-sm);
  font-weight: 400;
  background: var(--c-btn-bg);
  color: var(--c-btn-text);
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn:hover, .btn:focus-visible {
  background: var(--c-btn-bg-hover);
  color: var(--c-btn-text-hover);
  box-shadow: var(--shadow-btn);
}

/* Ссылка со стрелкой: фона нет, появляется при наведении */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--r-btn);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  background: transparent;
  color: var(--c-text);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn-arrow__icon {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;   /* стрелка красится вместе с текстом */
  stroke-width: 1.6;
  transition: transform var(--dur) var(--ease);
}

.btn-arrow:hover, .btn-arrow:focus-visible {
  background: var(--c-btn-bg);
  color: var(--c-heading);
}
.btn-arrow:hover .btn-arrow__icon { transform: translateX(4px); }

/* Круглая стрелка слайдера рецептов */
.round-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-btn-bg);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.round-arrow[disabled] { cursor: default; }
.round-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--c-text); stroke-width: 1.6; transition: stroke var(--dur) var(--ease); }
.round-arrow:hover { background: var(--c-white); box-shadow: var(--shadow-btn); }
.round-arrow:hover svg { stroke: var(--c-heading); }

/* ============================================================
   СОЦСЕТИ
   ============================================================ */

.socials { display: flex; gap: 8px; }

.social {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--c-btn-bg);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.social img { width: 18px; height: 18px; }
.social:hover { background: var(--c-white); box-shadow: var(--shadow-btn); }

/* ============================================================
   ШАПКА
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 100%;
  height: var(--header-height);
  background: var(--c-btn-bg);
  padding-block: 12px;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
}

.header__brands { display: flex; align-items: center; gap: 20px; }
.header__logo img { width: 130px; height: auto; }

.header__marks { display: flex; align-items: center; gap: 14px; }
.header__marks img { height: 32px; width: auto; }

.header__nav { margin-left: auto; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--c-heading); }

/* ---- меню ---- */

.menu { display: flex; gap: 4px; }
.menu__item { position: relative; }

.menu__link {
  display: block;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  font-size: var(--fs-body-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  font-weight: 700;
}

.menu__item:hover > .menu__link,
.menu__link:focus-visible {
  background: var(--c-white);
  color: var(--c-heading);
}

.menu__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 12px;
  border-radius: var(--r-media);
  background: var(--c-white);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur);
  z-index: 30;
}

.menu__item:hover > .menu__sub,
.menu__item:focus-within > .menu__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.menu__sub-link {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: var(--fs-body-sm);
  transition: color var(--dur) var(--ease);
}
.menu__sub-link:hover { color: var(--c-heading); }

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================================ */

@media (max-width: 1100px) {
  :root { --header-height: 64px; }

  .header__inner { gap: 12px; }
  .header__brands { gap: 12px; min-width: 0; }
  .header__logo img { width: 104px; }
  .header__marks { gap: 8px; }
  .header__marks img { height: 26px; }
  .burger { display: flex; margin-left: auto; }

  /* Панель выезжает справа */
  .header__nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    padding: 88px 24px 32px;
    background: var(--c-white);
    box-shadow: var(--shadow-menu);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 50;
  }

  .header__nav.is-open { transform: translateX(0); }

  .menu { flex-direction: column; gap: 2px; }
  .menu__link { padding: 14px 12px; font-size: var(--fs-body); }

  /* Соцсети переезжают в панель — их переносит script.js */
  .header__nav .socials {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(61, 63, 80, 0.15);
    gap: 12px;
  }
  .header__nav .social { width: 44px; height: 44px; border-radius: 8px; }
  .header__nav .social img { width: 22px; height: 22px; }

  /* Второй уровень раскрывается вниз, а не всплывает */
  .menu__sub {
    position: static;
    min-width: 0;
    padding: 0 0 8px 12px;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .menu__item.is-expanded .menu__sub { display: block; }
  .menu__item:hover > .menu__link { background: var(--c-btn-bg); }

  /* Затемнение под панелью */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 63, 80, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
    z-index: 40;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }

  .burger { position: relative; z-index: 60; }
  .burger span { transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body.nav-open { overflow: hidden; }
}

/* ============================================================
   СЛАЙДЕР
   ============================================================ */

.hero {
  position: relative;
  padding-block: 32px 56px;
  /* cover, а не 100% auto: высота подложки не должна зависеть от ширины окна */
  background: url('images/header-bg.png') no-repeat center top / cover;
}

/* Фон-гравюра растворяется книзу */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--c-white));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

/* Картинки слайдов стопкой. aspect-ratio держит высоту, пока они absolute */
.hero__media {
  position: relative;
  aspect-ratio: 1306 / 1012;
  overflow: hidden;
}

/* Тексты слайдов в одной ячейке грида: высота по самому длинному */
.hero__text { display: grid; overflow: hidden; }

.hero__slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__slide { grid-area: 1 / 1; }

/* Смена слайда: текущий уходит влево, новый приходит справа */
.hero__slide,
.hero__slide-media {
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px);
  transition: opacity var(--dur-slide) var(--ease),
              transform var(--dur-slide) var(--ease),
              visibility var(--dur-slide);
}

.hero__slide.is-active,
.hero__slide-media.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero__slide.is-leaving,
.hero__slide-media.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateX(-48px);
}

.hero__title { margin-bottom: 32px; }

.hero__controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 16px;
}

.hero__arrow { display: grid; place-items: center; width: 28px; height: 28px; }
.hero__arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--c-text); stroke-width: 1.4; transition: stroke var(--dur) var(--ease); }
.hero__arrow:hover svg { stroke: var(--c-heading); }

.hero__dots { display: flex; gap: 8px; }

/* padding: 0 и flex: none обязательны — у button есть дефолтный padding,
   а min-width: auto во флексе не даёт ужаться ниже min-content */
.hero__dot {
  flex: 0 0 auto;
  padding: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-tint);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__dot[aria-current='true'] { background: var(--c-heading); transform: scale(1.25); }

@media (max-width: 900px) {
  .hero { background-size: cover; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }

  /* width: 100% обязателен: с margin-inline: auto грид-элемент перестаёт
     растягиваться, а слайды внутри абсолютные — ширина схлопнулась бы в ноль */
  .hero__media { width: 100%; max-width: 480px; margin-inline: auto; }

  .hero__controls { grid-column: 1; justify-content: center; }
}

/* ============================================================
   ВВОДНЫЙ БЛОК НАД ПРОДУКЦИЕЙ
   ============================================================ */

.intro { text-align: center; margin-bottom: 72px; }
.intro__title { margin-bottom: 20px; }
.intro__lead {
  margin-bottom: 32px;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.5;
}

/* ============================================================
   КАРТОЧКА ПРОДУКЦИИ
   ============================================================ */

.product-card { display: block; }

/* Круглая подложка. При наведении форма НЕ меняется —
   внутри круга снизу всплывает белая волна. */
.product-card__media {
  position: relative;
  display: block;        /* span — инлайновый, без этого aspect-ratio не работает */
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-media-bg);
}

.product-card__bg {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Волна выезжает снизу, остаётся под фотографией.
   Шире круга и отцентрована: концы контура уходят под overflow: hidden. */
.product-card__wave {
  position: absolute;
  left: -20%; bottom: 0;
  z-index: 2;
  width: 140%;
  height: 20%;
  background: url('images/wave.svg') no-repeat bottom center / 100% 100%;
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease);
  pointer-events: none;
}

.product-card:not(.product-card--info):hover .product-card__wave,
.product-card:not(.product-card--info):focus-visible .product-card__wave { transform: translateY(0); }

.product-card--info .product-card__wave { display: none; }

.product-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  transition: filter var(--dur) var(--ease);
}

.product-card:hover .product-card__media {
  /*filter: drop-shadow(0 14px 20px rgba(61, 63, 80, 0.28));*/
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.5);
  transition: 0.5s ease all;
}

.product-card:hover .card-label,
.product-card:focus-visible .card-label {
  color: var(--c-heading);
  font-weight: 700;
}

/* ============================================================
   О КОМПАНИИ
   ============================================================ */

.about {
  background: var(--c-bg-soft);
  overflow: hidden;   /* облако не должно давать горизонтальный скролл */
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.about__title { margin-bottom: 28px; }
.about__text p { margin-bottom: 18px; }

.mission {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--r-card);
  background: var(--c-heading);
  color: var(--c-white);
}
.mission__title { margin-bottom: 8px; font-size: var(--fs-h4); font-weight: 700; }
.mission__text  { font-size: var(--fs-body-sm); line-height: 1.5; }

/* Кластер круглых фото */
.about__cluster {
  position: relative;
  aspect-ratio: 1 / 1;
}

.about__cloud {
  position: absolute;
  left: 0%;
  top: 6%;
  width: 100%;
  opacity: 1.45;
  pointer-events: none;
  animation: drift 4s var(--ease) infinite;
}

.about__circle {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-media-bg);
  animation: float 7s var(--ease) infinite;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.about__circle img { width: 100%; height: 100%; object-fit: cover; }

.about__circle--top    { top: 0;    right: 0;   width: 62%; aspect-ratio: 1 / 1; animation-delay: -0.8s; }
.about__circle--left   { left: 2%;  top: 34%;   width: 44%; aspect-ratio: 1 / 1; z-index: 2; animation-delay: -3.2s; }
.about__circle--bottom { right: 6%; bottom: 0;  width: 56%; aspect-ratio: 1 / 1; animation-delay: -5.1s; }

/* При наведении круг приподнимается и получает тень */
.about__cluster:hover .about__circle { animation-play-state: paused; }
.about__circle:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-photo);
  z-index: 3;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(10px, -8px); }
}

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__cluster { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ============================================================
   НОВОСТИ
   ============================================================ */

.news-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  background: var(--c-media-bg);
  overflow: hidden;
  transition: background-color var(--dur) var(--ease);
}
.news-card > a { display: flex; flex-direction: column; height: 100%; }

.news-card__media {
  position: relative;
  aspect-ratio: 1 / 1;   /* фото кадрируются до квадрата */
  background: var(--c-white);
  transition: box-shadow var(--dur) var(--ease);
}

/* Абсолютное позиционирование обязательно: картинка в потоке
   задаёт высоту сама и перебивает aspect-ratio родителя */
.news-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card:hover .news-card__media,
.news-card:focus-within .news-card__media { box-shadow: var(--shadow-photo); }

.news-card__body { padding: 16px 18px 22px; }

.news-card__date {
  font-size: var(--fs-caption);
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

.news-card__title {
  margin-top: 10px;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
  transition: color var(--dur) var(--ease);
}

.news-card:hover, .news-card:focus-within { background: var(--c-heading); }

.news-card:hover .news-card__date,
.news-card:hover .news-card__title,
.news-card:focus-within .news-card__date,
.news-card:focus-within .news-card__title { color: var(--c-white); }

/* ============================================================
   РЕЦЕПТЫ
   ============================================================ */

.recipes {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 20px;
}

/* Стрелки центруются по фото, а не по фото вместе с подписью */
.recipes .round-arrow { transform: translateY(-34px); }

.recipes__track {
  display: flex;
  gap: var(--gutter);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;   /* полосу прокрутки прячем, листаем стрелками */

  /* запас, иначе overflow-x обрезает приподнятое фото по вертикали */
  padding-block: 12px;
}
.recipes__track::-webkit-scrollbar { display: none; }

/* Три карточки в кадре, остальные уезжают вправо */
.recipe-card {
  flex: 0 0 calc((100% - var(--gutter) * 2) / 3);
  scroll-snap-align: start;
}

/* В макете круг занимает 270px при колонке 350px */
.recipe-card__photo {
  width: 77%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 24px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.recipe-card:hover .recipe-card__photo,
.recipe-card:focus-visible .recipe-card__photo {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-photo);
}

.recipe-card:hover .card-label,
.recipe-card:focus-visible .card-label {
  color: var(--c-heading);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .recipe-card { flex: 0 0 calc((100% - var(--gutter)) / 2); }
}
@media (max-width: 640px) {
  .recipes { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 12px; }
  .round-arrow { width: 40px; height: 40px; }
  .recipes .round-arrow { transform: none; }
  .recipe-card { flex: 0 0 100%; margin-bottom: 32px; }
  .recipe-card__photo { width: 88%; }
}

/* ============================================================
   ФУТЕР
   ============================================================ */

.footer {
  padding-block: 32px 28px;
  background: var(--c-bg-footer);
}

.footer__top {
  display: flex;
  align-items: center;
  gap: 40px;
}
.footer__logo img { width: 130px; height: auto; }

.footer__menu { display: flex; gap: 36px; margin-left: auto; }
.footer__menu a {
  font-size: var(--fs-body-sm);
  transition: color var(--dur) var(--ease);
}
.footer__menu a:hover { color: var(--c-heading); }

.footer__top .socials { margin-left: auto; }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(61, 63, 80, 0.15);
  font-size: var(--fs-caption);
}

.footer__legal a { transition: color var(--dur) var(--ease); }
.footer__legal a:hover { color: var(--c-heading); }
.footer__legal li + li { margin-top: 4px; }

.footer__dev { text-align: right; }

@media (max-width: 900px) {
  .footer__top { flex-wrap: wrap; gap: 24px; }
  .footer__menu { flex-wrap: wrap; gap: 20px; margin-left: 0; width: 100%; order: 3; }
  .footer__top .socials { margin-left: auto; }
  .footer__bottom { grid-template-columns: 1fr; }
  .footer__dev { text-align: left; }
}
