/*
Theme Name: Eclipse Relax Clean
Theme URI: https://eclipse-relax.ru/
Author: Codex
Description: Clean rebuilt one-page theme for Eclipse Relax.
Version: 1.3.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: eclipse-relax-clean
*/

:root {
  --bg: #030303;
  --panel: #11070c;
  --panel-soft: #1a0b12;
  --text: #ffffff;
  --muted: #bdb5ba;
  --faint: #81767b;
  --accent: #a81746;
  --accent-2: #d82361;
  --blue: #0798d7;
  --line: rgba(255, 255, 255, 0.12);
  --max: 1480px;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #145624 0 42%, #2fca58 43% 100%);
  box-shadow: 0 0 26px rgba(47, 202, 88, 0.42);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #b01a4d, #821037);
  box-shadow: 0 18px 42px rgba(168, 23, 70, 0.32);
}

.btn-blue {
  background: linear-gradient(135deg, #08a8e8, #047fbd);
  box-shadow: 0 18px 38px rgba(7, 152, 215, 0.24);
}

.hero {
  position: relative;
  min-height: 900px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 132px 0 82px;
  background: #050203;
}

.hero-image {
  position: absolute;
  z-index: 0;
  top: -28px;
  left: 50%;
  width: 104%;
  height: calc(100% + 56px);
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  transform: translateX(-47.2%);
}

.hero.hero-client-artwork {
  display: block;
  min-height: 0;
  padding: 72px 0 0;
}

.hero.hero-client-artwork picture {
  display: block;
}

.hero.hero-client-artwork .hero-image {
  position: static;
  width: 100vw;
  max-width: none;
  height: auto;
  transform: none;
  object-fit: contain;
}

.hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.14) 48%, rgba(0, 0, 0, 0.54)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.12) 52%, #030303 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 130px auto 0;
  text-align: center;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.48em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.contacts-title {
  margin: 22px 0 0;
  font-family: Oswald, Impact, Arial Narrow, sans-serif;
  font-size: clamp(46px, 6.2vw, 96px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(7, 152, 215, 0.25);
}

.hero-lead {
  width: min(760px, 100%);
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badges,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-badges {
  margin-top: 28px;
}

.hero-actions {
  margin-top: 34px;
}

.badge {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.scroll-hint {
  display: inline-block;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 108px 0;
}

#masters {
  padding-top: 38px;
}

#programs {
  padding-bottom: 64px;
}

#rules {
  padding-top: 64px;
}

.section-soft {
  background: radial-gradient(circle at 50% 0%, rgba(168, 23, 70, 0.14), transparent 42%), #090006;
}

.section-head {
  width: min(940px, 100%);
  margin: 0 auto 58px;
  text-align: center;
}

.section-head p {
  width: min(640px, 100%);
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.master-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
  background: var(--panel);
}

.master-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.master-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.96) 100%);
  content: "";
}

.status {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.status::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12dc72;
  box-shadow: 0 0 12px #12dc72;
  content: "";
}

.master-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 0 26px 28px;
}

.master-body h3,
.program-card h3,
.info-card h3,
.contact-card h3,
.about-box h2 {
  font-family: Oswald, Impact, Arial Narrow, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.master-body h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.meta,
.tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.meta {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.practice {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tags {
  margin-top: 12px;
}

.tag {
  padding: 8px 10px;
  border: 1px solid rgba(216, 35, 97, 0.58);
  border-radius: 999px;
  background: rgba(168, 23, 70, 0.16);
  color: #f3d6df;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.master-body .btn {
  width: 100%;
  margin-top: 22px;
  padding-inline: 18px;
  font-size: 14px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.program-card,
.contact-card,
.about-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.program-card {
  min-height: 230px;
  padding: 34px;
}

.program-top {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 950;
}

.program-top span:first-child {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.program-card h3 {
  margin: 24px 0 0;
  font-size: 35px;
  line-height: 1;
}

.program-card p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.program-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.interior-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.room {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 20px;
  margin: 0;
  background: #080506;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.room::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.22));
  content: "";
  pointer-events: none;
}

.room img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.room:nth-child(2) {
  min-height: 390px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px;
}

.info-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
}

.check {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(216, 35, 97, 0.45);
  border-radius: 50%;
  color: var(--accent-2);
}

.info-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.info-card p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
}

.contact-copy {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
}

.contact-card {
  padding: 46px;
}

.contact-card h3 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.contact-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.contact-card .btn {
  width: 100%;
  margin-top: 22px;
}

.about-box {
  padding: 58px 64px;
}

.about-box h2 {
  margin: 0 0 32px;
  text-align: center;
  font-size: 46px;
  line-height: 1;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

.about-single {
  grid-column: 1 / -1;
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.site-footer {
  padding: 78px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #020202;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
}

.footer-note {
  max-width: 430px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-service-note {
  grid-column: 2;
  margin: -34px 0 0;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.disclaimer {
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faint);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.float-btn {
  position: fixed;
  z-index: 19;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a81746, #7b1037);
  box-shadow: 0 16px 38px rgba(168, 23, 70, 0.34);
}

.menu-toggle {
  display: none;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.95);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  .header-inner > .btn {
    display: none;
  }

  .masters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-service-note {
    grid-column: auto;
    margin: -46px 0 0;
    text-align: left;
  }
}

@media (max-width: 780px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 720px;
    padding-top: 104px;
    padding-bottom: 34px;
  }

  .hero-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center top;
    transform: none;
  }

  .hero-content {
    margin-top: 148px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.38;
  }

  .hero-badges {
    margin-top: 22px;
    gap: 9px;
  }

  .hero-actions {
    margin-top: 26px;
    gap: 12px;
  }

  .hero-actions .btn {
    min-height: 56px;
  }

  .hero h1,
  .section-title,
  .contacts-title {
    font-size: 46px;
  }

  .hero-actions .btn,
  .contact-card .btn {
    width: 100%;
  }

  .section {
    padding: 78px 0;
  }

  #masters {
    padding-top: 28px;
  }

  #programs {
    padding-bottom: 46px;
  }

  #rules {
    padding-top: 46px;
  }

  .masters-grid,
  .programs-grid,
  .interior-grid,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .master-card {
    min-height: 500px;
  }

  .room,
  .room:nth-child(2) {
    min-height: 260px;
  }

  .about-box,
  .contact-card {
    padding: 32px 22px;
  }

  .info-card {
    grid-template-columns: 1fr;
  }
}

/* Final client pass: a softer hand-off from the artwork to the profiles. */
html { scroll-behavior: smooth; }
.hero.hero-client-artwork { position: relative; z-index: 1; margin-bottom: -24px; }
.hero.hero-client-artwork::after { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; height: 28%; content: ""; pointer-events: none; background: linear-gradient(to bottom, rgba(3, 3, 3, 0), rgba(3, 3, 3, .42) 55%, #030303 100%); }
#masters { position: relative; z-index: 2; padding-top: clamp(22px, 3vw, 42px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 780px) { .hero.hero-client-artwork { margin-bottom: -12px; } .hero.hero-client-artwork::after { height: 24%; } #masters { padding-top: 26px; } }

/* Visual positioning revision: bring the profiles into the first viewport. */
@media (min-width: 781px) {
  .hero.hero-client-artwork { margin-bottom: -160px; }
  #masters { padding-top: 16px; }
}
@media (max-width: 780px) {
  .hero.hero-client-artwork { margin-bottom: -34px; }
  #masters { padding-top: 18px; }
}

/* Bring the profiles title into the darkened foot of the hero artwork. */
@media (min-width: 781px) {
  .hero.hero-client-artwork { margin-bottom: -320px; }
  .hero.hero-client-artwork::after {
    height: 44%;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0), rgba(3, 3, 3, .28) 42%, rgba(3, 3, 3, .82) 78%, #030303 100%);
  }
  #masters { padding-top: 8px; }
}

/* Keep the profiles title in view when the proportional hero grows on wide screens. */
@media (min-width: 781px) {
  .hero.hero-client-artwork { margin-bottom: clamp(-520px, -25vw, -320px); }
}

/* Lush Ritual: retain a readable hand-off while keeping the person in the
   artwork visible through the hero overlay. */
.hero.hero-client-artwork::after {
  z-index: 1;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(3, 3, 3, 0) 0%,
    rgba(3, 3, 3, 0.10) 16%,
    rgba(3, 3, 3, 0.34) 38%,
    rgba(3, 3, 3, 0.72) 62%,
    rgba(3, 3, 3, 0.94) 82%,
    #030303 100%
  );
}

@media (max-width: 780px) {
  .hero.hero-client-artwork::after {
    height: 64%;
    background: linear-gradient(
      to bottom,
      rgba(3, 3, 3, 0) 0%,
      rgba(3, 3, 3, 0.12) 18%,
      rgba(3, 3, 3, 0.42) 42%,
      rgba(3, 3, 3, 0.80) 68%,
      #030303 100%
    );
  }
}
