/*
Theme Name: Зеркала красоты — Тульская
Theme URI: https://zerkalastudio.ru
Author: Зеркала красоты
Author URI: https://zerkalastudio.ru
Description: Главная страница центра медицинской косметологии у метро Тульская. Фото и контакты управляются через Advanced Custom Fields PRO (Настройки сайта в админке).
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zerkala-tulskaya
*/

/* ============ TOKENS ============ */
:root{
  --bg:      #FAF9F5;
  --surface: #FFFFFF;
  --tint:    #EEF2ED;
  --ink:     #1C231F;
  --ink-soft:#5B655D;
  --green:      #2F4A3D;
  --green-dark: #20332A;
  --green-pale: #DCE6DE;
  --accent:  #C98B6B;
  --line:    rgba(28,35,31,0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 4px;
  --container: 1180px;
  --gap: 24px;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-font-smoothing:antialiased; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{ font-family:var(--font-display); margin:0; color:var(--ink); }
p{ margin:0; }
ul{ list-style:none; margin:0; padding:0; }
.zk-no-scroll{ overflow:hidden; }

.zk-section{
  padding:72px 24px;
  max-width:var(--container);
  margin:0 auto;
}
.zk-section--tint{
  max-width:none;
  background:var(--tint);
}
.zk-section--tint > *{
  max-width:var(--container);
  margin-left:auto;
  margin-right:auto;
}
.zk-section__head{
  max-width:640px;
  margin:0 0 40px;
}
.zk-eyebrow{
  font-family:var(--font-body);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--green);
  margin:0 0 12px;
}
.zk-section__head h2{
  font-size:clamp(1.7rem, 3vw, 2.4rem);
  font-weight:560;
  line-height:1.15;
}

/* Buttons */
.zk-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  padding:16px 28px;
  border-radius:var(--radius);
  border:1px solid transparent;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  cursor:pointer;
}
.zk-btn--primary{ background:var(--green); color:#fff; }
.zk-btn--primary:hover{ background:var(--green-dark); transform:translateY(-1px); }
.zk-btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.zk-btn--ghost:hover{ border-color:var(--ink); }
.zk-btn--light{ background:#fff; color:var(--green-dark); }
.zk-btn--light:hover{ background:var(--green-pale); }
.zk-btn--sm{ padding:10px 18px; font-size:14px; }
.zk-btn:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }

.zk-cta-row{ display:flex; flex-wrap:wrap; gap:14px; }

.zk-link{
  font-weight:700;
  text-decoration:none;
  color:var(--green);
  border-bottom:1px solid transparent;
}
.zk-link:hover{ border-color:var(--green); }

/* Photo / placeholder */
.zk-photo{
  width:100%; height:100%;
  object-fit:cover;
  border-radius:var(--radius);
  background:var(--green-pale);
}
.zk-photo--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:16px;
  min-height:160px;
  background:linear-gradient(150deg, var(--green-pale), var(--tint));
  color:var(--green-dark);
  font-family:var(--font-body);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.02em;
}

/* ============ HEADER ============ */
.zk-header{
  position:sticky; top:0; z-index:40;
  background:rgba(250,249,245,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.zk-header__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  row-gap:12px;
  gap:24px;
}
.zk-logo{
  font-family:var(--font-display);
  font-weight:680;
  font-size:20px;
  text-decoration:none;
  color:var(--ink);
  white-space:nowrap;
}

.zk-header__actions{ display:flex; align-items:center; gap:16px; }
.zk-phone{ font-weight:700; text-decoration:none; font-size:14.5px; white-space:nowrap; }

/* ============ HERO ============ */
.zk-hero{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
  padding-top:56px;
}
.zk-hero__title{
  font-size:clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight:560;
  line-height:1.05;
  letter-spacing:-0.01em;
  margin:0 0 20px;
}
.zk-hero__subtitle{
  font-size:clamp(1rem, 1.4vw, 1.15rem);
  color:var(--ink-soft);
  max-width:52ch;
  margin:0 0 32px;
}
.zk-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin-top:32px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.zk-badges li{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:0.02em;
  color:var(--ink-soft);
  text-transform:uppercase;
}
.zk-hero__media{
  aspect-ratio:4/5;
  border-radius:8px;
  overflow:hidden;
}
.zk-hero__media .zk-photo,
.zk-hero__media .zk-photo--placeholder{ border-radius:8px; min-height:100%; }

/* ============ CARDS / DIRECTIONS ============ */
.zk-cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--gap);
}
.zk-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.zk-card__media{ aspect-ratio:4/3; }
.zk-card__media .zk-photo,
.zk-card__media .zk-photo--placeholder{ border-radius:0; min-height:100%; }
.zk-card__body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.zk-card__body h3{ font-size:1.2rem; font-weight:560; }
.zk-card__body p{ color:var(--ink-soft); font-size:14.5px; flex:1; }

/* ============ ADVANTAGES ============ */
.zk-advantages{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px 28px;
}
.zk-advantage__num{
  display:block;
  font-family:var(--font-display);
  font-size:14px;
  font-weight:600;
  color:var(--accent);
  margin-bottom:10px;
}
.zk-advantage h3{ font-size:1.1rem; font-weight:600; margin-bottom:8px; }
.zk-advantage p{ color:var(--ink-soft); font-size:14.5px; }

/* ============ PROMO ============ */
.zk-promo{
  border-radius:8px;
  background:var(--green);
  color:#fff;
  padding:64px 40px;
  text-align:center;
  background-size:cover;
  background-position:center;
  position:relative;
}
.zk-promo--has-image::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(32,51,42,0.55), rgba(32,51,42,0.8));
  border-radius:8px;
}
.zk-promo__content{ position:relative; max-width:560px; margin:0 auto; }
.zk-promo h2{ color:#fff; font-size:clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom:16px; }
.zk-promo p{ opacity:0.9; margin-bottom:28px; }

/* ============ GALLERY ============ */
.zk-gallery{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  grid-auto-rows:200px;
  gap:14px;
}
.zk-gallery__item{ border-radius:6px; overflow:hidden; }
.zk-gallery__item .zk-photo,
.zk-gallery__item .zk-photo--placeholder{ border-radius:6px; min-height:100%; }
.zk-gallery__item:nth-child(3n+1){ grid-row:span 2; }

/* ============ REVIEWS ============ */
.zk-reviews{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:var(--gap);
}
.zk-review{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  padding:26px;
}
.zk-review__stars{ color:var(--accent); letter-spacing:2px; margin-bottom:14px; }
.zk-review__text{ font-size:15px; color:var(--ink); margin-bottom:20px; }
.zk-review__name{ display:block; font-weight:700; font-size:14.5px; }
.zk-review__level{ display:block; font-size:12.5px; color:var(--ink-soft); }
.zk-reviews__more{ text-align:center; margin-top:32px; }

/* ============ CONTACTS ============ */
.zk-contacts{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:var(--gap);
  align-items:stretch;
}
.zk-contacts__info{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:8px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:28px;
}
.zk-contacts__info dl{ display:flex; flex-direction:column; gap:18px; }
.zk-contacts__info dt{
  font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--ink-soft); margin-bottom:4px;
}
.zk-contacts__info dd{ margin:0; font-size:16px; font-weight:600; }
.zk-contacts__info a{ text-decoration:none; }
.zk-contacts__map{
  min-height:340px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
}
.zk-contacts__map iframe{ width:100%; height:100%; display:block; min-height:340px; }

/* ============ FOOTER ============ */
.zk-footer{ background:var(--green-dark); color:#EDEFEC; margin-top:40px; }
.zk-footer__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:64px 24px 40px;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:32px;
}
.zk-logo--footer{ color:#fff; font-size:20px; }
.zk-footer__brand p{ margin-top:12px; color:rgba(237,239,236,0.7); font-size:14px; max-width:32ch; }
.zk-footer__title{
  display:block; font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:0.08em;
  color:rgba(237,239,236,0.55); margin-bottom:16px;
}
.zk-footer__list{ display:flex; flex-direction:column; gap:12px; font-size:14.5px; }
.zk-footer__list a{ text-decoration:none; color:#EDEFEC; }
.zk-footer__list a:hover{ text-decoration:underline; }
.zk-footer__contacts p{ font-size:14.5px; margin-bottom:10px; }
.zk-footer__contacts a{ text-decoration:none; }
.zk-footer__bottom{
  border-top:1px solid rgba(237,239,236,0.15);
  padding:20px 24px;
  text-align:center;
  font-size:13px;
  color:rgba(237,239,236,0.55);
}

/* ============ RESPONSIVE ============ */
@media (min-width:900px){
  .zk-hero{ grid-template-columns:1.1fr 0.9fr; gap:56px; padding-top:72px; }
}

@media (max-width:960px){
  .zk-cards{ grid-template-columns:repeat(2, 1fr); }
  .zk-advantages{ grid-template-columns:repeat(2, 1fr); }
  .zk-reviews{ grid-template-columns:repeat(2, 1fr); }
  .zk-gallery{ grid-template-columns:repeat(3, 1fr); grid-auto-rows:170px; }
  .zk-footer__inner{ grid-template-columns:1fr 1fr; }
}

@media (max-width:760px){
  .zk-header__inner{ padding:14px 20px; }
  .zk-header__actions{ gap:10px; }
  .zk-phone{ font-size:13px; }

  .zk-section{ padding:56px 20px; }
  .zk-cards{ grid-template-columns:1fr; }
  .zk-advantages{ grid-template-columns:1fr; }
  .zk-reviews{ grid-template-columns:1fr; }
  .zk-gallery{ grid-template-columns:repeat(2, 1fr); grid-auto-rows:150px; }
  .zk-gallery__item:nth-child(3n+1){ grid-row:span 1; }
  .zk-contacts{ grid-template-columns:1fr; }
  .zk-contacts__map{ min-height:280px; }
  .zk-contacts__map iframe{ min-height:280px; }
  .zk-footer__inner{ grid-template-columns:1fr; padding:48px 20px 32px; }
  .zk-promo{ padding:48px 24px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .zk-btn{ transition:none; }
}
