/* ==========================================================================
   Перманентный макияж — Анжела Богатырёва
   Вёрстка по макету Figma (десктоп 1440, мобильный 320)
   ========================================================================== */

@font-face { font-family: "Tilda Sans"; src: url("../fonts/TildaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("../fonts/TildaSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url("../fonts/TildaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --brown: #986d53;
  --brown-light: #deb497;
  --gray: #989791;
  --gray-2: #8d8d8d;
  --beige: #faf2eb;
  --beige-2: #faf7f2;
  --white: #fff;
  --grad-btn: linear-gradient(-31.4deg, #deb497 24.07%, #986d53 114.86%);
  --grad-title: linear-gradient(76.4deg, #deb497 36.98%, #b1917b 83.74%);
  --grad-name: linear-gradient(234.8deg, #deb497 10.48%, #986d53 60.81%);
  --radius: 20px;
  --container: 1320px;
  --gutter: 20px;
  --section-gap: 120px;
  --font: "Tilda Sans", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Unbounded", "Tilda Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.is-locked { overflow: hidden; }
/* Фото мастера на телефоне выступает за рамку (103,6%) – обрезаем вылет, чтобы не было горизонтальной прокрутки (10.11.2026). */
html, body { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { display: flex; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 388px; max-width: 100%; height: 70px;
  padding: 0 9.5px 0 27px;
  border-radius: 50px;
  background: var(--grad-btn);
  color: var(--white);
  font-weight: 600; font-size: 19.7px; line-height: 1;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn__circle {
  flex: none; display: grid; place-items: center;
  width: 51px; height: 51px; border-radius: 50%;
  background: var(--beige);
  transition: transform .25s;
}
.btn:hover .btn__circle { transform: translateX(3px); }
.btn--auto { width: auto; }
.btn--wide { width: 100%; height: 79px; font-size: 21px; padding-left: 30px; }
.btn--wide .btn__circle { width: 58px; height: 58px; }
.btn--sm { width: 100%; height: 50px; font-size: 14px; padding-left: 20px; padding-right: 6px; }
.btn--sm .btn__circle { width: 38px; height: 38px; }

.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gray);
  transition: background .2s;
}
.icon-btn:hover { background: var(--beige); }
.tg-icon { width: 100%; height: 100%; }
.icon-btn--lg { width: 54px; height: 54px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; padding-top: 0; }
.header__bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 15px 0 40px;
  background: var(--beige-2);
  border-radius: 61px;
}
.header__nav { display: flex; gap: 27px; font-size: 14px; }
.header__nav a, .mobile-menu nav a { transition: color .2s; }
.header__nav a:hover, .mobile-menu nav a:hover { color: var(--brown); }
.header__logo {
  position: absolute; left: 50%; top: 2px;
  width: 100px; transform: translateX(calc(-50% + 20px));
}
.header__logo img { width: 100px; height: 72px; object-fit: contain; }
.header__right { display: flex; align-items: center; gap: 5px; font-family: Inter, Arial, sans-serif; }
.header__contact { display: flex; flex-direction: column; gap: 6px; margin-right: 29px; }
.header__phone { font-size: 14px; color: var(--gray); }
.header__hours { font-size: 12px; color: var(--gray-2); }
.header__order {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; width: 100px; margin-left: 2px;
  border: 1px solid var(--gray); border-radius: 44px;
  font-size: 14px; color: #a4a39d;
  transition: background .2s, color .2s;
}
.header__order:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
.header__burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.header__burger span { display: block; width: 22px; height: 1.5px; background: var(--brown); transition: transform .25s, opacity .25s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  /* выпадает поверх страницы, не сдвигая контент */
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  max-height: calc(100vh - 100px); overflow-y: auto;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--beige-2); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(152, 109, 83, .12);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 14px; font-size: 20px; color: var(--brown); margin-bottom: 10px; }
.mobile-menu__phone { font-size: 18px; color: var(--brown); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { margin-top: 10px; }
.hero__card {
  position: relative;
  height: 637px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__master {
  position: absolute; left: 34.24%; top: 14px;
  width: 49.12%; max-width: 648px; height: auto;
  pointer-events: none;
  z-index: 2; /* девушка поверх рамки, как в макете */
}
.hero__panel {
  position: absolute; left: 30px; top: 30px; bottom: 30px;
  width: 48.48%; max-width: 640px;
  padding: 70px 43px 0;
  background: var(--beige);
  border-radius: var(--radius);
  z-index: 1;
}
.hero__kicker { font-size: 23.9px; color: var(--brown); }
.hero__title { margin-top: 13px; font-weight: 400; }
.hero__title-main {
  display: block; width: max-content; max-width: none; padding-right: .06em;
  font-family: var(--font-accent); font-weight: 500;
  font-size: 52.44px; line-height: 1.23; letter-spacing: -0.02em; text-transform: uppercase;
  background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-sub {
  display: block; width: 399px; max-width: 100%; text-align: right;
  font-size: 55.15px; line-height: 1.2; color: var(--brown); white-space: nowrap;
}
.hero__text { margin-top: 15px; max-width: 461px; font-size: 18px; }
.hero__panel .btn { margin-top: 30px; }

.hero__master-info {
  position: absolute; right: 286px; top: 392px; z-index: 3;
  display: flex; align-items: flex-start; gap: 14px;
}
.hero__master-text { text-align: right; padding-top: 2px; }
.hero__name {
  font-weight: 600; font-size: 32.7px; line-height: .85;
  background: var(--grad-name); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__role { margin-top: 20px; width: 189px; margin-left: auto; font-size: 14px; }
.hero__video {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 64px; height: 105px; padding-top: 6px;
  border-radius: 40px;
  background: linear-gradient(-79.7deg, #deb497 24.07%, #986d53 114.86%);
  color: var(--white); font-size: 14px; line-height: .78; text-align: center;
  transition: transform .2s;
}
.hero__video:hover { transform: translateY(-2px); }
.hero__video-circle {
  display: grid; place-items: center;
  width: 51px; height: 51px; border-radius: 50%; background: var(--beige);
}
.hero__video-circle img { transform: rotate(90deg); margin-left: 3px; }
.hero__video span { width: 56px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.feature {
  display: flex; align-items: center; gap: 30px;
  height: 87px; padding: 0 20px 0 25px;
  background: var(--beige); border-radius: var(--radius);
}
.feature__icon {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
}
.feature__icon--ring { border: 1.5px solid var(--brown); }
.feature__icon--ring img { width: 50px; height: 50px; }
.feature__icon--ring .feature__icon-sm { width: 33px; height: 33px; }
.feature__icon-mobile { display: none; }
.feature__text { font-size: 24px; line-height: 1.02; color: var(--brown); max-width: 175px; }

/* ---------- Sections ---------- */
.section { margin-top: var(--section-gap); }
.section__label { font-size: 23.9px; color: var(--brown); }
.section__title {
  margin-top: 20px; max-width: 612px;
  font-weight: 400; font-size: 58px; line-height: .8; letter-spacing: -0.02em;
  color: var(--brown);
}
.section__title--wide { max-width: 740px; }
.section__text { margin-top: 20px; max-width: 612px; font-size: 18px; }
.section__text--wide { max-width: 697px; }
.section__text--narrow { max-width: 411px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 309px; gap: 11px 20px;
  margin-top: 40px;
}
.service {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 21px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  isolation: isolate;
  cursor: pointer;
}
.service--tall { grid-row: span 2; }
.service > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(102,102,102,0) 60.5%);
}
.service:hover > img { transform: scale(1.05); }
.service__title { max-width: 270px; font-weight: 400; font-size: 30px; line-height: .8; color: var(--white); }
.more { display: block; width: 174px; height: 39px; border-radius: 20px; line-height: 0; transition: transform .2s, filter .2s; }
.more img { width: 100%; height: 100%; }
.more:hover { transform: translateY(-2px); filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }

/* ---------- Portfolio ---------- */
.slider-nav { display: flex; align-items: center; gap: 12px; flex: none; margin-bottom: 3px; /* низ кнопок на уровне нижней строки подзаголовка */ }
.slider-nav__btn { width: 68px; height: 68px; border-radius: 50%; transition: opacity .2s, transform .2s; }
.slider-nav__btn:hover { transform: scale(1.06); }
.slider-nav__btn:disabled { opacity: .35; cursor: default; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 11px; margin-top: 20px; max-width: 1183px; }
.chip {
  height: 47px; padding: 0 16px;
  border: 1px solid var(--gray); border-radius: 58px;
  font-size: 18px; line-height: .8; color: var(--gray);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--brown); color: var(--brown); }
.chip.is-active { background: linear-gradient(-33.4deg, #deb497 24.07%, #986d53 114.86%); color: var(--white); }

.works {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 19.5px) / 3);
  gap: 19.5px; margin-top: 42px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.works::-webkit-scrollbar { display: none; }
.work { height: 580px; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
.work img { width: 100%; height: 100%; object-fit: cover; }
.works__empty { margin-top: 42px; padding: 60px 20px; text-align: center; background: var(--beige); border-radius: var(--radius); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about__card { padding: 30px 30px 40px; background: var(--beige); border-radius: var(--radius); }
.about__card .section__title { max-width: 550px; }
.about__text { margin-top: 30px; max-width: 494px; }
.about__text p + p { margin-top: 22px; }
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 576px; }
/* фото не задаёт высоту ряда: высота = карточке с текстом, обрезка сверху, голова в кадре */
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }

/* ---------- Reviews ---------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.video {
  position: relative; height: 416px;
  border: 1px solid var(--gray); border-radius: var(--radius); overflow: hidden;
}
.video > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 100px; height: 100px;
  transform: translate(-50%, -50%); transition: transform .25s;
}
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
button.video { display: block; width: 100%; padding: 0; background: #000; cursor: pointer; text-align: left; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video.is-playing { cursor: default; }
.video.is-playing > img { visibility: hidden; }

.reviews {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start;
  margin-top: 21px;
  max-height: 620px; overflow: hidden;
  transition: max-height .6s ease;
}
.reviews::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 90%);
  pointer-events: none; transition: opacity .3s;
}
.reviews.is-open { max-height: 2400px; }
.reviews.is-open::after { opacity: 0; }
.reviews__col { display: flex; flex-direction: column; gap: 20px; }
.review { height: var(--h); border: 1px solid var(--gray); border-radius: var(--radius); overflow: hidden; }
.review img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
#reviews .center { margin-top: 58px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 650px 1fr; gap: 43px; }
.contacts__map { display: block; border-radius: var(--radius); overflow: hidden; min-height: 603px; }
.contacts__map img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.contacts__map:hover img { transform: scale(1.02); }
.contacts__info { display: flex; flex-direction: column; align-items: flex-start; }
.contacts__info .section__title, .contacts__info .section__text { max-width: 608px; }
.contacts__block { margin-top: 20px; }
.contacts__label { font-size: 24px; color: var(--brown); }
.contacts__value { display: block; margin-top: 8px; max-width: 525px; font-size: 30px; line-height: 1.18; color: var(--brown); }
.contacts__phone { margin-top: 22px; white-space: nowrap; }
.contacts__row { display: flex; gap: 70px; margin-top: 10px; }
.contacts__socials { display: flex; gap: 6px; margin-top: 8px; }
.contacts__info .btn { margin-top: auto; }
.contacts__row { margin-bottom: 34px; }

/* ---------- Footer ---------- */
.footer {
  display: grid; grid-template-columns: 315px 335px 1fr auto; align-items: end; column-gap: 20px;
  margin-top: 25px; padding-bottom: 50px;
}
.footer__logo { width: 233px; height: auto; }
.footer__inn { padding-bottom: 32px; }
.footer__docs { display: flex; flex-direction: column; gap: 11px; padding-left: 23px; }
.footer__docs .contacts__label { margin-bottom: 9px; }
.footer__docs a:hover, .form__agree a:hover { color: var(--brown); }
.footer__made { white-space: nowrap; }

/* ---------- Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.modal__overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .1);
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  animation: fade .25s ease;
}
.modal__dialog { position: relative; margin: auto; animation: pop .3s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.modal__close { position: absolute; top: 27px; right: 27px; width: 32px; height: 32px; display: grid; place-items: center; z-index: 2; transition: transform .2s; }
.modal__close:hover { transform: rotate(90deg); }
.modal__title { font-weight: 400; font-size: 41.7px; line-height: .8; color: var(--brown); padding-right: 50px; }
.modal__lead { margin-top: 18px; max-width: 362px; }

/* form modal */
.modal__dialog--form { display: grid; grid-template-columns: 527px 687px; gap: 11px; width: 1225px; max-width: 100%; }
.modal__panel { position: relative; padding: 27px; background: var(--beige); border-radius: 17.6px; }
.modal__photo { position: relative; border-radius: 17.6px; overflow: hidden; }
.modal__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__dialog:focus { outline: none; }
/* слайдшоу в окне заявки */
.slides .slide { opacity: 0; transition: opacity .9s ease; }
.slides .slide.is-active { opacity: 1; }
.slides__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 1; }
.slides__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 4px rgba(0,0,0,.25); transition: background .2s, transform .2s; }
.slides__dot.is-active { background: #fff; transform: scale(1.25); }

.form { margin-top: 12px; display: flex; flex-direction: column; }
.form__input {
  width: 100%; height: 53px; padding: 0 25px;
  border: 1px solid transparent; border-radius: 56px; background: var(--white);
  font: inherit; font-size: 18px; color: var(--brown); letter-spacing: inherit;
  outline: none; transition: border-color .2s;
}
.form__input::placeholder { color: var(--gray); }
.form__input:focus { border-color: var(--brown-light); }
.form__input.is-invalid { border-color: #d27b6a; }
.form__methods { border: 0; margin: 13px 0 15px; padding: 0; display: flex; gap: 5.6px; flex-wrap: wrap; }
.form__methods legend { padding: 0; margin-bottom: 8px; font-size: 18px; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method span {
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 1.1px solid var(--gray); border-radius: 50%; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.method input:checked + span { background: var(--white); border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.method input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.form__agree { display: flex; gap: 6px; align-items: flex-start; margin-top: 15px; max-width: 390px; cursor: pointer; }
.form__agree input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 15px; height: 15px; margin: 4px 0 0; border: 1px solid var(--gray); border-radius: 2px; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.form__agree input:checked { background: var(--brown); border-color: var(--brown); }
.form__agree input:checked::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: translateY(-1px) rotate(45deg); }
.form__agree input.is-invalid { border-color: #d27b6a; }
.form__agree a { text-decoration: underline; text-decoration-color: rgba(152,151,145,.4); text-underline-offset: 3px; }
.form__error { margin-top: 12px; color: #c0614f; font-size: 15px; }
.form .btn { margin-top: 48px; }

/* service modal */
.modal__dialog--service { width: 1272px; max-width: 100%; padding: 27px; background: var(--beige); border-radius: 17.6px; }
.svc { display: grid; grid-template-columns: minmax(0, 604px) 514px; justify-content: space-between; gap: 30px; }
.svc__desc { margin-top: 18px; max-width: 555px; }
.svc__adv-wrap { margin-top: 15px; }
.svc__subtitle { font-size: 21px; line-height: .8; color: var(--brown); }
.svc__adv { margin-top: 13px; }
.svc__adv p + p { margin-top: 22px; }
.svc__adv b { font-weight: 700; }
.svc__price-wrap { margin-top: 23px; }
.svc__price { margin-top: 10px; font-size: 41px; line-height: .8; color: var(--brown); white-space: nowrap; }
.svc__info .btn { margin-top: 13px; width: 475px; height: 79px; font-size: 21px; padding-left: 30px; }
.svc__info .btn .btn__circle { width: 58px; height: 58px; }
.svc__gallery { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; margin-right: 43px; align-self: start; min-width: 0; }
.svc__main { width: 100%; height: 452px; object-fit: contain; background: #efe4da; border-radius: var(--radius); }
.svc__gallery--single .svc__main { height: 558px; object-fit: cover; }
.svc__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.svc__thumb { height: 92px; border-radius: 12px; overflow: hidden; opacity: .6; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc__thumb:hover { opacity: .9; }
.svc__thumb.is-active { opacity: 1; outline-color: var(--brown); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1360px) {
  .header__bar { padding-left: 28px; }
  .header__nav { gap: 18px; }
  .header__contact { margin-right: 12px; }
  .hero__master-info { right: 21.7%; }
  .hero__title-main { font-size: clamp(36px, 3.95vw, 52.44px); }
  .hero__title-sub { font-size: clamp(38px, 4.15vw, 55.15px); width: 76%; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr 1fr 1fr auto; }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
  .svc__gallery { margin-right: 30px; }
  .modal__dialog--form { grid-template-columns: 527px minmax(0, 1fr); }
}

@media (max-width: 1200px) {
  :root { --section-gap: 100px; }
  .header__contact { display: none; }
  .section__title { font-size: 48px; }
  .hero__card { height: 600px; }
  .hero__panel { padding: 50px 34px 0; }
  .hero__kicker { font-size: 20px; }
  .hero__master-info { top: 360px; right: 18%; }
  .feature { gap: 16px; padding-left: 16px; }
  .feature__text { font-size: 20px; }
  .service__title { font-size: 26px; }
  .contacts__value { font-size: 26px; }
  .footer { grid-template-columns: auto 1fr 1fr; row-gap: 20px; }
  .footer__made { grid-column: 2 / -1; }
}

@media (max-width: 1024px) {
  .header__nav, .header__right { display: none; }
  .header__bar { height: 64px; padding: 0 12px 0 20px; }
  .header__logo { left: 20px; transform: none; top: -2px; }
  .header__logo img { width: 80px; height: 58px; }
  .header__burger { display: flex; margin-left: auto; }

  .hero__card { height: auto; min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
  .hero__master { left: auto; right: -4%; width: 62%; top: 10px; z-index: 0; }
  .hero__panel { position: relative; inset: auto; width: min(560px, 100%); max-width: none; padding: 40px 30px 30px; }
  .hero__master-info { top: 30px; right: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }

  .services { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; gap: 16px; }
  .service--tall { grid-row: span 1; }
  .works { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
  .work { height: 520px; }
  .about { grid-template-columns: 1fr; }
  .about__photo { min-height: 0; aspect-ratio: 650 / 576; }
  .videos, .reviews { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .reviews__col { gap: 16px; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .contacts__map { min-height: 0; aspect-ratio: 650 / 500; order: 2; }

  .modal__dialog--form { grid-template-columns: 1fr; width: 560px; }
  .modal__photo { display: none; }
  .modal__dialog--service { width: 720px; }
  .svc { grid-template-columns: 1fr; }
  .svc__gallery { margin: 0; }
  .svc__main { height: 420px; }
  .svc__gallery--single .svc__main { height: 360px; }
  .svc__info .btn { width: 100%; }
}

@media (max-width: 600px) {
  :root { --gutter: 10px; --section-gap: 64px; --radius: 10px; }
  body { font-size: 12px; }
  html { scroll-padding-top: 70px; }
  .header { padding-top: 8px; }
  .header__bar { height: 52px; }
  .header__logo img { width: 62px; height: 45px; }

  /* hero — мобильный макет 320 */
  .hero { margin-top: 64px; } /* фото выступает над рамкой на 41px — опускаем, чтобы голова не уходила под шапку */
  .hero__card { min-height: 0; padding: 212px 10px 10px; overflow: visible; background: none;
    clip-path: inset(-60px 0 0 0 round 0 0 10px 10px); } /* сверху фото может выступать, снизу и по бокам — обрезка по рамке */
  .hero__bg { border-radius: 10px; }
  .hero__master { width: 103.6%; max-width: none; left: 1.4%; right: auto; top: -41px; }
  .hero__panel { width: 100%; padding: 29px 19px 20px; border-radius: 8.5px; }
  .hero__kicker { font-size: 10px; }
  .hero__title { margin-top: 4px; }
  .hero__title-main { font-size: 23px; line-height: 1.2; }
  .hero__title-sub { font-size: 23.3px; width: 169px; }
  .hero__text { margin-top: 10px; max-width: 196px; font-size: 12px; }
  .hero__panel .btn { margin-top: 18px; }
  .hero__master-info { top: 139px; right: 23px; gap: 8px; }
  .hero__name { font-size: 20.2px; }
  .hero__role { margin-top: 12px; width: 117px; font-size: 8.65px; }
  .hero__video { width: 40px; height: 65px; padding-top: 3.5px; gap: 3px; font-size: 8.65px; border-radius: 25px; }
  .hero__video-circle { width: 32px; height: 32px; }
  .hero__video-circle img { width: 13px; height: 12px; }
  .hero__video span { width: 35px; }

  .btn { height: 45px; font-size: 12px; padding: 0 5px 0 17px; width: 100%; gap: 10px; }
  .btn__circle { width: 33px; height: 33px; }
  .btn__circle img { width: 11px; height: 9px; }
  .btn--auto { width: auto; }
  .btn--wide { height: 50px; font-size: 13px; }
  .btn--wide .btn__circle { width: 38px; height: 38px; }

  .features { gap: 5px 10px; margin-top: 6px; }
  /* иконки как на десктопе: в круге, слева от текста */
  .feature { height: 50px; padding: 0 8px; gap: 8px; border-radius: 10px; }
  .feature__text { font-size: 13px; max-width: none; }
  .feature__icon { width: 32px; height: 32px; }
  .feature__icon--ring { border-width: 1px; }
  .feature__icon > img { width: 32px; height: 32px; }
  .feature__icon--ring img { width: 29px; height: 29px; }
  .feature__icon--ring .feature__icon-sm { width: 19px; height: 19px; }

  .section__label { font-size: 10px; }
  .section__title { margin-top: 10px; font-size: 23.7px; line-height: .8; }
  .section__text { margin-top: 10px; font-size: 12px; max-width: 267px; }

  .services { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 6px; margin-top: 16px; }
  .service { padding: 12px; }
  .service--tall { grid-column: 1 / -1; }
  .service__title { font-size: 17px; }
  .more { width: 116px; height: 26px; }

  .section__head { display: block; }
  .slider-nav { display: none; }
  .chips { gap: 2px; margin-top: 8px; }
  .chip { height: 24px; padding: 0 7px; font-size: 12px; border-width: .5px; }
  .works { grid-auto-columns: 130px; gap: 6px; margin-top: 24px; margin-right: calc(-1 * var(--gutter)); }
  .work { height: 177px; border-radius: 6px; }

  .about__card { padding: 16px 16px 20px; }
  .about__text { margin-top: 16px; }
  .about__text p + p { margin-top: 12px; }

  .videos { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 16px; }
  .video { height: 230px; }
  .video__play { width: 56px; height: 56px; }
  .reviews { gap: 6px; margin-top: 6px; max-height: 420px; }
  .reviews__col { gap: 6px; }
  .review { height: calc(var(--h) * .55); }
  #reviews .center { margin-top: 24px; }

  .contacts { gap: 20px; }
  .contacts__label { font-size: 14px; }
  .contacts__value { font-size: 18px; margin-top: 4px; }
  .contacts__phone { margin-top: 10px; }
  .contacts__row { gap: 30px; margin-bottom: 0; }
  .icon-btn--lg { width: 40px; height: 40px; }
  .contacts__info .btn { margin-top: 20px; }

  .footer { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; padding-bottom: 30px; font-size: 12px; }
  .footer__logo { width: 120px; height: auto; }
  .footer__inn { padding: 0; }
  .footer__docs { padding-left: 0; gap: 6px; }
  .footer__docs .contacts__label { margin-bottom: 2px; }
  .footer__made { white-space: normal; }

  .modal { padding: 10px; }
  .modal__dialog--service, .modal__panel { padding: 15px; border-radius: 10px; }
  .modal__close { top: 14px; right: 14px; width: 22px; height: 22px; }
  .modal__close img { width: 13px; height: 13px; }
  .modal__title { font-size: 21px; padding-right: 30px; }
  .modal__lead { margin-top: 10px; max-width: 206px; }
  .form { margin-top: 12px; }
  .form__input { height: 30px; padding: 0 14px; font-size: 12px; }
  .form__methods { margin: 10px 0 8px; gap: 3px; }
  .form__methods legend { font-size: 12px; margin-bottom: 6px; }
  .method span { width: 30px; height: 30px; }
  .method img { transform: scale(.6); }
  .method img.tg-icon { transform: none; }
  .form__agree { margin-top: 8px; font-size: 10px; max-width: 220px; }
  .form__agree input { width: 9px; height: 9px; margin-top: 2px; }
  .form__agree input:checked::after { width: 2.5px; height: 5px; }
  .form .btn { margin-top: 16px; }

  .svc__gallery { gap: 5px; }
  .svc__main { height: 300px; border-radius: 10px; }
  .svc__gallery--single .svc__main { height: 220px; }
  .svc__thumbs { gap: 4px; }
  .svc__thumb { height: 56px; border-radius: 6px; }
  .svc__desc { margin-top: 10px; }
  .svc__subtitle { font-size: 12px; }
  .svc__adv { margin-top: 8px; }
  .svc__adv p + p { margin-top: 10px; }
  .svc__price-wrap { margin-top: 14px; }
  .svc__price { font-size: 19px; margin-top: 6px; }
  .svc__info .btn { height: 45px; font-size: 12px; padding-left: 17px; }
  .svc__info .btn .btn__circle { width: 33px; height: 33px; }
}

/* ---------- Preloader ---------- */
html.is-loading, html.is-loading body { overflow: hidden; }
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #fdf8f3 0%, var(--beige) 55%, #f3e6da 100%);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader.is-hidden .preloader__inner { transform: translateY(-12px) scale(.98); }
.preloader__inner { display: flex; flex-direction: column; align-items: center; transition: transform .6s ease; }
.preloader__mark { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.preloader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.preloader__track { fill: none; stroke: rgba(152, 109, 83, .12); stroke-width: 1.5; }
.preloader__arc {
  fill: none; stroke: url(#plGrad); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 578; stroke-dashoffset: 578;
  animation: pl-draw 1.6s cubic-bezier(.65, 0, .35, 1) forwards, pl-spin 2.4s linear 1.6s infinite;
  transform-origin: 100px 100px;
}
.preloader__logo {
  width: 104px; height: auto;
  opacity: 0; transform: scale(.85);
  animation: pl-logo .9s cubic-bezier(.2, .7, .2, 1) .15s forwards;
}
.preloader__name {
  margin-top: 22px; font-size: 22px; letter-spacing: .02em; color: var(--brown);
  opacity: 0; animation: pl-fade .7s ease .45s forwards;
}
.preloader__sub {
  margin-top: 4px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gray);
  opacity: 0; animation: pl-fade .7s ease .6s forwards;
}
.preloader__bar {
  position: relative; display: block; width: 120px; height: 2px; margin-top: 22px;
  border-radius: 2px; background: rgba(152, 109, 83, .14); overflow: hidden;
  opacity: 0; animation: pl-fade .5s ease .7s forwards;
}
.preloader__bar i {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  border-radius: 2px; background: linear-gradient(90deg, #deb497, #986d53);
  animation: pl-bar 1.2s ease-in-out infinite;
}
@keyframes pl-draw { to { stroke-dashoffset: 130; } }
@keyframes pl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pl-logo { to { opacity: 1; transform: scale(1); } }
@keyframes pl-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pl-bar { 0% { left: -40%; } 100% { left: 100%; } }
@media (max-width: 600px) {
  .preloader__mark { width: 136px; height: 136px; }
  .preloader__logo { width: 84px; }
  .preloader__name { font-size: 18px; margin-top: 18px; }
  .preloader__sub { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__arc { animation: none; stroke-dashoffset: 0; }
  .preloader__logo, .preloader__name, .preloader__sub, .preloader__bar { animation: none; opacity: 1; transform: none; }
  .preloader__bar i { animation: none; left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Legal pages ---------- */
.legal { margin-top: 40px; }
.legal__back { display: inline-block; margin-bottom: 20px; color: var(--brown); font-size: 18px; }
.legal__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal__card { padding: 50px 60px 60px; background: var(--beige); border-radius: var(--radius); }
.legal__title { max-width: 900px; font-weight: 400; font-size: 44px; line-height: 1; color: var(--brown); }
.legal__meta { margin-top: 10px; font-size: 16px; }
.legal__meta:first-of-type { margin-top: 24px; }
.legal__body { max-width: 900px; margin-top: 30px; font-size: 17px; line-height: 1.5; color: #7d7c76; }
.legal__body h2 { margin: 36px 0 14px; font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--brown); }
.legal__body p + p { margin-top: 10px; }
.legal__body ul { margin: 10px 0 14px; padding-left: 22px; list-style: disc; }
.legal__body li + li { margin-top: 6px; }
.legal__body a, .legal__meta a, .legal__other a { color: var(--brown); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal__num { color: var(--brown); }
.legal__other { margin-top: 24px; }
@media (max-width: 600px) {
  .legal { margin-top: 24px; }
  .legal__card { padding: 22px 16px 28px; }
  .legal__title { font-size: 24px; }
  .legal__meta { font-size: 12px; }
  .legal__body { font-size: 14px; margin-top: 20px; }
  .legal__body h2 { font-size: 18px; margin: 24px 0 10px; }
}

/* ---------- Thanks page ---------- */
.thanks { margin-top: 10px; }
.thanks__card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: 637px; }
.thanks__content { display: flex; flex-direction: column; align-items: flex-start; padding: 50px 43px 43px; background: var(--beige); border-radius: var(--radius); }
.thanks__title { margin-top: 20px; font-weight: 400; font-size: 58px; line-height: .85; color: var(--brown); }
.thanks__text { margin-top: 20px; max-width: 480px; }
.thanks__text + .thanks__text { margin-top: 12px; }
.thanks__text a { color: var(--brown); white-space: nowrap; }
.thanks__socials { display: flex; gap: 6px; margin-top: 20px; margin-bottom: 30px; }
.thanks__btn { margin-top: auto; }
.thanks__visual { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--beige); min-height: 420px; }
.thanks__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thanks__master { position: absolute; left: 50%; top: 30px; width: 72%; max-width: 480px; height: auto; transform: translateX(-50%); }
@media (max-width: 1024px) {
  .thanks__card { grid-template-columns: 1fr; min-height: 0; }
  .thanks__visual { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .thanks__master { top: 4%; width: 58%; max-width: 360px; }
}
@media (max-width: 600px) {
  .thanks { margin-top: 24px; }
  .thanks__card { gap: 6px; }
  .thanks__content { padding: 22px 16px 20px; }
  .thanks__title { margin-top: 10px; font-size: 30px; }
  .thanks__text { margin-top: 12px; font-size: 14px; }
  .thanks__socials { margin-bottom: 0; }
  .thanks__btn { margin-top: 24px; }
}
