:root {
  --rust: #B8553A;
  --rust-dark: #9A4430;
  --rust-light: #D4795E;
  --cream: #FAF8F4;
  --cream-dark: #F2EDE5;
  --warm-white: #FFFDF9;
  --ink: #1C1814;
  --ink-soft: #3A342E;
  --muted: #7A6E65;
  --border: #E2D9CF;
  --gold: #C9954C;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(28, 24, 20, 0.08);
  --shadow-md: 0 4px 20px rgba(28, 24, 20, 0.12);
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.72;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  text-align: center;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rust-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(184, 85, 58, 0.35);
}

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

.btn-outline:hover {
  background: var(--rust);
  color: #fff;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: normal;
}

.logo span {
  color: var(--rust);
}

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

.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--rust);
}

.nav .btn {
  padding: 9px 24px;
  font-size: 0.9rem;
}

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

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-nav a {
  padding: 12px 0;
  color: var(--ink-soft);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  display: block;
}

.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

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

.hero {
  padding: 72px 0 80px;
  background: var(--warm-white);
  overflow: hidden;
}

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

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  background: rgba(184, 85, 58, 0.1);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rust);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.for-whom {
  background: var(--cream-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
}

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

.whom-card {
  background: var(--warm-white);
  border-radius: 10px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.whom-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.whom-icon {
  width: 48px;
  height: 48px;
  background: rgba(184, 85, 58, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.whom-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.whom-card p {
  font-size: 0.95rem;
}

.skills {
  background: var(--warm-white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.skill-item:hover {
  border-color: var(--rust-light);
}

.skill-num {
  width: 36px;
  height: 36px;
  background: var(--rust);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.skill-text h4 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-text p {
  font-size: 0.92rem;
  color: var(--muted);
}

.format {
  background: var(--ink);
  color: var(--cream);
}

.format h2, .format .section-label {
  color: var(--cream);
}

.format .section-label {
  background: rgba(250, 248, 244, 0.12);
}

.format .section-header p {
  color: rgba(250, 248, 244, 0.65);
}

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

.format-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255, 0.1);
  border-radius: 10px;
  padding: 32px 28px;
  transition: var(--transition);
}

.format-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.format-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.format-card h3 {
  color: var(--cream);
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 10px;
}

.format-card p {
  font-size: 0.95rem;
  color: rgba(250, 248, 244, 0.65);
}

.teacher {
  background: var(--cream-dark);
}

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

.teacher-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin-bottom: 12px;
}

.teacher-content h2 {
  margin-bottom: 8px;
}

.teacher-title {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-style: italic;
}

.teacher-content p {
  margin-bottom: 16px;
}

.teacher-facts {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.teacher-fact strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-serif);
  color: var(--rust);
  line-height: 1;
  margin-bottom: 4px;
}

.teacher-fact span {
  font-size: 0.88rem;
  color: var(--muted);
}

.portfolio {
  background: var(--warm-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(28, 24, 20, 0.7));
  color: #fff;
  font-size: 0.92rem;
}

.portfolio-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.process {
  background: var(--cream-dark);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--border);
}

.process-step:last-child::after { display: none; }

.step-number {
  width: 56px;
  height: 56px;
  background: var(--warm-white);
  border: 2px solid var(--rust);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--rust);
  font-weight: bold;
}

.process-step h4 {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.88rem;
}

.process-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/7;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.materials {
  background: var(--warm-white);
}

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

.materials-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.materials-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.materials-content h2 {
  margin-bottom: 20px;
}

.materials-content p {
  margin-bottom: 16px;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.materials-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.materials-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--rust);
  border-radius: 50%;
  flex-shrink: 0;
}

.lead-form-section {
  background: linear-gradient(135deg, var(--rust) 0%, var(--rust-dark) 100%);
  color: #fff;
}

.lead-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lead-form-wrap h2 {
  color: #fff;
  margin-bottom: 14px;
}

.lead-form-wrap > p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
}

.lead-form {
  background: rgba(255,255,255, 0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 36px 40px;
  backdrop-filter: blur(4px);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 7px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-group input::placeholder { color: rgba(255,255,255,0.55); }

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.22);
}

.form-group select option {
  background: var(--rust-dark);
  color: #fff;
}

.form-consent {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
  line-height: 1.5;
}

.form-consent a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-form .btn-submit {
  width: 100%;
  margin-top: 4px;
  background: #fff;
  color: var(--rust-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.lead-form .btn-submit:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}

.faq-item + .faq-item {
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.faq-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--cream-dark);
}

.faq-question.is-open {
  color: var(--rust);
}

.faq-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--muted);
}

.faq-question.is-open .faq-arrow {
  transform: rotate(180deg);
  color: var(--rust);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-answer.is-open {
  max-height: 300px;
  padding: 4px 24px 20px;
}

.faq-answer p {
  font-size: 0.97rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.65);
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(250, 248, 244, 0.5);
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250, 248, 244, 0.4);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(250, 248, 244, 0.65);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--rust-light);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(250, 248, 244, 0.4);
  line-height: 1.7;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(250, 248, 244, 0.35);
  text-align: right;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: rgba(250,248,244,0.85);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 3px solid var(--rust);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.88rem;
  max-width: 700px;
  line-height: 1.55;
}

.cookie-text a {
  color: var(--rust-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--rust);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  white-space: nowrap;
}

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

.cookie-decline {
  background: transparent;
  color: rgba(250,248,244,0.6);
  border: 1px solid rgba(250,248,244,0.25);
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.cookie-decline:hover {
  color: rgba(250,248,244,0.9);
  border-color: rgba(250,248,244,0.5);
}

.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 40px 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(184, 85, 58, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
}

.success-page h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-page p {
  max-width: 400px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--ink);
}

.legal-page p, .legal-page li {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .hero-grid, .teacher-grid, .materials-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-image { order: -1; }

  .whom-grid, .format-grid {
    grid-template-columns: 1fr;
  }

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

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

  .process-step::after { display: none; }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-copyright {
    text-align: left;
  }

  .nav .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav .btn {
    display: none;
  }

  section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

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

  .lead-form {
    padding: 28px 20px;
  }

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

  .teacher-facts {
    flex-wrap: wrap;
    gap: 20px;
  }
}
