:root {
  --color-bg-app: #f7f3eb;
  --color-bg-app-alt: #faf7f2;
  --color-bg-surface: rgba(255, 255, 255, 0.82);
  --color-bg-surface-soft: #f3eedf;
  --color-bg-surface-muted: #efe7d6;
  --color-text-primary: #2b241c;
  --color-text-secondary: #3a3026;
  --color-text-muted: #6b6257;
  --color-accent-primary: #19493f;
  --color-accent-primary-hover: #143c34;
  --color-accent-primary-soft: rgba(25, 73, 63, 0.1);
  --color-accent-primary-shadow: rgba(25, 73, 63, 0.16);
  --color-border-soft: #ddd4c7;
  --color-border-default: #cfc4b5;
  --color-border-strong: #b8aa97;
  --color-shadow-soft: rgba(43, 36, 28, 0.08);
  --color-shadow-medium: rgba(43, 36, 28, 0.12);
  --color-shadow-strong: rgba(43, 36, 28, 0.18);
  --shadow-panel: 0 28px 70px var(--color-shadow-soft);
  --shadow-button: 0 14px 28px var(--color-accent-primary-shadow);
  --font-sans: "IBM Plex Sans", "Noto Sans Armenian", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 32%),
    radial-gradient(circle at bottom right, rgba(227, 211, 188, 0.42), transparent 28%),
    linear-gradient(180deg, var(--color-bg-app-alt) 0%, var(--color-bg-app) 100%);
  position: relative;
}

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

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

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid rgba(221, 212, 199, 0.9);
  border-radius: 18px;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 44px rgba(43, 36, 28, 0.08);
}

.brand-link {
  flex: 0 0 auto;
}

.brand-link picture {
  display: block;
}

.brand-logo {
  width: 126px;
  height: auto;
}

.header-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.language-select-wrap {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--color-border-default);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-text-secondary);
}

.language-select {
  min-width: 88px;
  border: 0;
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  padding-right: 8px;
}

.language-select:focus-visible {
  outline: none;
}

.language-select-wrap:focus-within {
  border-color: var(--color-accent-primary);
}

.landing {
  display: grid;
  gap: 22px;
}

.section {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(221, 212, 199, 0.95);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(250, 247, 242, 0.95) 100%);
  box-shadow: var(--shadow-panel);
}

.hero-section,
.teacher-section,
.final-cta {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-section,
.teacher-section {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.final-cta {
  grid-template-columns: minmax(0, 1fr) auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-accent-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-slogan {
  margin-top: 10px;
  color: var(--color-accent-primary);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 600;
  line-height: 1.45;
}

.lead {
  max-width: 34rem;
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.65;
}

.lead-compact {
  max-width: 34rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 18px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--color-accent-primary);
  color: #faf7f2;
  box-shadow: var(--shadow-button);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-accent-primary-hover);
}

.button-secondary {
  border-color: var(--color-border-default);
  background: rgba(255, 255, 255, 0.84);
  color: var(--color-text-primary);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-accent-primary);
}

.button-large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 1rem;
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
}

.signin-button {
  white-space: nowrap;
}

.hero-note,
.section-note,
.placeholder-copy {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-heading {
  margin-bottom: 16px;
}

.prose {
  display: grid;
  gap: 16px;
}

.prose p {
  max-width: 70ch;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.68;
}

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

.step-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--color-border-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent-primary-soft);
  color: var(--color-accent-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.step-title {
  font-size: 1.16rem;
  line-height: 1.16;
}

.step-copy {
  color: var(--color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.62;
}


.illustration-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border: 1px dashed var(--color-border-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(25, 73, 63, 0.08), transparent 28%),
    rgba(243, 238, 223, 0.88);
}

.illustration-card-alt {
  background:
    radial-gradient(circle at top left, rgba(25, 73, 63, 0.08), transparent 28%),
    rgba(243, 238, 223, 0.9);
}

.illustration-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(184, 170, 151, 0.45);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.38);
}

.placeholder-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-accent-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-title {
  font-size: 1.18rem;
  line-height: 1.18;
}

.illustration-card .placeholder-label,
.illustration-card .placeholder-copy {
  display: none;
}

.placeholder-figure {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(184, 170, 151, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 231, 214, 0.95)),
    var(--color-bg-surface-muted);
}

.placeholder-figure::before,
.placeholder-figure::after {
  content: "";
  position: absolute;
  inset: auto;
}

.tired-reader {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 231, 214, 0.98)),
    linear-gradient(0deg, rgba(201, 185, 162, 0.34), rgba(201, 185, 162, 0.34));
}

.tired-reader::before {
  width: 120px;
  height: 160px;
  left: 50%;
  top: 34%;
  border-radius: 60px 60px 34px 34px;
  background:
    radial-gradient(circle at 50% 24%, rgba(58, 48, 38, 0.88) 0 15px, transparent 16px),
    linear-gradient(180deg, rgba(58, 48, 38, 0.92) 0 32px, rgba(25, 73, 63, 0.88) 32px 100%);
  transform: translateX(-50%);
  box-shadow: 0 18px 36px rgba(43, 36, 28, 0.12);
}

.tired-reader::after {
  width: 180px;
  height: 96px;
  left: 50%;
  bottom: 22%;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(250, 247, 242, 0.98) 0 48%, rgba(243, 238, 223, 0.98) 48% 52%, rgba(250, 247, 242, 0.98) 52% 100%);
  transform: translateX(-50%) rotate(-7deg);
  border: 1px solid rgba(184, 170, 151, 0.8);
  box-shadow: 0 16px 30px rgba(43, 36, 28, 0.14);
}

.teacher-chat {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 231, 214, 0.98)),
    linear-gradient(
      0deg,
      transparent 0 72%,
      rgba(184, 170, 151, 0.36) 72% 74%,
      rgba(201, 185, 162, 0.46) 74% 100%
    );
}

.teacher-chat::before {
  width: 116px;
  height: 180px;
  left: 18%;
  top: 22%;
  border-radius: 58px 58px 26px 26px;
  background:
    radial-gradient(circle at 50% 20%, rgba(58, 48, 38, 0.92) 0 14px, transparent 15px),
    linear-gradient(180deg, rgba(25, 73, 63, 0.9) 0 34px, rgba(58, 48, 38, 0.88) 34px 100%);
  box-shadow: 0 18px 36px rgba(43, 36, 28, 0.12);
}

.teacher-chat::after {
  width: 116px;
  height: 180px;
  right: 18%;
  top: 18%;
  border-radius: 58px 58px 26px 26px;
  background:
    radial-gradient(circle at 50% 20%, rgba(58, 48, 38, 0.92) 0 14px, transparent 15px),
    linear-gradient(180deg, rgba(202, 152, 108, 0.9) 0 34px, rgba(194, 174, 141, 0.88) 34px 100%);
  box-shadow: 0 18px 36px rgba(43, 36, 28, 0.12);
}

.language-list {
  margin-bottom: 14px;
  color: var(--color-text-primary);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-weight: 600;
  line-height: 1.6;
}


.final-cta-copy h2 {
  margin-bottom: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 4px 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer-links a,
.footer-links button,
.legal-contact {
  color: var(--color-accent-primary);
  text-decoration: underline;
  text-decoration-color: rgba(25, 73, 63, 0.28);
  text-underline-offset: 0.2em;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links button:hover,
.footer-links button:focus-visible,
.legal-contact:hover,
.legal-contact:focus-visible {
  color: var(--color-accent-primary-hover);
  text-decoration-color: currentColor;
}

.cookie-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  width: min(900px, calc(100% - 24px));
  padding: 18px;
  border: 1px solid var(--color-border-default);
  border-radius: 20px;
  background: rgba(250, 247, 242, 0.97);
  box-shadow: 0 22px 60px rgba(43, 36, 28, 0.2);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.cookie-banner-copy {
  display: grid;
  gap: 7px;
}

.cookie-banner-copy h2 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.cookie-banner-copy p {
  max-width: 66ch;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-copy a {
  width: fit-content;
  color: var(--color-accent-primary);
  font-size: 0.84rem;
  text-decoration: underline;
  text-decoration-color: rgba(25, 73, 63, 0.28);
  text-underline-offset: 0.2em;
}

.cookie-banner-copy a:hover,
.cookie-banner-copy a:focus-visible {
  color: var(--color-accent-primary-hover);
  text-decoration-color: currentColor;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-choice {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
}

.cookie-choice[aria-pressed="true"] {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

.legal-page {
  display: grid;
}

.legal-card {
  padding: clamp(24px, 5vw, 48px);
}

.legal-header {
  max-width: 720px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-soft);
}

.legal-header h1 {
  max-width: none;
}

.legal-intro {
  max-width: 68ch;
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-updated {
  margin-top: 14px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.legal-content {
  display: grid;
  gap: 28px;
  max-width: 720px;
  padding-top: 28px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  letter-spacing: -0.025em;
}

.legal-section p,
.legal-section li {
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.68;
}

.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.not-found-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.not-found-page {
  display: grid;
  place-items: center;
}

.not-found-card {
  display: grid;
  justify-items: start;
  width: min(100%, 680px);
  padding: clamp(32px, 7vw, 64px);
}

.not-found-code {
  margin-bottom: 14px;
  color: var(--color-accent-primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.not-found-copy {
  max-width: 34rem;
  margin: 16px 0 24px;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero-section,
  .teacher-section,
  .final-cta,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 560px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 10px;
  }

  .site-header {
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .header-actions {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    justify-content: flex-end;
  }

  .brand-logo {
    width: 108px;
  }

  .section {
    padding: 22px;
    border-radius: 24px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-choice {
    flex: 1 1 180px;
  }

  .placeholder-figure {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .language-select-wrap {
    flex: 0 1 auto;
  }

  .language-select {
    min-width: 0;
    width: 82px;
  }

  .button-large {
    width: 100%;
  }

  .header-actions .button {
    width: auto;
  }

  .cta-group {
    width: 100%;
  }

  .cookie-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 18px;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 6px;
    padding: 10px;
  }

  .brand-logo {
    width: 92px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-select-wrap {
    padding-inline: 5px;
  }

  .language-select {
    width: 68px;
    padding-right: 2px;
    font-size: 0.76rem;
  }

  .signin-button {
    padding-inline: 9px;
    font-size: 0.8rem;
  }
}
