/*
Theme Name: Rinat Massage
Theme URI: https://rinatmassage.ca
Author: Anton
Description: Тема лендинга «Лечебный массаж спины в Maple». Один лендинг, без билдеров и лишних плагинов.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rinatmassage
*/

/* ---------- База ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f6f7f8;
  color: #0c1218;
  font-family: 'Golos Text', sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* під sticky-бар */
}
body.no-sticky { padding-bottom: 0; }
a { color: #11407e; }
a:hover { color: #0c2f5e; }
img { max-width: 100%; height: auto; }

h1, h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 18px;
}
h1 { font-size: clamp(40px, 7vw, 58px); line-height: 1.02; letter-spacing: .005em; margin-bottom: 16px; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.1; }
.h2--green { color: #12a050; margin-top: -14px; }

[id] { scroll-margin-top: 20px; }

/* ---------- Каркас секцій ---------- */
.sec { border-bottom: 2px solid #0c1218; }
.sec--white { background: #fff; }
.sec--dark { background: #0c1218; color: #fff; }
.wrap { max-width: 960px; margin: 0 auto; padding: 34px 20px 32px; }
.narrow { max-width: 720px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.muted { color: #495562; }
.meta { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #6b7683; }

/* ---------- Топбар ---------- */
.topbar { background: #0c1218; color: #fff; }
.topbar__in { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar__brand { font: 600 14px 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.topbar__right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar__hours { font: 400 12px 'IBM Plex Mono', monospace; color: #8fa0b3; }
.topbar__wa { font: 600 13px 'Golos Text', sans-serif; color: #12c765; text-decoration: none; }
.topbar__wa:hover { color: #12c765; text-decoration: underline; }

/* ---------- Кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; text-decoration: none; box-sizing: border-box;
  font-family: 'Golos Text', sans-serif; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn--green { min-height: 54px; background: #12a050; color: #fff; font-weight: 600; font-size: 16.5px; }
.btn--green:hover { background: #0e8843; color: #fff; }
.btn--green.btn--mid { min-height: 52px; font-size: 16px; max-width: 420px; margin-top: 18px; }
.btn--outline { min-height: 46px; border: 1.5px solid #0c1218; color: #0c1218; font-weight: 500; font-size: 14.5px; flex: 1; }
.btn--outline:hover { background: #0c1218; color: #fff; }
.btn--outline-dark { min-height: 54px; border: 1.5px solid #3a4757; color: #fff; font-weight: 500; font-size: 15px; }
.btn--outline-dark:hover { background: #fff; color: #0c1218; }

/* ---------- Hero ---------- */
.hero { display: flex; gap: 36px; flex-wrap: wrap; align-items: flex-start; padding-top: 36px; }
.hero__main { flex: 1 1 400px; min-width: 300px; }
.hero__side { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.hero__lead { font-size: 16.5px; color: #2b3542; margin-bottom: 18px; text-wrap: pretty; }
.stats { display: flex; gap: 14px; margin-bottom: 18px; max-width: 420px; }
.stat { flex: 1; border: 1.5px solid #0c1218; border-radius: 4px; padding: 10px 12px; }
.stat__num { font: 600 28px 'Oswald', sans-serif; }
.stat__cap { font-size: 12.5px; line-height: 1.35; color: #495562; }
.cta-stack { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.cta-row { display: flex; gap: 10px; }
.hero__urgent { margin: 16px 0 0; font-size: 14.5px; color: #2b3542; }
.hero__geo { margin: 8px 0 0; }

/* ---------- Реальні фото ---------- */
.photo { display: block; width: 100%; border-radius: 4px; }
.photo--main { height: 300px; object-fit: cover; border: 1.5px solid #0c1218; box-sizing: border-box; }
.photo--portrait { height: 240px; object-fit: cover; object-position: 50% 20%; border: 1.5px solid #0c1218; box-sizing: border-box; }
.photo--room { height: 150px; object-fit: cover; border: 1px solid #c9d0d6; box-sizing: border-box; }
.shot-img { flex: none; height: 300px; width: auto; border-radius: 4px; border: 1px solid #c9d0d6; box-sizing: border-box; }

/* ---------- Фото-плейсхолдери ---------- */
.ph {
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #e8ebee 0 10px, #f1f3f5 10px 20px);
  display: flex; align-items: flex-end; padding: 12px; box-sizing: border-box;
}
.ph--main { height: 300px; border: 1.5px solid #0c1218; }
.ph--portrait { height: 240px; border: 1.5px solid #0c1218; }
.ph--room { height: 150px; border: 1px solid #c9d0d6; }
.ph__cap { font: 400 11px 'IBM Plex Mono', monospace; color: #6b7683; }

/* ---------- Форма ---------- */
.rform-card { border: 1.5px solid #0c1218; border-radius: 4px; background: #fff; padding: 16px; }
.rform-card__title { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.rform { display: flex; flex-direction: column; gap: 8px; }
.rform input[type="text"], .rform input[type="tel"] {
  min-height: 44px; border: 1px solid #c9d0d6; border-radius: 4px; padding: 0 12px;
  font: 400 15px 'Golos Text', sans-serif; color: #0c1218; background: #fff; box-sizing: border-box; width: 100%;
}
.rform button {
  min-height: 48px; background: #0c1218; color: #fff; border: 0; border-radius: 4px;
  font: 600 15px 'Golos Text', sans-serif; cursor: pointer;
}
.rform button:hover { background: #26303c; }
.rform .hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.rform__ok { border: 1.5px solid #12a050; border-radius: 4px; background: #f2fbf6; color: #0e8843; padding: 12px 14px; font-weight: 500; font-size: 14.5px; margin-bottom: 10px; }

/* ---------- Симптоми ---------- */
ul.symptoms { list-style: none; margin: 0; padding: 0; max-width: 720px; }
ul.symptoms li { padding: 12px 0; border-top: 1px solid #dfe3e6; font-size: 15.5px; }
ul.symptoms li:last-child { border-bottom: 1px solid #dfe3e6; }
.note-blue { margin-top: 16px; font-weight: 500; font-size: 16.5px; color: #11407e; max-width: 720px; }

/* ---------- Механізм ---------- */
.mech { display: flex; gap: 10px; flex-wrap: wrap; }
.mech__card { flex: 1 1 280px; background: #11407e; color: #fff; border-radius: 4px; padding: 18px 16px; }
.mech__num { font: 600 24px/1 'Oswald', sans-serif; color: #7fa3d4; margin-bottom: 10px; }
.mech__card h3 { font: 600 16px 'Golos Text', sans-serif; margin: 0 0 6px; color: #fff; }
.mech__card p { font-size: 14px; line-height: 1.55; color: #c6d4e8; margin: 0; }

/* ---------- Гриж-блок ---------- */
.callout-blue { border: 1.5px solid #11407e; border-radius: 4px; padding: 14px 16px; margin: 0 0 12px; max-width: 720px; box-sizing: border-box; }
.callout-blue p { margin: 0; font-weight: 500; color: #11407e; }
.body-col { max-width: 720px; }
.body-col p { color: #2b3542; line-height: 1.6; }

/* ---------- Це не спа ---------- */
.vs { max-width: 720px; }
.vs__item { padding: 14px 0; border-top: 1px solid #c9d0d6; }
.vs__item:last-child { border-bottom: 1px solid #c9d0d6; }
.vs__item h3 { font: 600 15px 'Golos Text', sans-serif; margin: 0 0 4px; }
.vs__item p { font-size: 14.5px; color: #495562; margin: 0; }

/* ---------- Мастер ---------- */
.master { display: flex; gap: 32px; flex-wrap: wrap; }
.master__bio { flex: 1 1 380px; min-width: 300px; }
.master__photos { flex: 1 1 280px; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
.edu { border: 1px solid #c9d0d6; border-radius: 4px; padding: 14px 16px; background: #f6f7f8; }
.edu__label { font: 500 11px 'IBM Plex Mono', monospace; color: #6b7683; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.edu p { font-size: 14px; line-height: 1.65; color: #2b3542; margin: 0; }

/* ---------- Соцдоказ ---------- */
.proof-sub { font-size: 14px; color: #495562; margin: -12px 0 18px; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shot { flex: none; width: 220px; height: 300px; border: 1px solid #c9d0d6; }
.quotes { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; max-width: 720px; }
.quotes p { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.4; }
.quote--blue { color: #11407e; }
.proof-tail { margin-top: 16px; font-size: 14px; color: #495562; }

/* ---------- Ціни ---------- */
.prices table { border-collapse: collapse; width: 100%; max-width: 720px; font-size: 15px; }
.prices td { padding: 12px 0; border: 0; border-top: 1px solid #c9d0d6; vertical-align: top; }
.prices tr:last-child td { border-bottom: 1px solid #c9d0d6; }
.prices td:last-child { font: 500 15px 'IBM Plex Mono', monospace; white-space: nowrap; text-align: right; }
.prices { margin: 0; }
.prices-note { margin-top: 14px; color: #2b3542; max-width: 720px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq__item { padding: 14px 0; border-top: 1px solid #c9d0d6; }
.faq__item:last-child { border-bottom: 1px solid #c9d0d6; }
.faq__item h3 { font: 600 15.5px 'Golos Text', sans-serif; margin: 0 0 5px; }
.faq__item p { font-size: 14.5px; color: #495562; margin: 0; }

/* ---------- Фінальна CTA ---------- */
.final .wrap { padding: 40px 20px 36px; }
.final h2 { font-size: clamp(30px, 5vw, 42px); line-height: 1.05; margin-bottom: 12px; }
.final__lead { color: #b8c2cd; font-size: 16px; max-width: 640px; margin-bottom: 20px; }
.final__ctas { display: flex; gap: 10px; flex-wrap: wrap; max-width: 640px; }
.final__ctas .btn--green { flex: 1 1 240px; font-size: 16px; }
.final__ctas .btn--outline-dark { flex: 1 1 160px; }
.final__urgent { margin: 18px 0 0; font-size: 14.5px; color: #b8c2cd; }
.footerline { margin-top: 32px; padding-top: 18px; border-top: 1px solid #26303c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 12.5px/1.6 'IBM Plex Mono', monospace; color: #6b7683; }

/* ---------- Sticky-бар ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #0c1218; display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; box-shadow: 0 -4px 16px rgba(12, 18, 24, .25);
}
.sticky-bar .btn--wa { flex: 1; min-height: 46px; background: #12a050; color: #fff; font-weight: 600; font-size: 15px; }
.sticky-bar .btn--wa:hover { background: #0e8843; color: #fff; }
.sticky-bar .btn--tel { flex: none; min-height: 46px; padding: 0 18px; border: 1.5px solid #3a4757; color: #fff; font-weight: 500; font-size: 14px; }
.sticky-bar .btn--tel:hover { background: #fff; color: #0c1218; }

/* ---------- Адмінка/редактор: щоб секції читались ---------- */
.editor-styles-wrapper .sec { border-bottom: 2px solid #0c1218; }
