:root {
  --bg: #f7f0e7;
  --bg-soft: #fdf8f3;
  --surface: rgba(255, 252, 248, 0.78);
  --surface-strong: rgba(255, 249, 242, 0.92);
  --line: rgba(100, 69, 53, 0.14);
  --line-strong: rgba(100, 69, 53, 0.26);
  --text: #2f251f;
  --muted: #6d5c53;
  --accent: #c96c5a;
  --accent-strong: #a64f40;
  --accent-soft: #efd9d0;
  --sage: #7d8b74;
  --shadow: 0 22px 60px rgba(108, 78, 64, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 209, 193, 0.5), transparent 30%),
    radial-gradient(circle at top right, rgba(203, 215, 194, 0.4), transparent 35%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 45%, #f8efe5 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  pointer-events: none;
  opacity: 0.28;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 999px;
  z-index: 50;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  position: relative;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.54), rgba(255, 252, 248, 0.88));
  backdrop-filter: blur(12px);
}

.section--accent {
  position: relative;
}

.section--accent::before {
  content: "";
  position: absolute;
  inset: 1.5rem 1rem;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(237, 224, 211, 0.82), rgba(243, 236, 228, 0.4));
  border: 1px solid rgba(115, 91, 76, 0.08);
  z-index: -1;
}

.section--cta {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
}

h2 {
  font-size: clamp(2.3rem, 3.6vw, 4rem);
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  background: rgba(248, 241, 233, 0.68);
  border-bottom: 1px solid rgba(120, 90, 74, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(94, 74, 64, 0.08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e8a997);
  color: #fffdf9;
  font-weight: 700;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.95rem;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text span:last-child {
  color: var(--muted);
}

.site-nav,
.header-actions,
.hero__actions,
.hero__highlights,
.site-footer__inner,
.site-footer__links,
.contact-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav {
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.site-nav a {
  padding: 0.5rem 0.65rem;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.lang-switch {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.header-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.lang-switch__link {
  min-width: 3rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch__link.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(94, 74, 64, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent) 0%, #db8d7d 100%);
  color: #fffaf6;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(201, 108, 90, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(201, 108, 90, 0.26);
}

.button--secondary {
  background: linear-gradient(135deg, #8e9a86 0%, var(--sage) 100%);
  box-shadow: 0 14px 30px rgba(125, 139, 116, 0.2);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border-color: rgba(120, 90, 74, 0.12);
  box-shadow: none;
}

.button--small {
  min-height: 2.9rem;
  padding-inline: 1.1rem;
}

.hero {
  padding-top: 4rem;
}

section[id],
[id="about"],
[id="focus"],
[id="process"],
[id="contacts"] {
  scroll-margin-top: 7.5rem;
}

.hero--compact {
  padding-top: 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem 3rem;
  align-items: center;
}

.hero__grid--compact {
  grid-template-columns: minmax(0, 1fr);
}

.hero__content,
.hero__portrait,
.section-heading,
.card,
.topic-card,
.step-card,
.faq,
.cta-panel,
.diploma-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__lead,
.section-heading p:last-child {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__highlights {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.hero__highlights li {
  padding: 0.62rem 0.92rem;
  border: 1px solid rgba(120, 90, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
}

.portrait-card,
.hero-note,
.card,
.topic-card,
.step-card,
.faq-item,
.cta-panel,
.contact-card,
.diploma-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 35rem;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(234, 217, 206, 0.75), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.95), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 239, 232, 0.98));
}

.portrait-card::before,
.portrait-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.portrait-card::before {
  width: 12rem;
  height: 12rem;
  top: -2rem;
  right: -1.5rem;
  background: rgba(236, 215, 204, 0.5);
}

.portrait-card::after {
  width: 9rem;
  height: 9rem;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.portrait-card__frame {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  aspect-ratio: 1 / 1.08;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  border-radius: 2.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 244, 0.94));
  border: 1px solid rgba(143, 115, 98, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 50px rgba(129, 104, 89, 0.12);
}

.portrait-card__image {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 32%;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.95);
  background: #fff;
  box-shadow:
    0 24px 44px rgba(117, 92, 79, 0.16),
    0 0 0 1px rgba(181, 153, 137, 0.1);
}

.hero-note {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
}

.hero-note__title {
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.section-heading {
  margin-bottom: 2.4rem;
  max-width: 52rem;
}

.section-heading--left {
  margin-bottom: 0;
}

.about-grid,
.topics-grid,
.steps,
.diploma-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.card,
.topic-card,
.step-card {
  padding: 1.5rem;
}

.feature-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e6ac9e);
}

.topic-card p,
.card p,
.step-card p,
.faq-item p,
.diploma-card p,
.contact-card__label {
  color: var(--muted);
}

.step-card {
  display: grid;
  gap: 0.8rem;
}

.step-card__number {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
}

.faq {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 1.15rem 1.2rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding-right: 2rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent-strong);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 0.8rem;
}

.cta-panel {
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem 2rem;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 249, 243, 0.94), rgba(243, 233, 225, 0.9)),
    rgba(255, 255, 255, 0.6);
}

.contact-grid {
  gap: 1rem;
}

.contact-card {
  padding: 1rem 1.1rem;
  min-width: min(100%, 255px);
  flex: 1 1 220px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.contact-card strong {
  display: block;
  margin-top: 0.2rem;
}

.diploma-card {
  overflow: hidden;
}

.diploma-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(180deg, #f6ede3, #efe1d3);
}

.diploma-card__body {
  padding: 1.25rem;
}

.site-footer {
  padding: 0 0 2.5rem;
}

.site-footer__inner {
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(120, 90, 74, 0.12);
  color: var(--muted);
}

.site-footer__links a {
  padding: 0.25rem 0;
}

@media (max-width: 1520px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    align-items: start;
  }

  .brand {
    min-width: max-content;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 0.15rem;
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .process-grid,
  .cta-panel,
  .about-grid,
  .topics-grid,
  .diploma-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.3rem 0;
  }

  .site-header {
    position: static;
  }

  .site-header__inner {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav,
  .header-actions {
    width: 100%;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero__actions .button,
  .header-actions .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero__portrait {
    order: -1;
  }

  .portrait-card {
    min-height: 28rem;
    padding: 1rem;
  }

  .portrait-card__frame {
    width: min(100%, 24rem);
    padding: 1.1rem;
  }

  .portrait-card__image {
    max-width: 19rem;
  }

  .cta-panel {
    padding: 1.35rem;
  }

  .contact-card {
    min-width: 100%;
  }
}
