/*
Theme Name: Красная Шапочка — клуб
Description: Дочерняя тема Lotos: фирменный красно-чёрно-белый стиль, логотип и удобные настройки клуба. Исходные страницы и плагины сохранены.
Version: 1.3.0
Template: lotos
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: ksh
License: GNU General Public License v2 or later
*/

/* Brand colors match the uploaded original red-and-black logo. Keep legacy
   --green as an alias: the parent theme uses it for every accent. */
:root {
  --bg: #09090b;
  --surface: #111114;
  --green: #fa0000;
  --text: #f7f7f8;
  --muted: #b7b7bc;
  --line: #48242a;
  --ksh-red: #fa0000;
  --ksh-red-button: #bd1024;
  --ksh-red-hover: #df1028;
  --ksh-black: #09090b;
}
body { background: var(--bg); color: var(--text); }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible {
  outline-color: #fc2931;
}
::selection { color:#fff; background:#a6051e; }
.demo-note { background:#230b12; color:#e6d9dc; border-bottom:1px solid #511825; }
.skip-link { background:#d60921; color:#fff; }

/* Retain the original responsive navigation. The logo replaces only the
   hardcoded Lotos wordmark, never the existing menu or contact controls. */
.site-header, .home .site-header { background:#070709; border-bottom:1px solid #4c111b; }
.header-inner { min-height:112px; gap:1.25rem; }
.brand-block { flex:0 0 auto; width:148px; }
.ksh-brand { display:inline-flex; align-items:center; justify-content:flex-start; width:100%; max-width:148px; min-height:86px; text-decoration:none; }
.ksh-logo { display:block; width:auto; max-width:136px; max-height:106px; height:auto; object-fit:contain; }
.nav-links a { color:#eeeeef; transition:color .2s ease; }
.nav-links a:hover, .nav-links .current-menu-item>a, .nav-links .current_page_item>a { color:#ff3d48; }
.header-phone { color:#f7f7f8; }
.header-phone:hover { color:#ff505b; }
.mobile-nav { background:#0a080b; border-top:1px solid #3c1720; }
.menu-toggle span { background:#f00016; }
.mobile-nav .mobile-contact-link { color:#ff414e; border-top-color:#4a1c25; }

/* Buttons: crimson for legible white text, scarlet for outlines/hover details. */
.button { color:#fff; background:var(--ksh-red-button); border-color:#ca1b30; box-shadow:0 0 22px #fa000021; }
.button:hover { color:#fff; background:var(--ksh-red-hover); box-shadow:0 0 30px #fa00003e; }
.button:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.text-link { color:#ff3e48; border-bottom-color:#ff3e4860; }
.text-link:hover { color:#fff; border-color:#ff464c; }
.social, .social--whatsapp, .social--telegram { background:#321018; border:1px solid #6e2630; color:#fff; }
.social:hover { background:#671122; border-color:#e21b2e; transform:translateY(-2px); }
.social--pending { opacity:.53; }

/* Existing homepage layout stays exactly where it was. */
.hero { background:#0a0a0e; }
.hero-media::after {
  background:linear-gradient(180deg,#08030735 0%,#13060a6d 45%,#09090b 100%),linear-gradient(90deg,#050305a8,#11060b26,#050305a8);
}
.hero-kicker { color:#ff3542; }
.hero h1 { color:#fff; }
.hero-note { color:#e1d9dd; }
.hero-price, .hero-price span { color:#faf7f8; }
.video-toggle { background:#1f0c128a; border-color:#b078805c; }

.section-title::before, .section-title::after { background:#e70a21; opacity:.74; }
.section-title em, .page-title em, h1 em, h2 em { color:#fa2335; }
.section-intro { color:#c6bdc0; }
.master__circle {
  border:1px solid #b52136;
  color:#ff2438;
  background:radial-gradient(circle at 50% 30%,#31121b,#121015 72%);
}
.master:hover .master__circle { border-color:#fa2438; box-shadow:0 0 25px #fa000029; }
.master__caption { color:#c2b4b7; }
.master__name { color:#fafafa; }
.section--programs { background:linear-gradient(180deg,#09090b,#170d13 48%,#09090b); }
.programs .sp-easy-accordion .sp-ea-single,
.program-fallback { background:#111114!important; border-color:#51212b!important; }
.programs .sp-easy-accordion .sp-ea-single:hover, .program-fallback:hover { border-color:#ae283d!important; }
.programs .ea-header a, .program-fallback summary { color:#f7f7f8!important; }
.programs .ea-header a:hover, .program-fallback summary:hover { color:#fff!important; }
.programs .ea-header a:after, .program-fallback summary:after { background:#1c0d13; color:#fff; }
.program-title { color:#f6f5f6; }
.program-badge { color:#ff5360; }
.program-meta { color:#c5bec0; }
.program-meta svg { color:#ff3949; }
.program-content, .program-content p { color:#e4dee1; }
.faq-content { color:#e8e4e6; }
.salon-gallery video { background:#000; }

/* Footer, contact form, WhatsApp/Telegram dialog. */
.site-footer { border-top:1px solid #53202b; background:#0a090c; }
.contacts-grid h3 { color:#ff4050; }
.contacts-grid p { color:#ded7da; }
.contact-phone { color:#fafafa; }
.contact-phone:hover { color:#ff404c; }
.footer-bottom { border-top:1px solid #47262b; color:#b2a9ac; }
.ksh-footer-brand { display:inline-flex; flex:none; align-items:center; justify-content:center; max-width:130px; min-width:90px; }
.ksh-logo--footer { max-width:110px; max-height:96px; }
.ksh-contact-extras { display:flex; flex-wrap:wrap; gap:1rem 2rem; margin:1.4rem 0 2.5rem; }
.ksh-contact-link { color:#ff4855; text-decoration:underline; text-decoration-color:#ff485566; text-underline-offset:5px; }
.ksh-contact-link:hover { color:#fff; }
.call-bar { background:#100a0eee; border-top:1px solid #e3112b; color:#fff; }
.contact-dialog { border:1px solid #78303a; background:radial-gradient(ellipse at top,#341019 0%,#100b0f 66%); color:#fff; }
.contact-dialog::backdrop { background:#000c; }
.contact-dialog__close { border-color:#782e3c; background:#270f16; color:#fff; }
.contact-dialog__close:hover { background:#4d1623; }
.contact-dialog__eyebrow, .contact-dialog__phone svg, .contact-dialog__phone:hover { color:#ff3a49; }
.contact-dialog p { color:#d0c2c6; }
.contact-dialog__socials .social { color:#fff; }
.entry-content { color:#e5dfe0; }
.muted { color:#ada2a6; }

/* Smaller screens: logo stays readable, navigation retains parent breakpoints. */
@media(max-width:1150px) {
  .header-inner { gap:1rem; }
  .brand-block { width:135px; }
  .ksh-brand { max-width:135px; }
  .ksh-logo { max-width:125px; max-height:94px; }
}
@media(max-width:950px) {
  .header-inner { min-height:98px; }
}
@media(max-width:600px) {
  .header-inner { min-height:96px; }
  .brand-block { width:116px; max-width:calc(100% - 120px); }
  .ksh-brand { max-width:115px; min-height:76px; }
  .ksh-logo { max-width:108px; max-height:82px; }
  .ksh-logo--footer { max-width:95px; max-height:82px; }
  .ksh-contact-extras { flex-direction:column; gap:.8rem; }
}
@media(max-width:390px) {
  .brand-block { width:104px; }
  .ksh-logo { max-width:99px; max-height:76px; }
  .header-actions { gap:.35rem; }
}

/* v1.3 master cards are loaded from assets/master-cards.css. */

/* Prevent the programs/FAQ content from growing wider than a narrow mobile viewport. */
#main,.section,.container,.container--narrow,.programs,.faq-content,.entry-content,.ksh-masters-grid {min-width:0;max-width:100%}
.programs #lotos-programs,.programs .sp-easy-accordion,.programs .sp-ea-one,.programs .sp-ea-single,.programs .ea-card,
.programs .ea-header,.program-fallback {
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
}
.programs .sp-ea-single,.programs .ea-card,.program-fallback {width:100%!important;float:none!important;margin-left:0!important;margin-right:0!important}
.programs .ea-header a,.program-fallback summary {box-sizing:border-box!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
.program-meta {min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.program-meta>span {min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.programs .ea-body,.program-content,.faq-content {min-width:0;max-width:100%;overflow-wrap:anywhere}
.programs .ea-body img,.programs .ea-body video,.entry-content img,.entry-content video {max-width:100%;height:auto}
.entry-content iframe {max-width:100%}
.entry-content pre,.entry-content table,.program-content table {display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:600px) {
  .programs .sp-easy-accordion .ea-header a,.program-fallback summary {padding-right:3.35rem!important;padding-left:1rem!important}
  .programs .sp-easy-accordion .ea-body,.program-content {padding-left:1rem!important;padding-right:1rem!important}
  .program-meta {gap:.75rem .9rem;font-size:.87rem}
  .programs .ea-header a::after,.program-fallback summary::after {right:.7rem}
}

/* v1.2 — hero: natural word wrapping, editable city (no price). */
.ksh-hero-city {
  margin:0;
  font-family:var(--sans,Arial,sans-serif);
  color:#f4e8eb;
  font-size:clamp(1.02rem,2vw,1.25rem);
  font-weight:500;
  line-height:1.45;
  letter-spacing:.025em;
  white-space:normal;
  text-align:center;
}
/* A separate manual play button is shown when muted mobile autoplay is blocked. */
.ksh-video-play {
  position:absolute;
  z-index:10;
  right:1.25rem;
  bottom:1.25rem;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid #e92945;
  border-radius:50%;
  background:#850f25dd;
  color:#fff;
  font-size:1.3rem;
  cursor:pointer;
  box-shadow:0 2px 16px #0006;
}
.ksh-video-play:hover,.ksh-video-play:focus-visible {background:#c01630;outline-offset:3px}
.ksh-video-play[hidden] {display:none!important}
@media(max-width:600px) {
  .hero-content {min-width:0;max-width:100%;padding-left:0;padding-right:0}
  .hero h1 {
    font-size:clamp(1.65rem,6.8vw,2.6rem);
    line-height:1.14;
    letter-spacing:-.028em;
    max-width:100%;
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
    text-wrap:balance;
  }
  .hero-kicker {
    font-size:clamp(1.14rem,4.3vw,1.65rem);
    line-height:1.25;
    max-width:100%;
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
  }
  .hero-bottom {min-width:0;max-width:100%;width:100%;gap:1.1rem}
  .ksh-hero-city {font-size:1.08rem}
  .button--large {max-width:100%;min-width:0;white-space:normal}
}
@media(max-width:350px) {
  .hero h1 {font-size:clamp(1.55rem,6.6vw,1.85rem)}
  .hero-kicker {font-size:clamp(1.05rem,4.3vw,1.35rem)}
}
@media (max-width: 767px) {
  .ksh-masters-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 1.25rem !important;
  }

  .ksh-master-card {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
  }

  .ksh-master-card__link,
  .ksh-master-card__media {
    width: 100%;
  }
}