/* ================================================================
   Ирада — косметолог. Мобильный сайт
   Шрифты: Felidae (заголовки, позиции прайса), Inter Tight (текст, кнопки)
   ================================================================ */

@font-face {
  font-family: "Felidae";
  src: url("fonts/Felidae.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter Tight — локальный файл (вариативный 300–500, латиница + кириллица) */
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/InterTight.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Темы ---------- */
:root,
[data-theme="graphite"] {
  --page:       #121213;                 /* поля по бокам на ПК */
  --bg:         #1c1c1e;
  --glow:       rgba(255, 255, 255, .055);/* мягкий «студийный» свет */
  --text:       #f2efeb;
  --muted:      rgba(242, 239, 235, .56);
  --line:       rgba(242, 239, 235, .16);
  --btn-a:      #5d5966;
  --btn-b:      #3d3a43;
  --btn-text:   #ffffff;
  --shade:      28, 28, 30;               /* цвет затемнения главного фото */
  --hero-btn-a: #f4f1ee;
  --hero-btn-b: #d9d4dc;
  --hero-btn-text: #1c1c1e;
}



/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.serif { font-family: "Felidae", "Times New Roman", serif; font-weight: 400; letter-spacing: .018em; }
.r { font-family: "Inter Tight", sans-serif; font-weight: 300; font-size: .82em; margin-left: .12em; }

/* Сайт — колонка мобильной ширины; на ПК поля по бокам */
.site {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.wrap { padding: 0 20px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 0;
  font-family: "Inter Tight", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--btn-text);
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
  transition: filter .25s ease, transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

.btn--light {
  color: var(--hero-btn-text);
  background: linear-gradient(135deg, var(--hero-btn-a), var(--hero-btn-b));
}
.btn--glass {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn .arrow { width: 14px; height: 10px; flex: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  z-index: -2;
}
.hero::before {               /* полупрозрачный градиент для читаемости */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(var(--shade), .30) 0%,
      rgba(var(--shade), 0) 16%,
      rgba(var(--shade), 0) 38%,
      rgba(var(--shade), .45) 56%,
      rgba(var(--shade), .82) 74%,
      rgba(var(--shade), .97) 100%);
}

.hero__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: calc(18px + env(safe-area-inset-top)) 20px 0;
}
.hero__brand { font-size: 20px; letter-spacing: .01em; }
.hero__top-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9;
}

.hero__body { padding: 0 20px calc(26px + env(safe-area-inset-bottom)); }

.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .82;
}
.hero__name {
  margin: 10px 0 18px;
  font-size: clamp(64px, 20vw, 88px);
  line-height: .9;
  letter-spacing: -.005em;
}
.creds li {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.3;
}
.creds small {
  margin-left: 4px;
  font-size: 12.5px;
  letter-spacing: .02em;
  opacity: .6;
  white-space: nowrap;
}
.creds li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }

.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}
.hero__actions .btn { padding: 0 12px; }

/* ---------- Секции ---------- */
.section {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(560px 560px at 100% 460px, var(--glow), transparent 70%),
    var(--bg);
}
.section + .section { padding-top: 40px; }

.section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 60px;
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.section-title span {
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}

/* ---------- Прайс ---------- */
.group + .group { margin-top: 42px; }

.group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.group__title {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.group__title small {
  font-size: .62em;
  color: var(--muted);
  letter-spacing: .04em;
}
.group__meta {
  flex: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .04em;
  text-align: right;
}

.items { padding-top: 8px; }

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 7px 0;
}
.item__name,
.item__price {
  font-size: 21px;
  line-height: 1.22;
}
.item__price { white-space: nowrap; text-align: right; }

.tag {
  display: inline-block;
  margin-left: 8px;
  font-family: "Inter Tight", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: .12em;
}

.note {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.note + .note { margin-top: 6px; }

/* Комплексы Full Face */
.pkg { padding: 14px 0 4px; }
.pkg + .pkg { border-top: 1px solid var(--line); margin-top: 10px; }
.pkg__desc {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.group__cta { margin-top: 20px; }

/* ---------- Контакты ---------- */
.cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cities dt {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cities dd { margin: 6px 0 0; font-size: 24px; line-height: 1.1; }

.socials li { border-bottom: 1px solid var(--line); }
.social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  transition: opacity .2s ease;
}
.social:hover { opacity: .75; }
.social__icon { width: 18px; height: 18px; flex: none; fill: currentColor; }
.social__name { font-size: 21px; line-height: 1.1; }
.social__handle {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--muted);
}

.contacts__cta { margin-top: 28px; }

.footer {
  padding: 36px 20px calc(28px + env(safe-area-inset-bottom));
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  background: var(--bg);
}
.footer p + p { margin-top: 8px; }
.footer__warn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Окно записи ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .28s ease;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;           /* квадратное окно; растёт, если не хватает места */
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  background:
    radial-gradient(120% 70% at 0% 0%, var(--glow), transparent 60%),
    var(--bg);
  color: var(--text);
  transform: translateY(12px);
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.modal.is-open .modal__card { transform: none; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal__title { font-size: 34px; line-height: .95; text-transform: uppercase; }
.modal__close {
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.modal__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.2; }
.modal__sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.modal__actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}
.modal__actions .btn {
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  font-size: 12px;
  letter-spacing: .13em;
}
.btn__icon {
  width: 14px;                   /* = высоте строки текста кнопки */
  height: 14px;
  flex: none;
  fill: #fff;
}

/* ---------- Мелочи ---------- */
@media (min-width: 481px) {
  .site { min-height: 100vh; }
}

@media (max-width: 359px) {
  .wrap, .hero__body, .hero__top { padding-left: 16px; padding-right: 16px; }
  .item__name, .item__price { font-size: 19px; }
  .section-title h2 { font-size: 52px; }
  .modal__actions .btn { letter-spacing: .08em; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal, .modal__card, .btn { transition: none; }
}
