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

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

:root {
  --bg: #faf8f5;
  --bg-warm: #f4efe8;
  --bg-deep: #ede6db;
  --text: #1c1a18;
  --text-mid: #5a534a;
  --text-light: #9a9087;
  --accent: #b8693f;
  --accent-dark: #8f4e2c;
  --accent-light: #d4956e;
  --green: #6b7c5e;
  --border: #ddd5c8;
  --border-light: #ece6de;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 2px 16px rgba(28,26,24,0.08);
  --shadow-lg: 0 8px 40px rgba(28,26,24,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1100px;
  --section-pad: 96px 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVIGATION ─── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,105,63,0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 15px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ─── HERO ─── */

.hero {
  padding: 80px 24px 0;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 68px);
}

.hero__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(184,105,63,0.1);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__note {
  font-size: 13px;
  color: var(--text-light);
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 16/10;
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ─── SECTION COMMON ─── */

section {
  padding: var(--section-pad);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ─── FOR WHOM ─── */

.for-whom {
  background: var(--bg-warm);
}

.for-whom__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
}

.portrait {
  background: var(--white);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}

.portrait:hover {
  box-shadow: var(--shadow);
  z-index: 1;
  position: relative;
}

.portrait__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.portrait__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.portrait__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── RESULTS ─── */

.results__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.results__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.results__dot {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.results__dot svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
}

.results__text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

.results__text strong {
  color: var(--text);
  font-weight: 600;
}

.results__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ─── PROGRAM ─── */

.program {
  background: var(--bg-warm);
}

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

.program__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: default;
}

.program__item:first-child {
  border-top: 1px solid var(--border-light);
}

.program__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  transition: color 0.2s;
}

.program__item:hover .program__num {
  color: var(--accent-light);
}

.program__title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.program__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── INSTRUCTOR ─── */

.instructor__inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: center;
}

.instructor__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.instructor__name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.instructor__role {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.instructor__bio {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 32px;
}

.instructor__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fact {
  padding: 16px 20px;
  background: var(--bg-warm);
  border-radius: var(--radius);
}

.fact__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.fact__label {
  font-size: 13px;
  color: var(--text-mid);
}

/* ─── WORKS GALLERY ─── */

.works {
  background: var(--bg-warm);
}

.works__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.works__item img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.works__item img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ─── FORMAT ─── */

.format__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.format-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.format-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(184,105,63,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.format-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
}

.format-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.format-card__desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ─── FAQ ─── */

.faq {
  background: var(--bg-warm);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--border-light);
}

.faq__item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq__q:hover {
  color: var(--accent);
}

.faq__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s;
}

.faq__item.open .faq__arrow {
  transform: rotate(180deg);
}

.faq__a {
  display: none;
  padding: 0 0 22px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq__item.open .faq__a {
  display: block;
}

/* ─── FORM SECTION ─── */

.form-section {
  background: var(--text);
  color: var(--white);
}

.form-section .section-label {
  color: var(--accent-light);
}

.form-section .section-title {
  color: var(--white);
}

.form-section .section-lead {
  color: rgba(255,255,255,0.65);
}

.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-light);
  background: rgba(255,255,255,0.09);
}

.form-field select option {
  background: #2a2622;
  color: var(--white);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-consent {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-top: 4px;
}

.form-consent a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
}

.form-section__benefits {
  padding-top: 16px;
}

.form-section__benefits h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 28px;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.benefit-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

/* ─── FOOTER ─── */

.footer {
  background: #141210;
  padding: 56px 24px 36px;
  color: rgba(255,255,255,0.5);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.footer__logo span {
  color: var(--accent);
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: rgba(255,255,255,0.85);
}

.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer__policy-links {
  display: flex;
  gap: 24px;
}

.footer__policy-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer__policy-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* ─── COOKIE BANNER ─── */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--text);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  font-size: 13px;
  line-height: 1.5;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.cookie-banner p {
  flex: 1;
}

.cookie-banner a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.cookie-btn--accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-btn--accept:hover {
  background: var(--accent-dark);
}

.cookie-btn--decline {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.cookie-btn--decline:hover {
  background: rgba(255,255,255,0.15);
}

/* ─── LEGAL PAGES ─── */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin: 40px 0 14px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page .requisites {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ─── SUCCESS PAGE ─── */

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.success-page__icon {
  width: 72px;
  height: 72px;
  background: rgba(184,105,63,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.success-page__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
}

.success-page h1 {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.success-page p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 40px;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  :root {
    --section-pad: 72px 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
    gap: 16px;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 56px 20px 48px;
    min-height: auto;
    gap: 40px;
  }

  .hero__title {
    font-size: 38px;
  }

  .results__grid {
    grid-template-columns: 1fr;
  }

  .instructor__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .instructor__image img {
    max-width: 360px;
  }

  .works__gallery {
    grid-template-columns: 1fr 1fr;
  }

  .form-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 32px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .works__gallery {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .for-whom__grid {
    grid-template-columns: 1fr 1fr;
  }

  .instructor__facts {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .program__item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
}
