/* ============================================================
   Валеев Руслан — TEST4 — точное воссоздание стиля drbulat.ru.
   По детальному аудиту исходников:
   - Акцент: teal #42a5b5 / darken #3c99a8 (НЕ зелёный из темы)
   - Текст: графит #494a51 (не чёрный)
   - Заголовки: Raleway Medium(500), letter-spacing -0.05em
   - Body/UI: Inter
   - CTA: белая кнопка с teal-текстом + бегущий блик, при
     ховере заливается teal (инверсия)
   - Единый радиус ~10px, очень мягкие широкие тени
   - Широкий воздушный контейнер, коралловые номера #ec6666
   - «Дышащие» точки, появление секций снизу вверх
   ============================================================ */

:root {
  --main: #42a5b5;
  --main-dark: #3c99a8;
  --text: #494a51;
  --text-soft: #939499;
  --coral: #ec6666;
  --ink: #1c1c1c;
  --white: #ffffff;
  --bg-soft: #f8f8fa;
  --bg-soft2: #f5f8f9;
  --line: #d5dee3;

  --font-head: 'Raleway', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, Arial, sans-serif;

  --brad: 10px;
  --brad-lg: 16px;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --shadow-soft: 0 0 90px rgba(0,0,0,0.06);
  --shadow-card: 0 10px 40px -18px rgba(28,40,45,0.28);
  --shadow-float: 0 30px 80px -40px rgba(0,0,0,0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.modal-open { overflow: hidden; }

/* ---------- Demo Modal ---------- */
.demo-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.demo-modal__content { background: #fff; border-radius: var(--brad-lg); padding: clamp(32px, 5vw, 48px); max-width: 480px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.demo-modal__content h2 { font-family: var(--font-head); font-size: clamp(24px, 4vw, 32px); font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.demo-modal__content p { font-size: clamp(16px, 2vw, 18px); color: var(--text); margin-bottom: 24px; }
.demo-modal__content .md-btn { width: 100%; justify-content: center; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--main); color: #fff; }

.wrapper { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--main); z-index: 200; transition: width 0.1s linear; }

/* ---------- Section titles ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.md-head { margin-bottom: clamp(34px, 5vw, 56px); max-width: 760px; }
.md-main-title { font-size: clamp(30px, 3.65vw, 52px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; }
.md-main-title b { font-weight: 700; color: var(--main); }
.title__descr { margin-top: 16px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 400; color: var(--text-soft); line-height: 1.5; }

/* ---------- "Дышащие" точки ---------- */
.dots { display: flex; gap: 8px; margin-bottom: 22px; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--main); opacity: 0.35; animation: wave 2s linear infinite; }
.dots span:nth-child(2){ animation-delay: 0.25s; } .dots span:nth-child(3){ animation-delay: 0.5s; }
.dots span:nth-child(4){ animation-delay: 0.75s; } .dots span:nth-child(5){ animation-delay: 1s; }
@keyframes wave { 0%,100%{ opacity:0.3; transform:scale(0.85);} 50%{ opacity:1; transform:scale(1);} }

/* ---------- Buttons (инвертированная CTA + блик) ---------- */
.md-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; padding: 15px 32px; border-radius: var(--brad); cursor: pointer; border: none; overflow: hidden; background: var(--white); color: var(--main); box-shadow: var(--shadow-card); transition: background 0.3s var(--ease), color 0.3s var(--ease), padding 0.3s var(--ease), transform 0.3s var(--ease); min-height: 50px; }
.md-btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-20deg); animation: blick 3.2s linear infinite; }
.md-btn:hover { background: var(--main); color: #fff; padding-left: 40px; padding-right: 40px; }
.md-btn:hover::after { background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent); }
.md-btn-solid { background: var(--main); color: #fff; }
.md-btn-solid:hover { background: var(--main-dark); }
.md-btn .arrow { transition: transform 0.3s var(--ease); }
.md-btn:hover .arrow { transform: translate(3px, -3px); }
@keyframes blick { 0%{ left:-80%; } 60%,100%{ left:160%; } }
.md-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(66,165,181,0.45); outline-offset: 2px; }
.reasons__info .md-btn, .about .md-btn { align-self: flex-start; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s var(--ease); }
.header.scrolled { box-shadow: 0 10px 34px -22px rgba(28,40,45,0.4); }
.header-inner { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--main); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; flex: none; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--ink); }
.brand-sub { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); margin-top: 3px; }
.brand-phone { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--main-dark); white-space: nowrap; }
.brand-phone:hover { color: var(--main); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--text); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--main); border-radius: 2px; transition: width 0.3s var(--ease); }
.nav a:hover { color: var(--main-dark); }
.nav a:hover::after { width: 100%; }
.header-phone { font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap; }
.header-phone:hover { color: var(--main-dark); }
.header-cta { min-height: 44px; padding: 11px 24px; box-shadow: none; border: 1.5px solid var(--main); }

.burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; margin-left: auto; position: relative; z-index: 121; }
.burger span { width: 26px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0 0 0 auto; width: min(84vw, 350px); z-index: 110; background: #fff; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.25); display: flex; flex-direction: column; gap: 4px; padding: 96px 30px 32px; transform: translateX(100%); transition: transform 0.4s var(--ease); visibility: hidden; }
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a { font-family: var(--font-head); font-size: 18px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu .md-btn { margin-top: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- HERO ---------- */
.first { position: relative; margin: clamp(10px, 1vw, 16px); border-radius: var(--brad-lg); overflow: hidden; }
.first__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #2f3d42, #46707a 55%, #3c99a8); pointer-events: none; }
.first__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(0.92); }
.first__bg::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 40%), radial-gradient(circle at 80% 70%, rgba(66,165,181,0.35), transparent 45%); z-index: 1; }
.first__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,32,35,0.78) 0%, rgba(28,32,35,0.55) 55%, rgba(28,32,35,0.35) 100%); z-index: 2; }
.first__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(60px, 8vw, 110px); padding-bottom: clamp(60px, 8vw, 110px); }
.first__content { color: #fff; }
.first__content .dots span { opacity: 0.55; background: #a5dde6; }
.first__title { color: #fff; font-weight: 500; font-size: clamp(30px, 3.9vw, 54px); letter-spacing: -0.05em; line-height: 1.18; margin-bottom: 22px; }
.first__title b { font-weight: 700; color: #a5dde6; }
.first__text { color: rgba(255,255,255,0.82); font-size: clamp(15px, 1.5vw, 18px); font-weight: 400; max-width: 46ch; margin-bottom: 26px; }
.first__usp { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 24px; }
.first__usp li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: rgba(255,255,255,0.92); }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(66,165,181,0.35); position: relative; }
.check::after { content: ''; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid #cdeef2; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.first__form { background: #fff; border: 2px solid rgba(255,255,255,0.35); border-radius: var(--brad-lg); padding: clamp(24px, 2.6vw, 36px); box-shadow: var(--shadow-float); }
.first__form h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.first__form-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field input, .field select { font-family: var(--font-body); font-size: 15px; padding: 15px 18px; border: none; border-radius: var(--brad); background: var(--bg-soft); color: var(--ink); transition: box-shadow 0.2s; width: 100%; appearance: none; }
.field select { 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' stroke='%2342a5b5' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 42px; }
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 2px var(--main); }
.field input.invalid { box-shadow: 0 0 0 2px var(--coral); }
.error { font-size: 12.5px; color: var(--coral); font-weight: 500; min-height: 0; }
.form-btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 11.5px; color: var(--text-soft); text-align: center; margin-top: 12px; }
.form-success { font-size: 14px; color: var(--main-dark); font-weight: 600; text-align: center; margin-top: 10px; }
.form-error { font-size: 14px; color: var(--coral); font-weight: 600; text-align: center; margin-top: 10px; }

/* ---------- Services (фото-карточки + overlay) ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services__item { position: relative; min-height: 380px; border-radius: var(--brad-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); }
.services__bg { position: absolute; inset: 0; background: linear-gradient(160deg, #5a8a92, #37474d); transition: transform 0.6s var(--ease); }
.services__bg img { width: 100%; height: 100%; object-fit: cover; }
.services__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,40,45,0.15) 0%, rgba(28,40,45,0.85) 100%); transition: background 0.4s var(--ease); }
.services__item:hover .services__bg { transform: scale(1.06); }
.services__item:hover .services__bg::after { background: linear-gradient(180deg, rgba(73,74,81,0.5) 0%, rgba(28,40,45,0.92) 100%); }
.services__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px; color: #fff; z-index: 1; }
.services__content h3 { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }

.services__credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 12px; font-size: 10px; color: rgba(255,255,255,0.9); z-index: 2; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); }
.services__credit a { color: rgba(255,255,255,1); text-decoration: underline; }
.services__credit a:hover { color: #fff; opacity: 1; }
.services__reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease), margin 0.45s var(--ease); }
.services__item:hover .services__reveal, .services__item:focus .services__reveal, .services__item:focus-within .services__reveal { max-height: 160px; opacity: 1; margin-top: 12px; }
.services__reveal p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.services__price { display: inline-block; background: var(--main); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; }

.price-table { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: var(--bg-soft); border-radius: var(--brad-lg); padding: clamp(24px, 3vw, 40px); }
.price-col h4 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--main-dark); margin-bottom: 14px; }
.price-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-col li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.price-col li:last-child { border-bottom: none; }
.price-col span { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Process ---------- */
.process { background: var(--bg-soft); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process__item { background: #fff; border-radius: var(--brad-lg); padding: 30px 26px; box-shadow: var(--shadow-soft); }
.process__num { font-family: var(--font-head); font-size: 42px; font-weight: 700; color: var(--main); opacity: 0.4; line-height: 1; }
.process__item h3 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; }
.process__item p { color: var(--text); font-size: 14.5px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__photo { position: relative; }
.about__frame { aspect-ratio: 4/5; border-radius: var(--brad-lg); background: linear-gradient(160deg, #e8f3f5, #fff); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-soft); font-weight: 500; box-shadow: var(--shadow-card); overflow: hidden; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__badge { position: absolute; right: -16px; bottom: 30px; background: var(--main); color: #fff; border-radius: var(--brad); padding: 16px 22px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.about__badge strong { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.about__badge span { font-size: 13px; color: rgba(255,255,255,0.85); }
.about__text .lead { font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--ink); line-height: 1.45; margin: 6px 0 18px; font-family: var(--font-head); letter-spacing: -0.03em; }
.about__text > p { color: var(--text); margin-bottom: 16px; }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); font-weight: 700; color: var(--main-dark); line-height: 1; }
.stat-label { font-size: 13.5px; color: var(--text-soft); margin-top: 8px; }

/* ---------- Reasons (фото + коралловые номера + плашки) ---------- */
.reasons__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.reasons__info { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.reasons__sub { color: var(--text-soft); font-size: 16px; }
.reasons__list { display: flex; flex-direction: column; gap: 20px; }
.reasons__block { position: relative; min-height: 190px; display: flex; align-items: center; }
.reasons__img { width: 62%; height: 190px; border-radius: var(--brad-lg); background: linear-gradient(140deg, #5a8a92, #37474d); box-shadow: var(--shadow-card); }
.reasons__num { position: absolute; left: 54%; top: 22px; font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--coral); z-index: 2; }
.reasons__content { position: absolute; right: 0; bottom: 22px; width: 52%; background: #fff; border-radius: var(--brad); padding: 22px 24px; box-shadow: var(--shadow-float); }
.reasons__content h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.reasons__content p { color: var(--text); font-size: 14.5px; }

/* ---------- Get consultation ---------- */
.get__container { background: linear-gradient(135deg, #2f3d42, #3c99a8); border-radius: var(--brad-lg); padding: clamp(32px, 4vw, 60px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; color: #fff; position: relative; overflow: hidden; }
.get__container::before { content: ''; position: absolute; top: -120px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 65%); }
.get__info { position: relative; z-index: 1; max-width: 60ch; }
.get__eyebrow { display: inline-block; color: #a5dde6; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.get__info h2 { color: #fff; font-size: clamp(24px, 3.2vw, 40px); font-weight: 500; letter-spacing: -0.04em; margin-bottom: 14px; }
.get__info p { color: rgba(255,255,255,0.78); font-size: 16px; margin-bottom: 16px; }
.get__phone { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: #fff; }
.get__btn { position: relative; z-index: 1; }

/* ---------- BOOKING (форма внизу) ---------- */
.booking { padding: clamp(40px, 6vw, 80px) 0; background: var(--bg-soft2); }
.booking__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.booking .first__form { border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.booking__text .md-main-title { margin-bottom: 16px; }

/* ---------- CTA-блок в hero (виджет + кнопка) ---------- */
.first__cta-block { background: #fff; border-radius: var(--brad-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-float); max-width: 380px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.first__cta-block .md-btn { width: 100%; text-align: center; justify-content: center; }

/* ProDoctorov widgets */
.pd_widget_column { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pd_widget_column .pd_logo { margin-bottom: 4px; }
.pd_widget_column .pd_doctor_name { font-weight: 600; color: var(--main-dark); font-size: 15px; }
.pd_widget_column a:last-of-type { font-size: 13px; color: var(--text-soft); border-bottom: 1px dashed var(--line); }

/* ---------- Reviews widget ---------- */
.reviews__widget { max-width: 800px; margin: 0 auto; }
#pd_widget_big { background: #fff; border-radius: var(--brad-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card); }
.pd_rate_header { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.pd_rate_new { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--main); font-weight: 500; }
.pd_read_all { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--main-dark); font-weight: 600; }
#pd_powered_by { display: block; margin-top: 20px; }
#pd_powered_by .pd_logo { width: 100px; opacity: 0.7; }
#pd_powered_by .pd_logo:hover { opacity: 1; }

/* ---------- Certificates ---------- */
.certs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--brad-lg); padding: 26px; position: relative; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cert::before { content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: var(--main); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.cert:hover::before { transform: scaleY(1); }
.cert__year { display: inline-block; background: #e8f3f5; color: var(--main-dark); font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }
.cert h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.cert p { color: var(--text); font-size: 14px; }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.contact { background: var(--bg-soft); border-radius: var(--brad-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.contact__label { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.contact a, .contact > span:last-child { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); }
.contact a:hover { color: var(--main-dark); }
.map-placeholder { height: clamp(220px, 34vw, 380px); border-radius: var(--brad-lg); background: linear-gradient(135deg, #e8f3f5, #f8f8fa); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-soft); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: #2a2e33; color: #fff; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; font-family: var(--font-head); font-weight: 700; }
.footer-brand span { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ---------- Fixed side + to-top ---------- */
.side-fixed { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.side-link { width: 40px; height: 40px; border-radius: 10px 0 0 10px; background: var(--main); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; transition: background 0.25s, width 0.25s var(--ease); }
.side-link:hover { background: var(--main-dark); width: 46px; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--main); color: #fff; border: none; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--main-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-phone, .header-cta { display: none; }
  .burger { display: flex; }
  .first__inner { grid-template-columns: 1fr; }
  .first__form { max-width: 460px; }
  .first__cta-block { max-width: 460px; margin: 0 auto; }
  .booking__inner { grid-template-columns: 1fr; text-align: center; }
  .booking__text { margin-bottom: 20px; }
  .services__grid, .certs__grid { grid-template-columns: 1fr 1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 400px; }
  .reasons__grid { grid-template-columns: 1fr; }
  .reasons__info { position: static; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .side-fixed { display: none; }
}
@media (max-width: 600px) {
  .services__grid, .certs__grid, .process__grid, .price-table, .contacts__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .reasons__img { width: 100%; }
  .reasons__content { position: static; width: 100%; margin-top: -30px; margin-left: auto; margin-right: 12px; width: calc(100% - 24px); }
  .reasons__num { left: auto; right: 22px; }
  .footer-meta { text-align: left; }
  .get__container { flex-direction: column; align-items: flex-start; }
  .get__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .md-btn::after, .dots span { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
