@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --bg: hsl(45, 15%, 97%);
  --fg: hsl(20, 15%, 20%);
  --border: hsl(30, 15%, 85%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(14, 49%, 56%);
  --primary-fg: hsl(0, 0%, 100%);
  --muted-bg: hsl(30, 15%, 90%);
  --muted-fg: hsl(20, 5%, 45%);
  --input-border: hsl(30, 15%, 80%);
  --font-sans: 'Manrope', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--mid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
}

header.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

header.site-header .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

header.site-header nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

header.site-header nav a {
  font-size: 0.875rem;
  color: var(--primary);
  transition: color 0.2s;
}

header.site-header nav a:hover {
  color: var(--fg);
}

header.site-header .btn-enroll {
  display: none;
  border: 1px solid var(--fg);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

header.site-header .btn-enroll:hover {
  background: var(--fg);
  color: var(--bg);
}

@media (min-width: 768px) {
  header.site-header nav {
    display: flex;
  }
  header.site-header .btn-enroll {
    display: inline-block;
  }
}

header.page-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 40;
}

header.page-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

header.page-header .logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

header.page-header .back-link {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

header.page-header .back-link:hover {
  color: var(--fg);
}

.section-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}

.section-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.section-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 247, 244, 0.55);
  z-index: 1;
}

.section-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-hero__content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.section-hero__content p {
  font-size: 1.125rem;
  color: var(--fg);
  opacity: 0.9;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn--primary:hover {
  opacity: 0.88;
}

.btn--primary:active {
  opacity: 0.75;
}

.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}

.btn--outline:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.section-quote {
  padding: 5rem 0;
  background: var(--bg);
}

.section-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.75rem);
  line-height: 1.55;
  color: var(--fg);
  text-align: center;
  font-style: italic;
  font-weight: 400;
}

.section-why {
  padding: 5rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-why .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .section-why .grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.section-why__img-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--muted-bg);
}

.section-why__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-why__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.25;
}

.reason {
  border-left: 2px solid var(--primary);
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}

.reason + .reason {
  border-left-color: hsl(14, 49%, 75%);
}

.reason + .reason + .reason {
  border-left-color: hsl(14, 49%, 82%);
}

.reason h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.reason p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.section-gallery {
  padding: 5rem 0;
  background: var(--bg);
}

.section-gallery h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-gallery .subtitle {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }

  .gallery-item--wide {
    grid-column: 1;
  }

  .gallery-item--tall {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .gallery-item--text {
    grid-column: 1;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--img {
  overflow: hidden;
  background: var(--muted-bg);
}

.gallery-item--wide {
  aspect-ratio: 16 / 9;
}

.gallery-item--tall {
  aspect-ratio: 4 / 5;
}

.gallery-item--sq {
  aspect-ratio: 1;
}

.gallery-item--text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 16 / 9;
}

.gallery-item--text h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.gallery-item--text p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.6;
}

.section-format {
  padding: 5rem 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-format h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 3.5rem;
}

.format-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .format-steps {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.format-step__num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: hsl(14, 49%, 90%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin: 0 auto 1rem;
}

@media (min-width: 640px) {
  .format-step__num {
    margin: 0 0 1rem;
  }
}

.format-step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.format-step p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

.section-enroll {
  padding: 5rem 0;
  background: hsl(14, 49%, 97%);
}

.enroll-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .enroll-card {
    padding: 3rem 3.5rem;
  }
}

.enroll-card h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.5rem;
}

.enroll-card .form-intro {
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  background: var(--bg);
  border: 1px solid var(--input-border);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder {
  color: var(--muted-fg);
  opacity: 0.7;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-group input.error {
  border-color: hsl(0, 70%, 55%);
}

.form-error {
  font-size: 0.8rem;
  color: hsl(0, 70%, 55%);
  margin-top: 0.3rem;
  display: none;
}

.form-note {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-fg);
  margin-top: 1rem;
}

.form-note a {
  text-decoration: underline;
  transition: color 0.2s;
}

.form-note a:hover {
  color: var(--primary);
}

.section-faq {
  padding: 5rem 0;
  background: var(--bg);
}

.section-faq h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  gap: 1rem;
}

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

.faq-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  transition: transform 0.25s;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.7;
  padding-bottom: 1.25rem;
}

footer {
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.65;
  max-width: 18rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--fg);
}

.footer-requisites {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-requisites p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

.footer-requisites a {
  color: var(--muted-fg);
  transition: color 0.2s;
}

.footer-requisites a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
  }
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.55;
}

.cookie-banner p a {
  text-decoration: underline;
  color: inherit;
  transition: color 0.2s;
}

.cookie-banner p a:hover {
  color: var(--primary);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-accept {
  padding: 0.45rem 1.25rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cookie-accept:hover {
  opacity: 0.85;
}

.cookie-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-fg);
  display: none;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.125rem;
  transition: color 0.2s;
}

.cookie-dismiss:hover {
  color: var(--fg);
}

@media (min-width: 640px) {
  .cookie-dismiss {
    display: block;
  }
}

.page-legal {
  padding: 3.5rem 0 5rem;
}

.page-legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.page-legal .updated {
  font-size: 0.875rem;
  color: var(--muted-fg);
  margin-bottom: 2.5rem;
}

.page-legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.page-legal p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.page-legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-legal ul li {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.page-legal strong {
  color: var(--fg);
  font-weight: 600;
}

.page-success {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.success-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

@media (min-width: 640px) {
  .success-card {
    padding: 3rem 3.5rem;
  }
}

.success-card__img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.75rem;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.success-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.success-card h1 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.success-card p {
  font-size: 0.9375rem;
  color: var(--muted-fg);
  line-height: 1.65;
  margin-bottom: 2rem;
}
