/* ==========================================================================
   Табунка — лендинг. Базовые настройки, шрифты, переменные
   ========================================================================== */

@font-face {
  font-family: 'Vera Humana 95';
  src: url('fonts/verahumana95.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans Pro';
  src: url('fonts/sourcesanspro-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --container: 1169px;      /* ширина контейнера в макете (1512 x 1169) */
  --container-max: 1484px;  /* потолок: пропорция макета, доведённая до экрана 1920 */

  /* Единица макета: 1 px из Figma. Растёт вместе с экраном и упирается в потолок 1920 */
  --px: min(0.06614vw, 1.2698px);
  --font-display: 'Vera Humana 95', 'Times New Roman', serif;
  --font-text: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;

  --color-bg: #f3eeea;
  --color-text: #382d2d;
  --color-white: #fff;
  --color-line: #fcfcfc;
  --color-header: rgba(51, 49, 49, 0.7);
  --color-stroke: #d9d9d9;

  --header-height: 80px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

main { position: relative; }

a { color: inherit; text-decoration: none; }

p { margin: 0; }

button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: min(77.315%, var(--container-max));
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.metrika-noscript img {
  position: absolute;
  left: -9999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: var(--header-height);
  background: var(--color-header);
  backdrop-filter: blur(5.2px);
  -webkit-backdrop-filter: blur(5.2px);
  transition: height var(--transition), background var(--transition);
}

/* Сжатое состояние при прокрутке */
.header.is-compact {
  height: 58px;
  background: rgba(51, 49, 49, 0.86);
}

.header.is-compact .header__logo {
  top: 8px;
  width: 190px;
}

.header.is-compact .header__contacts { font-size: 16px; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 253px;
  transition: opacity var(--transition), width var(--transition), top var(--transition);
}

.header__logo:hover { opacity: 0.75; }

.header__contacts {
  margin-left: auto;
  text-align: right;
  color: var(--color-white);
  transition: font-size var(--transition);
}

.header__contact {
  display: block;
  transition: opacity var(--transition);
}

.header__contact:hover { opacity: 0.7; }

/* Бургер */

.burger {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 34px;
  margin-top: -1px;
}

.burger__line {
  width: 34px;
  height: 4px;
  background: var(--color-stroke);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.burger:hover .burger__line { background: var(--color-white); }

.burger.is-active .burger__line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.is-active .burger__line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }


/* ==========================================================================
   Меню
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
}

.menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 28, 0.55);
}

.menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: var(--color-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(-24px);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.menu.is-open .menu__panel { transform: translateY(0); }

.menu__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  width: var(--container);
  color: var(--color-white);
}

.menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu__label {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.menu__phone {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  transition: opacity var(--transition);
}

.menu__mail {
  font-size: 20px;
  transition: opacity var(--transition);
}

.menu__phone:hover,
.menu__mail:hover { opacity: 0.7; }

.menu__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 24px;
  white-space: nowrap;
  border: 2px solid var(--color-stroke);
  color: var(--color-white);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-text);
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

.hero {
  position: relative;
  height: calc(869 * var(--px));
  overflow: hidden;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center 60%;
  will-change: transform;
}

.hero__wave {
  position: absolute;
  top: 10.7%;
  left: -29.08%;
  z-index: 2;
  width: 121.73%;
  max-width: none;
  height: auto;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
}

.hero__text {
  position: absolute;
  top: calc(471 * var(--px));
  left: 0;
  width: 100%;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5.225vw, 79px);
  line-height: 0.99;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__title-line { display: block; }
.hero__title-line--indent { padding-left: 2.329em; }

.hero__lead {
  width: 41.4%;
  margin: calc(14.6 * var(--px)) 0 0 50.81%;
}

.play {
  position: absolute;
  bottom: calc(55 * var(--px));
  left: 50%;
  z-index: 4;
  width: calc(80 * var(--px));
  height: calc(80 * var(--px));
  transform: translateX(-50%);
}

.play__circle {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  transition: transform var(--transition), opacity var(--transition);
}

/* Спокойная пульсация вокруг кнопки: тонкое кольцо медленно расходится и тает */
.play::before,
.play::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(217, 217, 217, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: play-pulse 4.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
}

.play::after { animation-delay: 2.25s; }

@keyframes play-pulse {
  0% { transform: scale(1); opacity: 0; }
  15% { opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .play::before,
  .play::after { animation: none; }
}

.play__triangle {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: calc(3 * var(--px));
  width: calc(38.1 * var(--px));
  height: calc(33 * var(--px));
  transform: translate(-50%, -50%) rotate(90deg);
}

.play:hover .play__circle { transform: scale(1.06); }

/* ==========================================================================
   О проекте
   ========================================================================== */

.about {
  position: relative;
  padding-top: calc(55 * var(--px));
  background: var(--color-bg);
}

.about__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.646vw, 40px);
  line-height: 0.99;
  color: var(--color-text);
}

.about__accent { text-transform: uppercase; }

/* ==========================================================================
   Блок «в 2 часах езды» — текст и фото
   ========================================================================== */

.intro {
  position: relative;
  z-index: 2;
  padding-top: calc(80 * var(--px));
}

.intro__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5%;
}

.intro__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 41.4%;
  flex: 0 0 auto;
  color: #000;
}

.intro__photo {
  width: 49.19%;
  height: auto;
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ==========================================================================
   Галерея
   ========================================================================== */

.gallery {
  position: relative;
  z-index: 2;
  padding-top: calc(103 * var(--px));
}

.gallery__inner {
  position: relative;
  min-height: calc(581 * var(--px));
}

.gallery__photo {
  position: absolute;
  object-fit: cover;
  will-change: transform;
}

.gallery__photo--wide {
  top: 0;
  left: 0;
  width: 49.1%;
  height: auto;
}

.gallery__photo--tall {
  top: calc(103 * var(--px));
  right: 0;
  width: 32.68%;
  height: auto;
}

/* ==========================================================================
   Финальный экран
   ========================================================================== */

.final {
  position: relative;
  z-index: 1;
  margin-top: calc(-318 * var(--px));
}

.final__media {
  position: relative;
  height: calc(1012 * var(--px));
  overflow: hidden;
}

/* Дальний слой — растянутое фото, проявляется градиентной маской */
.final__photo-back {
  position: absolute;
  top: 0;
  left: calc(-794 * var(--px));
  width: calc(3002.29 * var(--px));
  height: calc(1733 * var(--px));
  min-width: 100%;
  max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 1.67%, rgba(0, 0, 0, 0.342) 16.16%, rgba(0, 0, 0, 0.8) 28.85%, rgba(0, 0, 0, 0.8) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 1.67%, rgba(0, 0, 0, 0.342) 16.16%, rgba(0, 0, 0, 0.8) 28.85%, rgba(0, 0, 0, 0.8) 100%);
}

/* Передний слой — фото в натуральном размере с волнистой маской */
.final__photo-front {
  position: absolute;
  top: calc(200.5 * var(--px));
  left: calc(-113.35 * var(--px));
  /* Ширина макетная, но на широких экранах слой растягивается так,
     чтобы правый край всегда доходил до края экрана */
  width: max(calc(1651 * var(--px)), calc(100% + 113.35 * var(--px)));
  height: auto;
  max-width: none;
  /* Маска задана в процентах — тянется вместе со слоем */
  -webkit-mask: url('../img/icon/mask-mid.svg') 13.8% 105.5% / 101.304% 73.334% no-repeat;
  mask: url('../img/icon/mask-mid.svg') 13.8% 105.5% / 101.304% 73.334% no-repeat;
}

.final__gradient {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(334 * var(--px));
  background: linear-gradient(to top, #4e4a4d, rgba(180, 171, 178, 0));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.final__calligraphy {
  position: absolute;
  top: calc(620 * var(--px));
  left: 50%;
  z-index: 2;
  width: calc(681 * var(--px));
  height: auto;
  transform: translateX(calc(-50% + 5.5 * var(--px)));
}

/* ==========================================================================
   Футер
   ========================================================================== */

.footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  color: var(--color-white);
}

.footer__inner {
  position: relative;
  height: calc(235 * var(--px));
  font-size: calc(10 * var(--px));
  line-height: 1.3;
}

.footer__legal {
  position: absolute;
  top: calc(34 * var(--px));
  left: 0;
  width: 21.47%;
}

.footer__nav {
  position: absolute;
  top: calc(30 * var(--px));
  font-size: calc(14 * var(--px));
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.footer__nav:hover,
.footer__policy:hover,
.footer__mail:hover,
.footer__social:hover { opacity: 0.7; }

.footer__nav--about { left: 30.37%; }
.footer__nav--investors { left: 41.92%; }

.footer__note {
  position: absolute;
  top: calc(81 * var(--px));
  left: 30.37%;
  width: 40.03%;
}

.footer__policy {
  position: absolute;
  top: calc(146 * var(--px));
  left: 0;
  transition: opacity var(--transition);
}

.footer__social {
  position: absolute;
  top: calc(32 * var(--px));
  left: 92.13%;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--px));
  font-size: calc(14 * var(--px));
  transition: opacity var(--transition);
}

.footer__mail {
  position: absolute;
  top: calc(146 * var(--px));
  left: 80.67%;
  font-size: calc(14 * var(--px));
  transition: opacity var(--transition);
}

.footer__phone {
  position: absolute;
  top: calc(145 * var(--px));
  left: 91.87%;
  font-size: calc(14 * var(--px));
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.footer__phone:hover { opacity: 0.7; }

/* ==========================================================================
   Декор — дуга и вертикальные линии
   ========================================================================== */

.deco {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.deco__arc {
  position: absolute;
  top: calc(1351 * var(--px));
  left: calc(-1204 * var(--px));
  width: calc(2801 * var(--px));
  max-width: none;
  height: calc(485 * var(--px));
}

/* Вертикальные линии — координаты от контейнера, поэтому не отрываются от фотографий */
.line {
  position: absolute;
  z-index: 3;
  width: 2px;
  background: var(--color-line);
  pointer-events: none;
}

.line--center { top: calc(25 * var(--px)); left: 50.73%; height: calc(1163 * var(--px)); }
.line--left { top: calc(387 * var(--px)); left: 0; height: calc(973 * var(--px)); }
.line--right { top: calc(455 * var(--px)); left: 67.24%; height: calc(753 * var(--px)); }

/* ==========================================================================
   Модальное окно с видео
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 19, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__window {
  position: relative;
  width: min(1100px, calc(100vw - 80px));
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.modal.is-open .modal__window { transform: translateY(0) scale(1); }

.modal__body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b1a1a;
}

.modal__body video,
.modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.modal__placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
}

.modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 32px;
  height: 32px;
  transition: transform var(--transition), opacity var(--transition);
}

.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-stroke);
}

.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal__close:hover { opacity: 0.7; transform: rotate(90deg); }

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1511px) {
  .container { max-width: calc(100% - 80px); }

  .hero { height: clamp(560px, 57.5vw, 869px); }

  .header__contact,
  .hero__lead,
  .intro__text,
  .menu__mail { font-size: clamp(15px, 1.323vw, 20px); }

  .final__media { height: clamp(620px, 66.9vw, 1012px); }
}

@media (max-width: 1279px) {
  .intro { padding-top: 60px; }
  .intro__photo { height: auto; align-self: flex-start; }

  .gallery { padding-top: 80px; }
  .gallery__inner { min-height: 0; }

  .gallery__photo { position: static; }

  .gallery__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5%;
  }

  .gallery__photo--wide { width: 49.1%; height: auto; margin-top: 0; }
  .gallery__photo--tall { width: 32.68%; height: auto; margin-top: 103px; }

  .deco { display: none; }

  .final__calligraphy { top: 52%; }

  /* Футер уходит из абсолютной раскладки в поток на тёмной подложке */
  .footer {
    position: static;
    padding: 40px 0 32px;
    background: #35302e;
  }

  .footer__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 40px;
    height: auto;
  }

  .footer__legal,
  .footer__nav,
  .footer__note,
  .footer__policy,
  .footer__social,
  .footer__mail,
  .footer__phone {
    position: static;
    top: auto;
    left: auto;
    width: auto;
  }

  .footer__nav--about { grid-column: 1; }
  .footer__nav--investors { grid-column: 2; }
  .footer__note { grid-column: 1 / -1; }
  .footer__social { justify-content: flex-start; }
  .footer__phone { justify-self: start; }

  .menu__phone { font-size: 44px; }
}

@media (max-width: 1023px) {
  /* Ниже планшета макетная единица не масштабируется: размеры берём как есть,
     иначе на телефоне всё схлопывается в четверть */
  :root { --px: 1px; }

  .container {
    width: 100%;
    max-width: calc(100% - 48px);
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 20px;
    padding-bottom: 150px;
  }

  .hero__text {
    position: static;
    width: 100%;
    max-width: 560px;
  }

  .hero__lead { margin: 20px 0 0; width: 100%; }

  .play { top: auto; bottom: 48px; }

  .intro__inner { flex-direction: column; gap: 32px; }
  .intro__text { width: 100%; max-width: 520px; }
  .intro__photo { width: 100%; }

  .gallery__inner { flex-direction: column; gap: 40px; }
  .gallery__photo--wide,
  .gallery__photo--tall { width: 100%; margin-top: 0; }
  .gallery__photo--tall { max-width: 520px; align-self: flex-end; }

  .final { margin-top: -140px; }
  .final__calligraphy { top: 46%; width: 62%; }

  .footer { padding: 36px 0 28px; }
}

@media (max-width: 767px) {
  .container {
    width: 100%;
    max-width: calc(100% - 32px);
  }

  /* Декоративные линии на телефоне не нужны */
  .line { display: none; }

  .header { height: 64px; }
  .header.is-compact { height: 52px; }
  .header__logo { width: 180px; top: 10px; }
  .header.is-compact .header__logo { width: 150px; top: 8px; }
  .header__contacts { display: none; }

  .burger { gap: 5px; }
  .burger__line { width: 28px; height: 3px; }
  .burger.is-active .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger.is-active .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero {
    height: 60vh;
    min-height: 480px;
    max-height: 720px;
  }
  /* На телефоне первый экран выравниваем по центру */
  .hero__text { text-align: center; }
  .hero__title { white-space: normal; }
  .hero__title-line--indent { padding-left: 0; }
  .hero__lead { width: 100%; margin-left: 0; }
  .play { width: 64px; height: 64px; }
  .play__circle { width: 64px; height: 64px; }
  .play__triangle { width: 30px; height: 26px; }

  .about { padding-top: 40px; }
  .intro { padding-top: 40px; }

  /* Три фотографии идут лесенкой, со смещением к разным краям */
  .intro__inner { gap: 15px; }
  .gallery { padding-top: 15px; }
  .gallery__inner { gap: 15px; }

  .intro__photo {
    width: 88%;
    align-self: flex-end;
  }

  .gallery__photo--wide {
    width: 80%;
    align-self: flex-start;
  }

  .gallery__photo--tall {
    width: 62%;
    max-width: none;
    align-self: flex-end;
  }

  /* Бухта заходит под фото с лежаком — так же, как на десктопе */
  .final { margin-top: -90px; }

  .final__media {
    height: 52vh;
    min-height: 340px;
    max-height: 520px;
  }
  .final__calligraphy {
    top: 50%;
    left: 50%;
    width: 78%;
    transform: translate(-50%, calc(-50% + 35px));
  }
  .final__photo-front {
    position: absolute;
    top: 0;
    left: 50%;
    width: 132%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    transform: translateX(-50%);
    /* Верхний край растворяется в фоне — как плавный вход на десктопе */
    -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.12) 12%, rgba(0, 0, 0, 0.42) 26%, rgba(0, 0, 0, 0.78) 40%, #000 56%) no-repeat;
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.12) 12%, rgba(0, 0, 0, 0.42) 26%, rgba(0, 0, 0, 0.78) 40%, #000 56%) no-repeat;
  }

  .final__photo-back { display: none; }

  /* Футер на телефоне: одна колонка, крупнее текст, ссылки и контакты сверху */
  .footer { padding: 32px 0 28px; }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    font-size: 12px;
    line-height: 1.45;
  }

  .footer__nav--about,
  .footer__nav--investors { grid-column: auto; }

  .footer__nav {
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .footer__social { gap: 12px; font-size: 16px; }
  .footer__social img { width: 28px; height: 28px; }

  .footer__mail,
  .footer__phone { font-size: 16px; }

  .footer__legal { order: 6; opacity: 0.75; }
  .footer__note { order: 7; opacity: 0.75; }
  .footer__policy { order: 8; font-size: 12px; opacity: 0.75; }

  .menu__inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .menu__phone { font-size: 34px; }
  .menu__actions { width: 100%; }

  .modal__window { width: calc(100vw - 32px); }
  .modal__close { top: -40px; }
}

@media (max-width: 479px) {
  .hero__title { font-size: 30px; }
  .hero__lead { font-size: 14px; }
  .about__text { font-size: 22px; }
  .final__calligraphy { width: 86%; }
  .btn { min-height: 56px; font-size: 15px; padding: 16px 12px; }
}
