:root {
  --ph-bg: #090b0b;
  --ph-panel: #0e1010;
  --ph-text: #eee9df;
  --ph-muted: #aaa69d;
  --ph-gold: #c8a04e;
  --ph-gold-light: #ddb96b;
  --ph-line: rgba(200, 160, 78, .28);
  --ph-soft-line: rgba(255, 255, 255, .1);
  --ph-container: 1160px;
  --ph-header: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ph-header) + 12px); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ph-bg);
  color: var(--ph-text);
  font: 400 16px/1.55 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .phayao-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--ph-gold); color: #0b0b09; }

.phayao-main { width: 100%; max-width: none !important; margin: 0; overflow: clip; }
.phayao-main > .wp-block-group,
.phayao-main > .wp-block-cover { width: 100%; max-width: none !important; }
.phayao-container { width: min(calc(100% - 48px), var(--ph-container)); max-width: var(--ph-container) !important; margin-inline: auto; }
.phayao-section { margin: 0; padding-block: 24px; }
.phayao-section h2,
.phayao-contact-block h2 { margin: 0; font: 400 clamp(30px, 3vw, 40px)/1.08 Georgia, "Times New Roman", serif; }
.phayao-eyebrow { margin: 0 0 8px; color: var(--ph-gold); font-size: 12px; letter-spacing: .08em; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ph-gold-light); outline-offset: 3px; }

.phayao-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--ph-header);
  margin: 0;
  background: rgba(8, 10, 10, .97);
  border-bottom: 1px solid var(--ph-line);
}
.phayao-header.is-scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.phayao-header__inner { width: min(calc(100% - 48px), var(--ph-container)); max-width: var(--ph-container) !important; min-height: var(--ph-header); margin-inline: auto; gap: 26px; }
.phayao-logo { width: max-content; margin: 0; line-height: 1; }
.phayao-logo a { display: inline-grid; text-decoration: none; }
.phayao-logo strong { color: var(--ph-gold-light); font: 600 23px/1 Georgia, serif; letter-spacing: .12em; }
.phayao-logo small { margin-top: 6px; color: var(--ph-gold); font-size: 12px; letter-spacing: .28em; }
.phayao-nav { flex: 1; }
.phayao-nav .wp-block-navigation__container { gap: clamp(16px, 2.2vw, 34px); }
.phayao-nav .wp-block-navigation-item__content { color: #dedad1; font-size: 14px; text-decoration: none; }
.phayao-nav .wp-block-navigation-item__content:hover { color: var(--ph-gold-light); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--ph-bg); color: var(--ph-text); padding: 28px; }

.wp-block-button__link,
.phayao-form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border: 1px solid var(--ph-gold);
  border-radius: 0;
  background: rgba(9, 11, 11, .34);
  color: var(--ph-text);
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.wp-block-button__link:hover, .phayao-form button:hover { transform: translateY(-1px); background: var(--ph-gold-light); color: #14110a; }
.is-style-phayao-gold .wp-block-button__link,
.phayao-form button { background: var(--ph-gold-light); color: #17130b; }

.phayao-hero { min-height: 610px !important; margin: 0; padding-top: var(--ph-header); padding-inline: 0; align-items: center; }
.phayao-hero .wp-block-cover__image-background { object-position: center center; filter: saturate(.82) contrast(1.06); }
.phayao-hero .wp-block-cover__background {
  opacity: 1 !important;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(5, 7, 7, .98) 0%, rgba(5, 7, 7, .91) 35%, rgba(5, 7, 7, .34) 62%, rgba(5, 7, 7, .04) 100%), linear-gradient(0deg, rgba(4, 6, 6, .54), transparent 48%);
}
.phayao-hero__inner { min-height: calc(610px - var(--ph-header)); display: grid; align-content: center; padding-block: 56px; }
.phayao-tag { width: max-content; margin: 0 0 26px; padding: 8px 18px; border: 1px solid var(--ph-gold); color: var(--ph-gold-light); font-size: 13px; }
.phayao-hero h1 { max-width: 560px; margin: 0; font: 400 clamp(46px, 5vw, 68px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.phayao-gold-line { width: 42px !important; margin: 22px 0 0 !important; border: 0 !important; border-top: 2px solid var(--ph-gold) !important; opacity: 1; }
.phayao-hero__lead { max-width: 520px; margin: 20px 0 0; color: #d8d4ca; font-size: 18px; }
.phayao-actions { gap: 20px; margin-top: 34px; }

.phayao-features { margin: 0; padding-block: 24px; border: 0; background: transparent; }
.phayao-features__grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-block: 0; border: 1px solid var(--ph-line); background: #0c0e0e; }
.phayao-feature { display: flex; min-width: 0; align-items: flex-start; gap: 22px; margin: 0 !important; padding: 28px 30px; border-left: 1px solid var(--ph-line); }
.phayao-feature:first-child { border-left: 0; }
.phayao-feature__copy { margin: 0; }
.phayao-feature h3 { margin: 0; font: 400 clamp(22px, 1.7vw, 26px)/1.14 Georgia, serif; }
.phayao-feature p:not(.phayao-icon) { margin: 10px 0 0; color: var(--ph-muted); font-size: clamp(15px, 1.05vw, 16px); line-height: 1.55; }
.phayao-icon { flex: 0 0 52px; width: 52px; margin: 0; }
.phayao-icon img { width: 52px; height: 52px; object-fit: contain; }
.phayao-icon--group { width: 72px; flex-basis: 72px; }
.phayao-icon--group img { width: 72px; height: 58px; }

.phayao-schedule-section { padding-top: 28px; padding-bottom: 10px; }
.phayao-schedule-section h2 { margin-bottom: 16px; }
.phayao-schedule { width: 100%; max-width: 100%; overflow: hidden; margin: 0; border: 1px solid var(--ph-line); }
.phayao-schedule table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.phayao-schedule th, .phayao-schedule td { overflow-wrap: anywhere; padding: clamp(7px, 1vw, 12px) clamp(3px, .7vw, 8px); border: 1px solid var(--ph-line); text-align: center; vertical-align: middle; font-size: clamp(12px, 1vw, 14px); }
.phayao-schedule thead th { background: rgba(255, 255, 255, .025); color: #dedad1; font-weight: 400; }
.phayao-schedule tbody td:first-child { white-space: nowrap; color: #eee9df; font-size: 14px; }
.phayao-schedule strong { color: var(--ph-gold-light); font-weight: 400; }

.phayao-recruitment { margin: 10px 0 0; }
.phayao-recruitment__inner { gap: 28px; padding: 22px 62px; border: 1px solid var(--ph-line); background: rgba(255, 255, 255, .018); }
.phayao-recruitment__copy { flex: 1; }
.phayao-recruitment h3 { margin: 0; font: 400 29px/1.1 Georgia, serif; }
.phayao-recruitment__copy p { margin: 7px 0 0; color: var(--ph-muted); font-size: 15px; }

.phayao-prices-section { padding-top: 22px; padding-bottom: 28px; }
.phayao-prices-section h2 { margin-bottom: 10px; }
.phayao-prices { width: 100%; max-width: 100%; overflow: hidden; margin: 0; border: 1px solid var(--ph-line); }
.phayao-prices table { width: 100%; border-collapse: collapse; }
.phayao-prices td { padding: 10px 30px; border: 1px solid var(--ph-line); font-size: 14px; }
.phayao-prices td:nth-child(1) { width: 36%; }
.phayao-prices td:nth-child(2) { width: 32%; }
.phayao-prices td:last-child { color: var(--ph-gold-light); text-align: center; }

.phayao-club { padding-top: 0; }
.phayao-trainer-card { gap: 0; margin-block: 0; border: 1px solid var(--ph-line); background: #0c0e0e; }
.phayao-trainer-card__photo { height: 260px; margin: 0; overflow: hidden; }
.phayao-trainer-card__photo img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; object-position: center 26%; filter: saturate(.72) contrast(1.08); }
.phayao-trainer-card__copy { display: grid; align-content: center; padding: 30px 70px; }
.phayao-trainer-card__copy h2 { font-size: 34px; }
.phayao-trainer-card__copy .phayao-gold-line { margin-top: 13px !important; }
.phayao-trainer-card__copy > p:last-child { margin: 14px 0 0; color: #c4c0b7; font-size: 15px; }

.phayao-contact { padding-block: 6px 32px; }
.phayao-contact-block { display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); align-items: center; gap: 34px; }
.phayao-contact-block__copy .phayao-eyebrow:empty { display: none; }
.phayao-contact-block h2 { font-size: 34px; white-space: nowrap; }
.phayao-contact-block__copy > p:last-child { margin: 7px 0 0; color: var(--ph-muted); font-size: 15px; }
.phayao-form { display: grid; grid-template-columns: 1fr 1fr 190px; gap: 10px; align-items: end; }
.phayao-form label { display: grid; }
.phayao-form label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phayao-form input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ph-line); border-radius: 0; background: rgba(255, 255, 255, .018); color: var(--ph-text); }
.phayao-form input::placeholder { color: #aaa69d; }
.phayao-form input[aria-invalid="true"] { border-color: #d98778; }
.phayao-form__message { grid-column: 1/-1; min-height: 0; margin: 0; color: var(--ph-gold-light); font-size: 12px; }
.phayao-form__message:empty { display: none; }
.phayao-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.phayao-contact-block--editor { padding: 28px; background: var(--ph-panel); }

.phayao-footer { margin: 0; padding-block: 30px; border-top: 1px solid var(--ph-line); color: var(--ph-muted); font-size: 14px; }
.phayao-footer__grid { width: min(calc(100% - 48px), var(--ph-container)); max-width: var(--ph-container) !important; margin: 0 auto; align-items: center !important; }
.phayao-footer__copyright { margin: 16px 0 0; }
.phayao-footer__links { display: flex; justify-content: center; gap: 64px; }
.phayao-footer a { transition: color .2s ease; }
.phayao-footer a:hover,
.phayao-footer a:focus-visible { color: var(--ph-gold-light); }
.phayao-footer .phayao-footer-nav .wp-block-navigation-item__content:hover,
.phayao-footer .phayao-footer-nav .wp-block-navigation-item__content:focus-visible { color: var(--ph-gold-light); }
.phayao-footer-nav .wp-block-navigation-item__content { color: var(--ph-muted); font-size: 14px; }
.phayao-footer__contacts p { margin: 0; line-height: 2.2; }
.phayao-footer__contacts a { text-decoration: none; }
.phayao-error { min-height: 70vh; padding: calc(var(--ph-header) + 90px) 24px 90px; }
.editor-styles-wrapper .phayao-header { position: relative; top: auto !important; }

@media (max-width: 980px) {
  :root { --ph-header: 68px; }
  .phayao-header__inner { gap: 14px; }
  .phayao-nav .wp-block-navigation__container { gap: clamp(10px, 1.8vw, 18px); }
  .phayao-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phayao-feature { gap: 18px; padding: 26px; }
  .phayao-feature:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--ph-line); border-left: 0; }
  .phayao-trainer-card__copy { padding: 28px 38px; }
  .phayao-contact-block { grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); gap: 22px; }
  .phayao-form { grid-template-columns: 1fr 1fr 160px; }
}

@media (max-width: 900px) {
  .phayao-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .phayao-nav .wp-block-navigation__responsive-container-open { display: flex !important; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin-left: auto; }
  .phayao-nav .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; }
  .phayao-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { display: grid; gap: 20px; }
  .phayao-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 18px; }
  .phayao-contact-block { grid-template-columns: 1fr; gap: 20px; }
  .phayao-form { grid-template-columns: 1fr 1fr 190px; }
  .phayao-footer__grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start !important; gap: 24px 40px; }
  .phayao-footer__grid > .wp-block-column { min-width: 0; margin: 0 !important; }
  .phayao-footer__grid > .wp-block-column:last-child { grid-column: 1 / -1; }
  .phayao-footer__links { justify-content: flex-start; }
}

@media (max-width: 782px) { body.admin-bar .phayao-header { top: 46px; } }

@media (max-width: 760px) {
  .phayao-container, .phayao-header__inner, .phayao-footer__grid { width: min(calc(100% - 30px), var(--ph-container)); }
  .phayao-trainer-card { flex-wrap: nowrap !important; }
  .phayao-trainer-card > .wp-block-column:first-child { flex-basis: 36% !important; }
  .phayao-trainer-card > .wp-block-column:last-child { flex-basis: 64% !important; }
  .phayao-logo strong { font-size: 18px; }
  .phayao-header__inner { gap: 10px; }
  .phayao-nav .wp-block-navigation__container { gap: 10px; }
  .phayao-nav .wp-block-navigation-item__content { font-size: 14px; }
  .phayao-header__cta .wp-block-button__link { min-height: 44px; padding-inline: 14px; font-size: 14px; }
  .phayao-hero h1 { max-width: 48%; font-size: clamp(36px, 5.6vw, 46px); }
  .phayao-hero__lead { max-width: 48%; font-size: 16px; }
  .phayao-schedule { overflow: visible; border: 0; }
  .phayao-schedule table, .phayao-schedule thead, .phayao-schedule tbody, .phayao-schedule tr, .phayao-schedule td { display: block; min-width: 0; width: auto; }
  .phayao-schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .phayao-schedule tbody { display: grid; gap: 12px; }
  .phayao-schedule tr { border: 1px solid var(--ph-line); }
  .phayao-schedule td { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 12px; border: 0; border-bottom: 1px solid rgba(200, 160, 78, .14); text-align: left; }
  .phayao-schedule td:first-child { display: block; padding: 11px 12px; border-bottom-color: var(--ph-line); }
  .phayao-schedule td:nth-child(2)::before { content: "ПН"; }
  .phayao-schedule td:nth-child(3)::before { content: "ВТ"; }
  .phayao-schedule td:nth-child(4)::before { content: "СР"; }
  .phayao-schedule td:nth-child(5)::before { content: "ЧТ"; }
  .phayao-schedule td:nth-child(6)::before { content: "ПТ"; }
  .phayao-schedule td:nth-child(7)::before { content: "СБ"; }
  .phayao-schedule td:nth-child(8)::before { content: "ВС"; }
  .phayao-schedule td::before { color: var(--ph-muted); font-size: 12px; }
  .phayao-recruitment__inner { padding-inline: 30px; }
  .phayao-contact-block h2 { font-size: 26px; }
  .phayao-form { grid-template-columns: 1fr 1fr 142px; gap: 7px; }
  .phayao-form input, .phayao-form button { min-width: 0; padding-inline: 9px; font-size: 14px; }
  .phayao-footer__links { gap: 30px; }
}

@media (max-width: 620px) {
  .phayao-header__cta { display: none !important; }
  .phayao-hero { min-height: 620px !important; }
  .phayao-hero .wp-block-cover__image-background { object-position: center center; }
  .phayao-hero .wp-block-cover__background { background-image: linear-gradient(0deg, rgba(5, 7, 7, .98) 0%, rgba(5, 7, 7, .86) 52%, rgba(5, 7, 7, .25) 100%); }
  .phayao-hero__inner { min-height: calc(620px - var(--ph-header)); align-content: end; padding-block: 36px; }
  .phayao-tag { margin-bottom: 18px; }
  .phayao-hero h1 { max-width: 76%; font-size: clamp(38px, 10.5vw, 44px); }
  .phayao-hero .phayao-gold-line { margin-top: 16px !important; }
  .phayao-hero__lead { max-width: 76%; margin-top: 16px; font-size: 15px; }
  .phayao-actions { display: grid; gap: 10px; margin-top: 24px; }
  .phayao-actions .wp-block-button, .phayao-actions .wp-block-button__link { width: 100%; }
  .phayao-features { padding-block: 16px; }
  .phayao-features__grid { grid-template-columns: 1fr; }
  .phayao-feature { grid-column: auto !important; gap: 18px; padding: 24px 20px !important; border: 0; border-top: 1px solid var(--ph-line); }
  .phayao-feature:first-child { border-top: 0; }
  .phayao-section h2 { font-size: 30px; }
  .phayao-recruitment__inner { align-items: flex-start !important; flex-direction: column; padding: 24px; }
  .phayao-prices td { overflow-wrap: anywhere; padding: 10px 7px; font-size: 13px; }
  .phayao-prices td:nth-child(1) { width: 42%; }
  .phayao-prices td:nth-child(2) { width: 30%; }
  .phayao-trainer-card { flex-direction: column; flex-wrap: wrap !important; }
  .phayao-trainer-card > .wp-block-column:first-child,
  .phayao-trainer-card > .wp-block-column:last-child { flex-basis: 100% !important; }
  .phayao-trainer-card__photo { height: 300px; }
  .phayao-trainer-card__copy { padding: 28px 22px; }
  .phayao-contact-block { grid-template-columns: 1fr; gap: 18px; }
  .phayao-contact-block h2 { white-space: normal; }
  .phayao-form { grid-template-columns: 1fr; }
  .phayao-form__message { grid-column: auto; }
  .phayao-footer__grid { grid-template-columns: 1fr; align-items: start !important; gap: 24px; }
  .phayao-footer__grid > .wp-block-column:last-child { grid-column: auto; }
  .phayao-footer__links { justify-content: flex-start; }
  .phayao-footer-nav .wp-block-navigation__container { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
