/* Общие стили сайта Luna Studio: шрифты, сброс, раскладка блоков, компоненты. */

/* ---------- шрифты (лежат у нас, без Google Fonts) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- сброс ---------- */
:root {
  --font: 'Manrope', Arial, sans-serif;
  --pink: #d88fb5;
  --pink-hover: #d07da5;
}
*, *::before, *::after {
  box-sizing: content-box;
}
:where(div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, img, b, u, i, center, table, tr, th, td, video) {
  margin: 0;
  padding: 0;
  border: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.page {
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  .page {
    overflow-x: clip;
  }
}
body.is-locked {
  overflow: hidden;
}
a {
  color: #ff8562;
  text-decoration: none;
  outline: none;
}
a[href^="tel"] {
  color: inherit;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #2015ff;
  outline-offset: 4px;
}
ul {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}
ol {
  padding-left: 22px;
  margin-top: 0;
  margin-bottom: 10px;
}
b, strong {
  font-weight: 700;
}
em, i {
  font-family: 'Playfair Display', serif !important;
  font-style: italic !important;
}
button {
  font-family: inherit;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- появление текста с размытием ---------- */
.blur-animate {
  opacity: 0;
  filter: blur(20px);
  transform: translateY(40px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}
.blur-animate.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.blur-animate span {
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .blur-animate {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ---------- раскладка блоков (секция -> холст -> группы -> элементы) ----------
   Базовые правила обёрнуты в :where(), чтобы у них был нулевой вес и любые
   правила конкретного блока из index.css их перебивали (как было в Тильде). */
.z {
  -webkit-text-size-adjust: 100%;
}
:where(.z__ab) {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
/* холст «по высоте содержимого» */
.z__ab--hug {
  height: auto !important;
}
.z__ab--hug > .z__bg,
.z__ab--hug > .z__ov {
  height: 100% !important;
}
:where(.z__bg) {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
}
:where(.z__ov) {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
}
:where(.el) {
  position: absolute;
  box-sizing: border-box;
  display: table;
}
:where(.el, .g) {
  z-index: 3;
}
:where(.el__a) {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
  background-position: center center;
  border-width: var(--z-borderwidth, 0);
  border-style: var(--z-borderstyle, solid);
  border-color: var(--z-bordercolor, transparent);
  --z-shadow-text-opacity: 100%;
  text-shadow: var(--z-shadow-text-x, 0px) var(--z-shadow-text-y, 0px) var(--z-shadow-text-blur, 0px) rgba(var(--z-shadow-text-color), var(--z-shadow-text-opacity, 100%));
  transition: background-color var(--z-speedhover, 0s) ease-in-out, color var(--z-speedhover, 0s) ease-in-out, border-color var(--z-speedhover, 0s) ease-in-out, box-shadow var(--z-shadowshoverspeed, 0.2s) ease-in-out;
}
/* внутренняя обёртка группы (раскладка flex задаётся в стилях блока) */
:where(.g__in) {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  box-sizing: border-box;
  border-style: solid;
  border-color: transparent;
  transition: background-color var(--z-speedhover, 0s) ease-in-out, color var(--z-speedhover, 0s) ease-in-out, border-color var(--z-speedhover, 0s) ease-in-out, box-shadow var(--z-shadowshoverspeed, 0.2s) ease-in-out;
}
:where(.el__a) :where(ul, ol) {
  margin-bottom: 0;
}
:where(a.el__a) {
  text-decoration: none;
}
:where(.el__img) {
  width: 100%;
  height: auto;
  display: block;
}
:where(.el__html) {
  vertical-align: top;
}
:where(.is-flow),
:where(.z__ab--flex) > :where(.el, .g):not(.is-abs) {
  position: relative !important;
  left: initial !important;
  top: initial !important;
  height: fit-content;
  flex-shrink: 0;
}

/* кнопки-ссылки внутри блоков */
:where(.el--button) {
  display: block;
}
:where(.el--button .el__a) {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
:where(.el--button .el__a)::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}
:where(.el__btn-content) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
}
:where(.el__btn-text) {
  flex: 1 1 0;
  text-overflow: ellipsis;
}
:where(.el__btn-icon) {
  flex: 0 0 auto;
}
:where(.el__btn-icon)::before,
:where(.el__btn-icon)::after {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  content: '';
}
:where(.el__btn-icon)::before {
  background-image: var(--icon, none);
  transition: opacity 0.2s cubic-bezier(.25, 1, .5, 1), visibility 0.2s cubic-bezier(.25, 1, .5, 1);
}
:where(.el__btn-icon)::after {
  opacity: 0;
  visibility: hidden;
  background-image: var(--icon-hover, none);
  transition: opacity 0.2s cubic-bezier(.45, 0, .55, 1), visibility 0.2s cubic-bezier(.45, 0, .55, 1);
}
@media (hover: hover) {
  :where(.el__a:hover .el__btn-icon:not(.el__btn-icon-no-hover))::after {
    opacity: 1;
    visibility: visible;
  }
  :where(.el__a:hover .el__btn-icon:not(.el__btn-icon-no-hover))::before {
    opacity: 0;
    visibility: hidden;
  }
}
:where(.el__btn-icon-arrow-default)::before {
  -webkit-mask: var(--icon, none) center / contain no-repeat;
  mask: var(--icon, none) center / contain no-repeat;
  background-color: currentColor;
  background-image: none;
}
:where(.el__btn-icon-arrow-hover)::after {
  -webkit-mask: var(--icon-hover, none) center / contain no-repeat;
  mask: var(--icon-hover, none) center / contain no-repeat;
  background-color: currentColor;
  background-image: none;
}
:where(.el__btn-border) {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  transition-duration: inherit;
  transition-timing-function: inherit;
  pointer-events: none;
}

/* ---------- особые секции ---------- */
/* шапка, которая выезжает сверху после прокрутки */
.s-header-fixed {
  height: 0;
}
.s-header-fixed .z__ab {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  pointer-events: none;
}
.s-header-fixed .z__ab > * {
  pointer-events: auto;
}
.s-header-fixed.is-visible .z__ab {
  transform: none;
}
/* пока шапка спрятана, её не видно, даже если её стили ещё грузятся */
.s-header-fixed:not(.is-visible) .z__ab {
  visibility: hidden;
  transition: transform 0.3s ease-in-out, visibility 0s 0.3s;
}
/* фон всей страницы: переливающийся градиент */
.s-bg {
  height: 0;
}
.s-bg .z__ab {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  height: 100vh !important;
  pointer-events: none;
}
/* стикеры поверх первого экрана */
.s-hero-stickers {
  position: relative;
  height: 0;
  z-index: 10;
}
.s-hero-stickers .z__ab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
}
.s-hero-stickers .el,
.s-hero-stickers .g {
  pointer-events: auto;
}
.is-passthrough,
.is-passthrough .z__ab {
  pointer-events: none;
}

/* ---------- видео ---------- */
.el__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.el__video-cover {
  position: relative;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  margin: 0 auto;
  padding: 0;
  width: 70px;
  height: 70px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.el__video-cover:hover .video-play {
  transform: translateY(-50%) scale(1.2);
}
.el__video-cover.is-playing .video-play {
  display: none;
}
.el__video-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ---------- формы ---------- */
.form {
  min-width: 0;
  --in-h: 60px;
  --in-fs: 16px;
  --in-fw: 400;
  --in-color: #000;
  --in-bg: #f6f6f6;
  --in-bw: 0px;
  --in-bc: #000;
  --in-r: 0px;
  --in-mb: 20px;
  --in-mr: 20px;
  --title-fs: 16px;
  --title-fw: 400;
  --title-color: #000;
  --title-mb: 5px;
  --els-fs: 14px;
  --els-fw: 400;
  --els-color: var(--in-color);
  --btn-w: 100%;
  --btn-h: 60px;
  --btn-color: #fff;
  --btn-bg: var(--pink);
  --btn-bg-hover: var(--btn-bg);
  --btn-r: 0px;
  --btn-fs: 14px;
  --btn-fw: 400;
  position: relative;
  margin: 0;
  font-family: var(--font);
}
.form__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.form--h .form__inner {
  flex-direction: row;
  align-items: flex-end;
}
.form__field {
  position: relative;
  margin-bottom: var(--in-mb);
}
.form--h .form__field {
  flex: 1 1 0;
  margin-bottom: 0;
  margin-right: var(--in-mr);
}
.form__input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: var(--in-h);
  margin: 0;
  padding: 0 20px;
  font-family: var(--font);
  font-size: var(--in-fs);
  font-weight: var(--in-fw);
  line-height: 1.33;
  color: var(--in-color);
  background-color: var(--in-bg);
  border: var(--in-bw) solid var(--in-bc);
  border-radius: var(--in-r);
  outline: none;
}
/* поля «только линия снизу» (настройка формы Тильды) */
.form--line .form__input {
  padding-left: 0;
  border-width: 0 0 var(--in-bw);
  background-color: transparent;
}
.form--line .form__select {
  background-position: right 0 center;
}
.form__input::placeholder {
  color: var(--in-color);
  opacity: 0.5;
}
.form__input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 0;
}
.form__field.is-error .form__input {
  box-shadow: inset 0 0 0 1px #e33;
}
.form__submit {
  flex: none;
}
.form--v .form__submit {
  width: 100%;
}
.form__btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--btn-w);
  height: var(--btn-h);
  margin: 0;
  padding: 0 15px;
  font-family: var(--font);
  font-size: var(--btn-fs);
  font-weight: var(--btn-fw);
  color: var(--btn-color);
  background-color: var(--btn-bg);
  border: var(--btn-bw, 0px) solid var(--btn-bc, transparent);
  border-radius: var(--btn-r);
  box-shadow: var(--btn-shadow, none);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.form--h .form__btn {
  /* в строку кнопка сжимается до ширины текста, как в табличной вёрстке Тильды */
  width: auto;
  max-width: none;
}
.form__btn:hover {
  background-color: var(--btn-bg-hover);
}
.form__btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.form.is-sending .form__btn {
  color: transparent;
  pointer-events: none;
}
.form.is-sending .form__btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: form-spin 0.6s linear infinite;
}
@keyframes form-spin {
  to { transform: rotate(1turn); }
}
.form__hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__msg {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #000;
}
.form__msg.is-error {
  color: #e33;
}
.form.is-done .form__inner {
  display: none;
}
.form.is-done .form__msg {
  margin-top: 0;
  padding: 20px;
  font-size: 16px;
  text-align: center;
  background: #fff;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .form__btn {
    white-space: normal;
  }
}

/* чекбокс согласия */
.form__field--cb {
  margin-bottom: var(--in-mb);
}
.form__cb {
  display: flex;
  align-items: flex-start;
  padding-top: 0.1em;
  font-size: var(--els-fs);
  font-weight: var(--els-fw);
  line-height: 1.2;
  color: var(--title-color);
  cursor: pointer;
}
.form__cb input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form__cb-box {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: -0.1em 10px 0 0;
  border: 2px solid #000;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.form__cb-box::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 3px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.form__cb input:checked + .form__cb-box {
  opacity: 1;
}
.form__cb input:checked + .form__cb-box::after {
  opacity: 1;
}
.form__cb input:focus-visible + .form__cb-box {
  outline: 2px solid #2015ff;
  outline-offset: 2px;
}
.form__field--cb.is-error .form__cb-box {
  border-color: #e33;
  opacity: 1;
}
/* две обязательные галочки (согласие и 18+) под кнопкой формы */
.form__consent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--in-mb);
}
.form > .form__consent {
  margin: 14px 0 0;
}
.form__consent .form__field--cb {
  margin: 0;
}
.form__cb-text a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* выпадающий список */
.form__select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
}
.form__select:invalid {
  color: color-mix(in srgb, var(--in-color) 50%, transparent);
}
.form__select option {
  color: #000;
}

/* калькулятор дохода */
.form__title {
  display: block;
  padding: 0 10px var(--title-mb) 0;
  font-size: var(--title-fs);
  font-weight: var(--title-fw);
  color: var(--title-color);
  height: auto;
}
.range {
  position: relative;
  padding-top: 36px;
  font-size: 0;
}
.range__input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.range__input::-webkit-slider-runnable-track {
  height: 2px;
  border: none;
  background: linear-gradient(to right, var(--pink) var(--fill, 0%), rgba(0, 0, 0, 0.1) var(--fill, 0%));
}
.range__input::-moz-range-track {
  height: 2px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
}
.range__input::-moz-range-progress {
  height: 2px;
  background: var(--pink);
}
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -9px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
}
.range__input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
}
.range__value {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 20px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  color: #000;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}
.range__limits {
  display: flex;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: #000;
}
.range__limits span {
  width: 50%;
}
.range__limits span + span {
  text-align: right;
}
@media (max-width: 1200px) {
  .range__value {
    font-size: 12px;
  }
}
@media (max-width: 960px) {
  .range__input::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
    margin-top: -12px;
  }
  .range__input::-moz-range-thumb {
    width: 26px;
    height: 26px;
  }
}
.form__field--calc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 120px;
  padding: 16px 32px;
  margin-bottom: var(--in-mb);
  color: #fff;
  background: #a0a968;
  border-radius: 4px;
}
.form__field--calc .form__title {
  padding-right: 10px;
  color: #fff;
}
.calc {
  font-size: var(--in-fs);
  font-weight: var(--in-fw);
  line-height: 1.35;
  color: #fff;
}

/* ---------- галерея (интерьер) ---------- */
/* галерея занимает ровно рамку элемента и не растягивает её картинками */
.el--gallery .gallery {
  position: absolute;
  inset: 0;
  height: auto;
}
.gallery {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.gallery__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.gallery__slide {
  flex: 0 0 100%;
  height: 100%;
}
.gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  padding: 0;
  color: #222;
  background: #e8e8e8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery__arrow:hover {
  opacity: 0.7;
}
.gallery__arrow--prev {
  left: 20px;
}
.gallery__arrow--prev svg {
  transform: rotate(180deg);
}
.gallery__arrow--next {
  right: 20px;
}

/* ---------- слайдер «истории успеха»: лента с горизонтальной прокруткой ---------- */
.s-stories .z__ab {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.s-stories .z__ab::-webkit-scrollbar {
  display: none;
}

/* ---------- вопросы-ответы ---------- */
.js-faq .accordion {
  cursor: pointer;
}
.js-faq .accordion-content {
  overflow: hidden;
  transition: height 0.3s ease;
}
.js-faq .accordion:not(.is-open) + .accordion-content {
  height: 0;
}
.js-faq .accordion-icon .el__a {
  transition: transform 0.3s ease;
}
.js-faq .accordion.is-open .accordion-icon .el__a {
  transform: rotate(180deg);
}
/* высота блока подстраивается под раскрытые ответы; снизу отступ как в оригинале */
.s-faq .z__ab {
  height: auto !important;
  padding-bottom: 121px !important;
}
@media (max-width: 1419px) {
  .s-faq .z__ab {
    padding-bottom: 205px !important;
  }
}
@media (max-width: 1199px) {
  .s-faq .z__ab {
    padding-bottom: 63px !important;
  }
}
@media (max-width: 959px) {
  .s-faq .z__ab {
    padding-bottom: 120px !important;
  }
}
@media (max-width: 479px) {
  .s-faq .z__ab {
    padding-bottom: 200px !important;
  }
}

/* ---------- боковое меню ---------- */
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
.side-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.side-menu__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.side-menu.is-open .side-menu__overlay {
  opacity: 0.4;
}
.side-menu__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 360px;
  overflow-y: auto;
  background-color: var(--pink);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}
.side-menu.is-open .side-menu__panel {
  transform: none;
}
.side-menu__close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background-color: var(--pink);
  cursor: pointer;
}
.side-menu__close span {
  position: relative;
  display: block;
  width: 24px;
  height: 20px;
  color: #fff;
}
.side-menu__close span::before,
.side-menu__close span::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: rotate(45deg);
}
.side-menu__close span::after {
  transform: rotate(-45deg);
}
.side-menu__container {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100%;
  padding: 48px 40px 38px;
}
.side-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-menu__list li {
  margin: 0;
}
.side-menu__list a {
  display: inline-block;
  margin-bottom: 15px;
  font-family: var(--font);
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}
.side-menu__list li:last-child a {
  margin-bottom: 0;
}
.side-menu__bottom {
  position: relative;
  margin-top: auto;
}
.side-menu__social {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.side-menu__social a {
  display: block;
  width: 30px;
  height: 30px;
}
@media (max-width: 640px) {
  .side-menu__container {
    padding: 42px 25px 25px;
  }
}

/* ---------- попапы ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 10000001;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}
.popup.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
.popup__bg {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.popup__body {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100%;
  pointer-events: none;
}
.popup__body > .z {
  width: 100%;
  pointer-events: none;
}
.popup__body .el,
.popup__body .g {
  pointer-events: auto;
}
.popup__close {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 43px;
  height: 43px;
  padding: 10px;
  box-sizing: border-box;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}
.popup__close:hover {
  opacity: 0.7;
}
.popup__close svg {
  display: block;
}

/* ---------- список статей: страница /blog и блок «блог Luna Studio» на главной ---------- */
.bl {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 100px;
}
.bl__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bl__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #000;
}
.bl__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background-color: #f6e9f0;
}
.bl__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.bl__card:hover .bl__img img {
  transform: scale(1.04);
}
.bl__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}
.bl__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  transition: color 0.2s ease;
}
.bl__card:hover .bl__title {
  color: var(--pink-hover);
}
.bl__descr {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
}
.bl__more {
  margin: 48px 0 0;
  text-align: center;
}
.bl__more a {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 4px;
  background-color: var(--pink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.bl__more a:hover {
  background-color: var(--pink-hover);
}
@media (max-width: 1199px) {
  .bl__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 639px) {
  .bl {
    padding-bottom: 60px;
  }
  .bl__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bl__title {
    font-size: 18px;
  }
}

/* ---------- H1 главной: ключевая фраза для поисковиков строкой над слоганом первого экрана ---------- */
.hero-h1 {
  flex: none;
  max-width: 100%;
}
.hero-h1 .el__a {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);
}
@media (max-width: 639px) {
  .hero-h1 .el__a {
    padding: 0 16px;
    font-size: 11px;
  }
}

/* ---------- подвал сайта (общий для всех страниц: tools/pages/_footer.html) ---------- */
.sf {
  --sf-ink: #161616;
  --sf-muted: #5e5a5c;
  --sf-line: rgba(22, 22, 22, 0.12);
  position: relative;
  z-index: 9;
  color: var(--sf-ink);
  font-family: var(--font);
  background:
    radial-gradient(60% 110% at 100% 0%, rgba(216, 143, 181, 0.38), rgba(216, 143, 181, 0) 70%),
    radial-gradient(45% 80% at 0% 100%, rgba(216, 143, 181, 0.16), rgba(216, 143, 181, 0) 70%),
    #f7f3f5;
  border-top: 1px solid var(--sf-line);
}
.sf *, .sf *::before, .sf *::after {
  box-sizing: border-box;
}
.sf a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.sf ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sf p {
  margin: 0;
}
.sf__in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 60px 0;
}
.sf__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  grid-template-areas: "about nav contacts social";
  gap: 48px 40px;
  padding-bottom: 56px;
}
.sf__about { grid-area: about; }
.sf__nav { grid-area: nav; }
.sf__contacts { grid-area: contacts; }
.sf__social { grid-area: social; }
.sf__logo {
  display: inline-block;
}
.sf__logo img {
  display: block;
  width: 150px;
  height: auto;
}
.sf__text {
  max-width: 320px;
  margin-top: 20px !important;
  font-size: 16px;
  line-height: 1.45;
}
.sf__age {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px !important;
  font-size: 13px;
  color: var(--sf-muted);
}
.sf__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--sf-ink);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-ink);
}
.sf__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.sf .sf__tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 3px;
  background: var(--sf-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.sf__reply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.2;
  color: var(--sf-muted);
  white-space: nowrap;
}
.sf__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #34b267;
  box-shadow: 0 0 0 3px rgba(52, 178, 103, 0.2);
}
.sf__h {
  margin-bottom: 18px !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-muted);
}
.sf__list li + li {
  margin-top: 12px;
}
.sf__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.35;
}
.sf__phone {
  display: inline-block;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.sf__mail {
  display: block;
  width: max-content;
  margin-top: 6px;
  font-size: 16px;
}
.sf__addr {
  margin-top: 14px;
  font-size: 15px;
  font-style: normal;
  color: var(--sf-muted);
}
.sf__msg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px !important;
}
.sf .sf__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--sf-line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.sf__ico {
  flex: none;
}
.sf__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--sf-line);
  font-size: 13px;
  color: var(--sf-muted);
}
.sf__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.sf__legal a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .sf__list a:hover, .sf__phone:hover, .sf__mail:hover {
    color: #b45c88;
  }
  .sf .sf__tg:hover {
    background: #3a3a3a;
  }
  .sf .sf__chip:hover {
    border-color: var(--sf-ink);
    background: #fff;
  }
  .sf__legal a:hover {
    color: var(--sf-ink);
    text-decoration-color: currentColor;
  }
}
@media (max-width: 1199px) {
  .sf__in {
    padding: 64px 40px 0;
  }
  .sf__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "about about about"
      "nav contacts social";
  }
  .sf__about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 40px;
    align-items: start;
  }
  .sf__about > :not(.sf__cta) {
    grid-column: 1;
  }
  .sf__cta {
    grid-column: 2;
    grid-row: 1 / span 3;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
  }
}
@media (max-width: 767px) {
  .sf__in {
    padding: 48px 16px 0;
  }
  .sf__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "about about"
      "contacts contacts"
      "nav social";
    gap: 40px 20px;
    padding-bottom: 40px;
  }
  .sf__about {
    display: block;
  }
  .sf__cta {
    flex-direction: row;
    align-items: center;
    margin-top: 24px;
  }
  .sf .sf__tg {
    width: 100%;
    justify-content: center;
  }
  .sf__list a {
    font-size: 14px;
  }
  .sf__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    padding-bottom: 24px;
  }
  .sf__legal {
    flex-direction: column;
    gap: 10px;
  }
}
