/* ============================================================
   Смайл Про — шаблон
   ============================================================ */
/* ---------- 1. Переменные ---------- */
:root {
  --bg: #F3FAFB;
  --bg2: #E5F2F4;
  --text: #0F2A30;
  --muted: #4F6B70;
  --ac: #0E7C86;
  --ac2: #3FAEB8;
  --card: #FFFFFF;
  --line: #D3E8EA;
  --hs: #0F2A30;
  --hss: #2E4A50;
  --btn-t: #F2FBFC;
  --fd: "Montserrat", "Arial Narrow", sans-serif;
  --fb: "Inter", "Segoe UI", sans-serif;
  --hh: 74px;
}
/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.12; font-family: var(--fd); color: var(--text); }
::selection { background: var(--ac); color: var(--btn-t); }
/* ---------- 3. Контейнер ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg2); }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ac); margin-bottom: 16px;
}
.section__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--ac); display: inline-block; }
.section__title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; margin-bottom: 14px; }
.section__subtitle { color: var(--muted); font-size: 17px; }
/* ---------- 4. Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; height: 52px; padding: 0 28px; border-radius: 12px;
  font-family: var(--fd); font-size: 15px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
}
.btn--primary {
  color: var(--btn-t);
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac2) 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.btn--ghost { color: var(--text); border: 1px solid var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ac); color: var(--ac); transform: translateY(-2px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13px; border-radius: 10px; }
.btn__arrow { transition: transform .25s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- 5. Хедер ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hh);
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.12);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { font-family: var(--fd); font-size: 22px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--btn-t); background: linear-gradient(135deg, var(--ac), var(--ac2)); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14px; font-weight: 600; letter-spacing: .5px; color: var(--muted); transition: color .2s ease; }
.nav a:hover { color: var(--text); }
.header__phone { font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--text); }
.header__phone:hover { color: var(--ac); }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ---------- 6. Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 100svh; padding: calc(var(--hh) + 48px) 0 72px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 24s ease-in-out infinite alternate; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--hs) 0%, var(--hss) 46%, rgba(0,0,0,.12) 100%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__content { max-width: 620px; padding-right: 24px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; margin-bottom: 22px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero__title { font-size: clamp(40px, 6vw, 68px); font-weight: 700; color: #fff; margin-bottom: 22px; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero__subtitle { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.92); margin-bottom: 34px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stat {
  min-width: 148px; padding: 16px 20px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__stat-num { font-family: var(--fd); font-size: 30px; font-weight: 700; color: #fff; }
.hero__stat-label { font-size: 12.5px; color: rgba(255,255,255,.8); letter-spacing: .4px; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 1; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.scroll-cue { position: absolute; bottom: 28px; right: 32px; z-index: 2; width: 30px; height: 50px; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; }
.scroll-cue::before { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 10px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }
/* ---------- 7. О нас ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about__visual { position: relative; }
.about__frame { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.18); aspect-ratio: 4/3; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; right: -18px; bottom: -22px;
  background: linear-gradient(135deg, var(--ac), var(--ac2)); color: var(--btn-t);
  padding: 20px 26px; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.about__badge-num { display: block; font-family: var(--fd); font-size: 34px; font-weight: 700; line-height: 1; }
.about__badge-text { font-size: 12.5px; font-weight: 600; letter-spacing: .5px; }
.about__text p { color: var(--muted); margin-bottom: 18px; }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: "\\2713"; flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--btn-t);
  background: linear-gradient(135deg, var(--ac), var(--ac2));
}

/* ---------- 8. Карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,.14); border-color: color-mix(in srgb, var(--ac) 50%, var(--line)); }
.card__icon {
  width: 58px; height: 58px; margin-bottom: 22px; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: color-mix(in srgb, var(--ac) 14%, transparent);
  transition: transform .3s ease, background .3s ease;
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); background: color-mix(in srgb, var(--ac) 24%, transparent); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card--feature::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ac), var(--ac2)); }
/* ---------- 9. Цены ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,.15); }
.plan--feature { border-color: var(--ac); box-shadow: 0 14px 40px color-mix(in srgb, var(--ac) 22%, transparent); position: relative; }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--btn-t); background: linear-gradient(135deg, var(--ac), var(--ac2));
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 22px; }
.plan__desc { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.plan__price { font-family: var(--fd); font-size: 40px; font-weight: 700; color: var(--ac); line-height: 1; }
.plan__price small { font-family: var(--fb); font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { display: grid; gap: 10px; margin: 22px 0 28px; flex: 1; }
.plan li { font-size: 14.5px; color: var(--muted); padding-left: 26px; position: relative; }
.plan li::before { content: "\\2713"; position: absolute; left: 0; color: var(--ac); font-weight: 700; }
/* ---------- 10. Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 16px; }
.gallery__item { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; }
.gallery__item:nth-child(1), .gallery__item:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 34px 18px 14px; color: #fff;
  font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
/* ---------- 11. Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 26px; position: relative; counter-increment: step;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.step::before {
  content: "0" counter(step);
  display: block; font-family: var(--fd); font-size: 42px; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- 12. Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.review:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.review__stars { color: var(--ac); font-size: 16px; letter-spacing: 2px; }
.review__text { color: var(--muted); font-size: 15px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-weight: 700; font-size: 17px; color: var(--btn-t);
  background: linear-gradient(135deg, var(--ac), var(--ac2));
}
.review__name { font-weight: 600; font-size: 15px; }
.review__date { font-size: 12.5px; color: var(--muted); }
/* ---------- 13. CTA ---------- */
.cta { padding: 96px 0; }
.cta__box {
  position: relative; border-radius: 28px; padding: 64px 56px; overflow: hidden;
  background: linear-gradient(135deg, var(--ac) 0%, var(--ac2) 100%);
}
.cta__box h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.cta__box p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 30px; max-width: 560px; }
.cta__deco {
  position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.cta__deco--2 { right: auto; left: -70px; bottom: -90px; top: auto; width: 220px; height: 220px; }
.cta .btn { background: rgba(255,255,255,.95); color: #1c1c1c; }
/* ---------- 14. Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 30px 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ac) 14%, transparent);
}
.contact-list b { display: block; font-size: 15.5px; }
.contact-list span { color: var(--muted); font-size: 14px; }
.form {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 34px;
  box-shadow: 0 18px 50px rgba(0,0,0,.1);
}
.form h3 { font-size: 24px; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ac);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 22%, transparent);
}
.field input.invalid, .field textarea.invalid { border-color: #e05252; }
.field__error { display: none; color: #e05252; font-size: 12.5px; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.form .btn { width: 100%; }
.form__note { font-size: 12px !important; color: var(--muted) !important; text-align: center; margin: 14px 0 0; }

/* ---------- 15. Футер ---------- */
.footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__about p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer h4 { font-size: 16px; margin-bottom: 18px; }
.footer__list { display: grid; gap: 11px; }
.footer__list a { color: var(--muted); font-size: 14.5px; transition: color .2s ease; }
.footer__list a:hover { color: var(--ac); }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.footer__social a:hover { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 12%, transparent); transform: translateY(-3px); }
.footer__bottom {
  border-top: 1px solid var(--line); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
/* ---------- 16. Модалка / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility .3s ease; }
.modal.open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); }
.modal__card {
  position: relative; z-index: 1; width: 100%; max-width: 760px;
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
  transform: scale(.94) translateY(14px); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.modal.open .modal__card { transform: none; }
.modal__card img { width: 100%; height: 340px; object-fit: cover; }
.modal__bar { padding: 16px 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.modal__close:hover { background: rgba(0,0,0,.8); }
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 300;
  transform: translate(-50%, 24px);
  display: flex; align-items: center; gap: 12px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 22px; font-size: 15px; font-weight: 500;
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast::before { content: "\\2713"; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--btn-t); background: linear-gradient(135deg, var(--ac), var(--ac2)); }
/* ---------- 17. Появление при скролле ---------- */
[data-reveal] { opacity: 0; transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="left"] { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="zoom"] { transform: scale(.94); }
.revealed { opacity: 1 !important; transform: none !important; }
/* ---------- 18. Адаптив ---------- */
@media (max-width: 991px) {
  .section { padding: 72px 0; }
  .about, .contacts { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: var(--hh); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .menu-open .nav { max-height: 420px; }
  .nav a { width: 100%; padding: 15px 24px; font-size: 16px; border-top: 1px solid var(--line); }
  .header__phone { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding-top: calc(var(--hh) + 24px); }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cta__box { padding: 44px 28px; }
  .modal__card img { height: 210px; }
  .form { padding: 24px; }
  .about__badge { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
