/* ---------- Шрифты: лежат локально в fonts/, к Google не обращаемся (GDPR) ---------- */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/lora-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/lora-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/lora-latin-500-normal.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: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/lora-cyrillic-500-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/lora-latin-ext-500-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/lora-latin-500-italic.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: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/nunito-sans-latin-400-normal.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: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/nunito-sans-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/nunito-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/nunito-sans-latin-600-normal.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: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/nunito-sans-latin-700-normal.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 {
  color-scheme: light;
  --background: oklch(0.985 0.008 350);
  --foreground: oklch(0.32 0.06 355);
  --card: oklch(1 0 0);
  --primary: oklch(0.58 0.13 358);
  --primary-foreground: oklch(0.99 0.005 350);
  --secondary: oklch(0.88 0.06 355);
  --secondary-foreground: oklch(0.35 0.08 358);
  --muted: oklch(0.955 0.02 350);
  --muted-foreground: oklch(0.5 0.05 355);
  --accent: oklch(0.66 0.12 357);
  --border: oklch(0.91 0.03 352);
  --day-busy: oklch(0.945 0.006 350);
  --day-busy-fg: oklch(0.6 0.015 350);
  --ring: oklch(0.73 0.12 357);
  --gradient-blush: linear-gradient(160deg, oklch(0.975 0.015 350), oklch(0.92 0.05 355));
  --shadow-soft: 0 20px 50px -20px color-mix(in oklab, var(--primary) 35%, transparent);
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(52px, 8vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0; line-height: 1.15; overflow-wrap: break-word; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: 14px; }

/* ---------- Кнопки (не меньше 44px по высоте, удобно пальцем) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; padding: 12px 28px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: opacity .18s, background .18s; text-align: center; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: var(--card); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.lang { display: inline-flex; background: var(--muted); border-radius: 999px; padding: 3px; }
/* меню: Услуги · Мои работы · Записаться */
.menu { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu a:not(.btn) { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--foreground); white-space: nowrap; }
.menu a:not(.btn):hover { color: var(--primary); background: var(--muted); }
.menu a[aria-current="page"] { color: var(--primary); background: var(--muted); }
.menu .btn { margin-left: 6px; white-space: nowrap; }
.lang a { min-width: 44px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--muted-foreground); }
.lang a[aria-current="page"] { background: var(--card); color: var(--primary); box-shadow: 0 2px 8px -3px color-mix(in oklab, var(--primary) 40%, transparent); }
.lang a:not([aria-current]):hover { color: var(--primary); }
.brand { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--primary); white-space: nowrap; }

/* ---------- Первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: 12px; padding-bottom: var(--section-y); }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); }
.hero h1 em { font-style: italic; color: var(--primary); }
.lead { margin-top: 22px; max-width: 30em; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted-foreground); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted-foreground); }
.photo { position: relative; margin: 14px; }
.photo::before { content: ""; position: absolute; inset: -14px; background: var(--gradient-blush); border-radius: 2.5rem; }
.photo .photo-main { position: relative; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 2rem; box-shadow: var(--shadow-soft); }
/* маленькое фото реальной работы поверх, в левом нижнем углу */
.photo-work { position: absolute; left: -22px; bottom: -22px; z-index: 1; width: 36%; background: var(--card); padding: 6px 6px 4px; border-radius: 1.1rem; box-shadow: var(--shadow-soft); transform: rotate(-3deg); transition: transform .2s; }
.photo-work:hover { transform: rotate(0); }
.photo-work img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: .8rem; }
.photo-work span { display: block; padding: 4px 0 2px; text-align: center; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ---------- Страница «Мои работы» ---------- */
.works-page { padding-top: 12px; }
.works-page h1 { font-size: clamp(32px, 5vw, 56px); }
/* 2 колонки: первое (вертикальное) фото на две строки, горизонтальные рядом */
/* сетка-«кирпичики»: фото разной высоты встают столбиками без обрезки */
.works { margin-top: 32px; columns: 3; column-gap: 16px; }
.works a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--muted); }
.works img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.works a:hover img { transform: scale(1.03); }
/* просмотр фото крупно */
.lightbox { margin: 0; padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: oklch(0.2 0.03 355 / .94); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 48px); border-radius: 1rem; object-fit: contain; }
.lb-btn { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: oklch(1 0 0 / .92); color: var(--primary); font: 400 30px/1 var(--font-sans); cursor: pointer; }
.lb-btn:hover { background: var(--card); }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.svc-works { margin-top: 28px; }
.works-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.works-cta p { font-size: 18px; }
.about { margin-top: 28px; max-width: 52em; font-size: 14.5px; color: var(--muted-foreground); }

/* ---------- Секции ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-muted { background: var(--muted); }
.section h2 { font-size: clamp(28px, 4vw, 40px); }
.sub { margin-top: 10px; color: var(--muted-foreground); max-width: 36em; }

.svc { margin-top: 36px; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: 1.5rem; padding: clamp(20px, 2.5vw, 28px); box-shadow: var(--shadow-soft); }
.card h3 { font-size: clamp(20px, 2vw, 23px); color: var(--primary); }
.card p { margin-top: 10px; color: var(--muted-foreground); }

.fx-title { margin-top: 52px; font-size: clamp(24px, 3vw, 30px); }
.fx { margin-top: 22px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-item { margin: 0; background: var(--card); border-radius: 1.25rem; padding: 18px 20px 12px; box-shadow: var(--shadow-soft); }
/* subgrid: название и «Подробнее» стоят в общих строках ряда, ссылки на одной линии */
.fx-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.fx-item figcaption { display: contents; }
.fx-item b { padding: 0 4px; }
.fx-more { padding: 0 4px; }
.fx-item b { font-family: var(--font-serif); font-weight: 500; font-size: 19px; color: var(--primary); }
.fx-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; color: var(--primary); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.fx-more summary::-webkit-details-marker { display: none; }
.fx-more summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.fx-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.fx-more p { margin: 0 0 2px; font-size: 14.5px; color: var(--muted-foreground); line-height: 1.5; }
.nowrap { white-space: nowrap; }
.lead { text-wrap: pretty; }
.where .contact { margin-top: 4px; }
.where .phone { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }


.steps { margin: 36px 0 0; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
.steps li { display: flex; align-items: flex-start; gap: 16px; font-size: 17px; }
/* заголовок шага по центру кружка с номером, подпись ниже */
.steps b { display: flex; align-items: center; min-height: 46px; }
.steps small { display: block; color: var(--muted-foreground); font-size: 15px; }
.num { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 20px; }

/* ---------- Форма ---------- */
.section-blush { background: var(--gradient-blush); }
[hidden] { display: none !important; }
/* Запись: слева процедура и короткая форма, справа календарь на 2 недели */
.book { max-width: 1040px; margin: 0 auto; background: var(--card); border-radius: 2rem; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "pick cal" "pick form" "alt alt"; column-gap: clamp(24px, 4vw, 52px); align-items: start; }
.book h2 { font-size: clamp(28px, 4vw, 40px); }
.book .hint { margin-top: 8px; color: var(--muted-foreground); }
.book-pick { grid-area: pick; }
.book-pick label { margin-top: 20px; }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted-foreground); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot-free { background: var(--secondary); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent); }
.dot-busy { background: var(--day-busy); }
.book-cal { grid-area: cal; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.cal-head b { font-family: var(--font-serif); font-weight: 500; font-size: clamp(17px, 1.8vw, 20px); }
.cal-nav { display: flex; gap: 6px; flex: 0 0 auto; }
.cal-nav button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--primary); font: 400 26px/1 var(--font-sans); cursor: pointer; padding: 0 0 3px; }
.cal-nav button:hover:not(:disabled) { background: var(--muted); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 82px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 9px 8px; border: 0; border-radius: .9rem; background: var(--day-busy); color: var(--day-busy-fg); font: inherit; text-align: left; cursor: default; }
.day.is-free { background: var(--secondary); color: var(--secondary-foreground); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--primary) 45%, transparent); cursor: pointer; transition: background .15s, transform .15s; }
.day.is-free:hover { background: color-mix(in oklab, var(--secondary) 75%, var(--accent)); }
.day.is-chosen { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 30%, transparent); }
.day.is-chosen:hover { background: var(--primary); }
.d-wd { font-size: 12.5px; font-weight: 700; text-transform: capitalize; }
.d-num { font-family: var(--font-serif); font-size: 21px; line-height: 1.2; }
.d-st { margin-top: auto; font-size: 12px; line-height: 1.2; }
.cal-grid.is-off { opacity: .45; }
.cal-msg { margin: 12px 0 0; font-size: 14.5px; color: var(--muted-foreground); }
.book-form { grid-area: form; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.picked { margin: 0; font-weight: 700; color: var(--primary); }
.picked::first-letter { text-transform: uppercase; }
.fine { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error a { color: var(--primary); text-decoration: underline; font-weight: 700; }
.book-done { grid-area: form; margin-top: 22px; padding: 22px; border-radius: 1.25rem; background: var(--muted); text-align: center; outline: none; }
.done-mark { width: 48px; height: 48px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 24px; }
.book-done h3 { font-size: 22px; color: var(--primary); }
.book-done p { margin: 8px 0 0; color: var(--muted-foreground); }
.book-alt { grid-area: alt; margin-top: 26px; }
form { margin-top: 26px; display: grid; gap: 14px; }
label { font-size: 14px; font-weight: 700; color: var(--secondary-foreground); display: grid; gap: 6px; }
/* 16px в полях: иначе iPhone приближает страницу при нажатии */
.field { width: 100%; min-height: 48px; border: 1px solid var(--border); background: var(--background); border-radius: 1rem; padding: 12px 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--foreground); outline: none; -webkit-appearance: none; appearance: none; }
select.field { padding-right: 40px; 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='%23a04a6a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field:focus { box-shadow: 0 0 0 2px var(--ring); }
textarea.field { resize: vertical; min-height: 88px; }
.error { font-size: 14px; color: oklch(0.55 0.22 27); }
.submit { width: 100%; border: 0; font: inherit; font-weight: 700; margin-top: 4px; }
.or { text-wrap: balance; margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.chips { max-width: 640px; margin: 10px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--muted); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--primary); }
.chip:hover { background: var(--secondary); }

.privacy { margin-top: 20px; font-size: 13px; color: var(--muted-foreground); }
.privacy summary { cursor: pointer; text-align: center; list-style: none; padding: 6px 0; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary span { text-decoration: underline; }
.privacy ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* ---------- Адрес и подвал ---------- */
.where { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.where p { margin-top: 10px; font-size: 18px; }
.footer { padding: 32px 0 44px; text-align: center; font-size: 14px; color: var(--muted-foreground); }
.footer a { text-decoration: underline; }

/* =========================================================
   АДАПТАЦИЯ ПОД ЭКРАНЫ
   ========================================================= */

/* Большие мониторы (27", 4K): шире контейнер, крупнее воздух */
@media (min-width: 1600px) {
  .wrap { max-width: 1320px; }
  body { font-size: 17px; }
}

/* Планшет и маленький ноутбук (iPad, 1024px и уже) */
@media (max-width: 1023px) {
  .fx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { columns: 2; }
}

/* Планшет вертикально и телефоны: одна колонка на первом экране */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero .photo { order: -1; width: min(440px, calc(100% - 28px)); margin: 14px auto 0; }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .where { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; grid-template-areas: "pick" "cal" "form" "alt"; }
  .book-cal { margin-top: 22px; }
  .where .btn { justify-self: start; }
  /* шапка в две строки: логотип и язык сверху, меню из 3 кнопок под ними */
  .header { flex-wrap: wrap; row-gap: 10px; }
  .lang { margin-left: auto; }
  .menu { order: 3; width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .menu a:not(.btn) { background: var(--muted); padding: 8px 6px; min-height: 44px; }
  .menu .btn { margin-left: 0; min-height: 44px; padding: 8px 6px; }
  .photo-work { left: -14px; bottom: -18px; width: 34%; }
  .hero .photo { margin-bottom: 14px; }
}

/* Телефоны */
@media (max-width: 600px) {
  .svc { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid { gap: 4px; }
  .day { min-height: 56px; align-items: center; justify-content: center; padding: 6px 2px; border-radius: .7rem; text-align: center; }
  .d-st { display: none; }
  .d-wd { font-size: 11.5px; }
  .d-num { font-size: 18px; }
  .fx { gap: 12px; }
  .fx-item { padding: 14px 14px 8px; }
  .fx-item b { font-size: 17px; }
  .fx-more p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .where .btn { width: 100%; }
  .menu a:not(.btn), .menu .btn { font-size: 14px; }
  .works-cta .btn { width: 100%; }
  .works { columns: 2; column-gap: 10px; margin-top: 24px; }
  .works a { margin-bottom: 10px; border-radius: 1rem; }
  .lightbox img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 100px); }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-btn { width: 44px; height: 44px; background: oklch(1 0 0 / .8); }
  .svc-works { width: 100%; }
  .brand { font-size: 18px; }
}

/* Совсем узкие (старые iPhone SE, 320px) */
@media (max-width: 360px) {
  .fx-item { padding-inline: 12px; }
  /* если что-то раскрыто, все эффекты в одну колонку: описание читается, сетка без дыр */
  .fx:has(.fx-more[open]) { grid-template-columns: 1fr; }
  .brand { font-size: 16px; }
  .menu a:not(.btn), .menu .btn { font-size: 13px; padding-inline: 4px; }
  .photo-work span { font-size: 12px; }
}

/* Телефон боком (низкий экран): фото рядом с текстом, не на весь экран */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hero .photo { order: 0; width: auto; max-width: 300px; margin: 14px; }
  .menu { order: 0; width: auto; display: flex; margin-left: auto; gap: 8px; }
  .header { flex-wrap: nowrap; }
  .lang { margin-left: 0; }
  .hero h1 { font-size: clamp(28px, 4.5vw, 40px); }
}

/* Кто отключил анимации в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Печать: без теней и фона */
@media print {
  .section-blush, .section-muted, .photo::before { background: none; }
  .card, .book, .btn-primary, .photo img, .photo-work { box-shadow: none; }
}
