:root {
  --bg: #273142;
  --bg-soft: #2f3a4f;
  --surface: #34425a;
  --ink: #f0f4f9;
  --muted: #b3c0d6;
  --line: #4c5d7b;
  --brand: #f35b2e;
  --brand-2: #ff8d2f;
  --accent: #0ea5a0;
  --radius: 18px;
  --shadow: 0 16px 34px rgba(15, 22, 36, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(1200px 720px at 82% -10%, rgba(14, 165, 160, 0.16), transparent 62%),
    linear-gradient(180deg, #3f4d67 0%, #34425a 48%, #2f3b51 100%);
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body,
body p,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body a,
body li,
body summary,
body figcaption,
body span {
  color: #fff;
}

.container {
  width: min(1160px, calc(100% - 28px));
  margin-inline: auto;
}

.page {
  padding-bottom: 96px;
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

html[lang^="hy"] h1,
html[lang^="hy"] h2,
html[lang^="hy"] h3 {
  font-family: "Noto Sans Armenian", "Manrope", sans-serif;
  letter-spacing: 0;
  line-height: 1.22;
}

html[lang^="hy"] body {
  font-family: "Noto Sans Armenian", "Manrope", sans-serif;
  font-size: 1.02rem;
  line-height: 1.58;
}

html[lang^="hy"] h1 {
  font-size: clamp(1.62rem, 7.5vw, 2.5rem);
}

html[lang^="hy"] h2 {
  font-size: clamp(1.34rem, 6vw, 2rem);
}

html[lang^="hy"] h3 {
  font-size: clamp(1.03rem, 4.5vw, 1.3rem);
}

h1 {
  font-size: clamp(1.9rem, 6.2vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 4.8vw, 2.2rem);
}

h3 {
  font-size: clamp(1.1rem, 3.9vw, 1.4rem);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 130;
  border-bottom: 0;
  background: rgba(39, 49, 66, 0.92);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
}

.brand-logo {
  width: min(160px, 45vw);
  height: auto;
  display: block;
  opacity: 1;
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #334058;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #f0f4f9;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100dvh;
  background: #2b374d;
  border-left: 0;
  box-shadow: 0 10px 30px rgba(16, 24, 39, 0.35);
  padding: 84px 16px 16px;
  display: none;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  z-index: 150;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.nav-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 11px;
  border: 0;
}

.nav-link:hover,
.nav-link.active {
  background: #3a4964;
}

.nav-actions {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-link {
  min-width: 44px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  border: 0;
  color: #fff;
  padding: 8px 10px;
  font-size: 0.76rem;
}

.lang-link.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 140;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-cta {
  width: 100%;
}

.home-hero,
.page-hero,
.section-stack {
  padding: 20px 0;
}

.hero-layout {
  display: grid;
  gap: 12px;
}

.hero-panel,
.hero-media,
.card,
.faq-list details,
.cta-band,
.contact-card {
  border-radius: var(--radius);
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
}

.home-hero .hero-panel {
  text-align: center;
}

.home-hero .hero-panel .button-row {
  justify-content: center;
}

.kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 10px;
  border: 0;
  background: #303d55;
}

html[lang^="hy"] .kicker {
  text-transform: none;
  letter-spacing: 0.01em;
}

.lead {
  color: #fff;
  line-height: 1.62;
  font-size: 0.97rem;
}

.subnote {
  margin-top: 10px;
  color: #fff;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(243, 91, 46, 0.3);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-media {
  display: none;
  overflow: hidden;
  padding: 0;
  min-height: 280px;
  background: var(--surface);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.media-pill {
  margin-top: 10px;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  border: 1px solid #cfd6e3;
  background: rgba(255, 255, 255, 0.9);
  padding: 7px 10px;
}

.section-head {
  margin-bottom: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.card {
  overflow: hidden;
  opacity: 1;
  background: var(--surface);
}

/* Cards without .card-body (programs/plans) need inner spacing */
.card > h3,
.card > p,
.card > a {
  margin-left: 16px;
  margin-right: 16px;
}

.card > h3 {
  margin-top: 16px;
}

.card > p {
  margin-bottom: 12px;
}

.card > a {
  margin-bottom: 16px;
}

.image-card {
  grid-column: 1 / -1;
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 22% 18%, rgba(243, 91, 46, 0.28), transparent 34%),
    radial-gradient(circle at 80% 74%, rgba(14, 165, 160, 0.28), transparent 36%),
    linear-gradient(155deg, #dfe6f1, #cfd9e9);
}

.video-card .card-media {
  height: 300px;
}

.js-media-card {
  cursor: pointer;
}

.js-media-card:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.video-card .card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.chip {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  background: rgba(26, 39, 58, 0.85);
  border: 0;
  font-size: 0.72rem;
  color: #fff;
  padding: 6px 9px;
  z-index: 10;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.06rem;
  line-height: 1;
  color: #fff;
  background: rgba(20, 30, 45, 0.76);
  z-index: 10;
}

.zoom-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: #fff;
  background: rgba(20, 30, 45, 0.76);
  z-index: 10;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 220;
}

.video-modal.is-open {
  display: block;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.86);
}

.video-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, calc(100% - 24px));
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: #111826;
  border: 1px solid #2b3a51;
  padding: 12px;
}

.video-modal__close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-modal__content {
  margin-top: 28px;
  aspect-ratio: 16 / 9;
}

.video-modal__content video,
.video-modal__content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  display: block;
  background: #000;
}

.video-modal__content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.card-body,
.cta-band,
.contact-card,
.faq-list details {
  padding: 16px;
}

.card h3,
.card p,
.faq-list summary,
.faq-list p,
.contact-card p,
.contact-card h3 {
  color: #fff;
}

.card p,
.faq-list p,
.contact-card p {
  line-height: 1.6;
}

.card-photo {
  padding: 0;
}

.card-photo .card-media img,
.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.card-photo figcaption {
  padding: 12px 16px 16px;
  font-weight: 700;
  color: #fff;
}

.price {
  color: #fff;
  font-weight: 800;
  margin-bottom: 6px;
}

.is-highlight {
  background:
    radial-gradient(circle at 86% 14%, rgba(243, 91, 46, 0.14), transparent 35%),
    #3a4964;
}

.is-highlight,
.is-highlight h3,
.is-highlight p {
  color: #fff;
}

.is-highlight .btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

.faq-list {
  display: grid;
  gap: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin-top: 8px;
  color: #fff;
}

.cta-band {
  display: grid;
  gap: 10px;
}

.cta-band .button-row {
  justify-content: center;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-card a {
  color: #fff;
}

.contact-card .btn,
.contact-card .btn:visited,
.contact-card .btn:hover {
  color: #fff;
}

.footer {
  border-top: 0;
  background: #242d3c;
  color: #fff;
  padding: 20px 0 94px;
  margin-top: auto;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.text-center {
  text-align: center;
}

.admin-link {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}

.page-contact .page-hero .container,
.page-contact .contact-card {
  text-align: center;
}

.page-contact .contact-card {
  max-width: 760px;
  margin-inline: auto;
  justify-items: center;
}

.page-contact .contact-card > div {
  width: 100%;
}

.page-contact .button-row {
  justify-content: center;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 125;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(243, 91, 46, 0.36);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (min-width: 540px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .content-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-layout,
  .contact-card {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .page {
    padding-bottom: 72px;
  }

  .header-row {
    gap: 14px;
  }

  .brand-logo {
    width: 180px;
  }

  .nav-toggle,
  .nav-backdrop {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    gap: 16px;
    overflow: visible;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 999px;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }

  .nav-cta {
    width: auto;
  }

  .home-hero,
  .page-hero,
  .section-stack {
    padding: 44px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero-layout {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 16px;
  }

  .hero-media {
    display: block;
    min-height: 420px;
  }

  .home-hero .hero-panel {
    text-align: left;
  }

  .home-hero .hero-panel .button-row {
    justify-content: flex-start;
  }

  .hero-panel {
    padding: 36px 32px;
  }

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

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

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

  .cta-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .contact-card {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer {
    padding-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .video-modal__dialog {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .video-modal__close {
    position: relative;
    right: auto;
    top: auto;
    align-self: flex-end;
    margin: max(12px, env(safe-area-inset-top, 12px)) max(12px, env(safe-area-inset-right, 12px)) 8px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.26);
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .video-modal__content {
    margin-top: 0;
    flex: 1;
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 max(12px, env(safe-area-inset-bottom, 12px));
  }

  .video-modal__content video,
  .video-modal__content iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
  }

  .video-modal__content img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
  }
}
