/* ============================================
   KETTLI — Онлайн-курсы лепки чайников из глины
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clay:       #8B5E3C;
  --terracotta: #C4854A;
  --cream:      #F7F3EE;
  --parchment:  #EDE0D0;
  --earth:      #5C3D22;
  --ink:        #2C1A0E;
  --sage:       #7B8C6E;
  --fog:        #B8A99A;
  --white:      #FFFFFF;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Helvetica Neue', 'Arial', sans-serif;

  --max-w: 1100px;
  --radius: 8px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

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

/* === Section Spacing === */
section {
  padding: 80px 0;
}

/* === Typography === */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--earth);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p {
  color: var(--terracotta);
  margin-bottom: 0;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: var(--font-sans);
}

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

.btn-primary:hover {
  background: var(--clay);
  border-color: var(--clay);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 94, 60, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--parchment);
  transition: all var(--transition);
}

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--earth);
  letter-spacing: 0.05em;
}

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

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

.nav-links a {
  font-size: 14px;
  color: var(--clay);
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  display: inline-block;
  padding: 9px 22px;
  background: var(--terracotta);
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--clay) !important;
}

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

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--earth);
  border-radius: 2px;
  transition: all var(--transition);
}

/* === Hero === */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: linear-gradient(160deg, #F7F3EE 0%, #EDE0D0 60%, #E2CEBC 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 133, 74, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-text .section-label {
  margin-bottom: 20px;
}

.hero-headline {
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--clay);
  margin-bottom: 36px;
  max-width: 440px;
}

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

.hero-note {
  font-size: 13px;
  color: var(--fog);
  margin-top: 16px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(44, 26, 14, 0.18);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px rgba(44, 26, 14, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
}

.hero-badge-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  line-height: 1.4;
}

.hero-badge-text small {
  display: block;
  font-weight: 400;
  color: var(--fog);
  font-size: 11px;
  margin-top: 2px;
}

/* === Who It's For === */
.who-section {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header .section-label {
  display: block;
}

.section-header h2 {
  margin-top: 8px;
}

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

.who-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px 28px;
  border-left: 3px solid var(--terracotta);
  transition: transform var(--transition), box-shadow var(--transition);
}

.who-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 94, 60, 0.1);
}

.who-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.who-card p {
  font-size: 14px;
  line-height: 1.65;
}

/* === What You'll Learn === */
.learn-section {
  background: var(--cream);
}

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

.learn-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

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

.learn-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.learn-item-text h4 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--earth);
  margin-bottom: 4px;
}

.learn-item-text p {
  font-size: 14px;
  color: var(--clay);
}

/* === Format === */
.format-section {
  background: var(--earth);
  color: var(--cream);
}

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

.format-section .section-label {
  color: var(--terracotta);
}

.format-section p {
  color: rgba(247, 243, 238, 0.8);
}

.format-intro {
  max-width: 560px;
  margin-bottom: 56px;
}

.format-intro h2 {
  margin-bottom: 16px;
}

.format-intro p {
  font-size: 1.05rem;
}

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

.format-step {
  padding: 28px 24px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  border-top: 2px solid var(--terracotta);
}

.format-step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--terracotta);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 12px;
}

.format-step h3 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 8px;
}

.format-step p {
  font-size: 13.5px;
  line-height: 1.6;
}

/* === Tools & Materials === */
.tools-section {
  background: var(--parchment);
}

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

.tools-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.tools-content h2 {
  margin-bottom: 16px;
}

.tools-content > p {
  margin-bottom: 32px;
  color: var(--clay);
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius);
}

.tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

.tool-item span {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

/* === Gallery === */
.gallery-section {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery-card img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(44,26,14,0.75) 0%, transparent 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* === FAQ === */
.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

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

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

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

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
  transition: all var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--terracotta);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--clay);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* === Lead Form === */
.form-section {
  background: linear-gradient(150deg, #F0E8DF 0%, #E6D5C3 100%);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.form-text h2 {
  margin-bottom: 16px;
}

.form-text p {
  font-size: 1rem;
  color: var(--clay);
  margin-bottom: 28px;
  max-width: 380px;
}

.form-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--earth);
  font-weight: 500;
}

.form-benefit::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.lead-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 16px 50px rgba(44, 26, 14, 0.1);
}

.lead-form h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.lead-form > p {
  font-size: 14px;
  color: var(--fog);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--earth);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--parchment);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input::placeholder {
  color: var(--fog);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 133, 74, 0.15);
  background: var(--white);
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--clay);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 94, 60, 0.3);
}

.form-privacy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fog);
  text-align: center;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--clay);
  text-decoration: underline;
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 238, 0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 243, 238, 0.1);
  margin-bottom: 32px;
}

.footer-brand .nav-logo {
  color: var(--cream);
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(247, 243, 238, 0.6);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}

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

.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(247, 243, 238, 0.6);
  transition: color var(--transition);
}

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

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

.footer-legal {
  font-size: 12px;
  color: rgba(247, 243, 238, 0.4);
  line-height: 1.7;
}

.footer-legal p + p {
  margin-top: 4px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(247, 243, 238, 0.35);
  white-space: nowrap;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 20px 24px;
  display: none;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(247, 243, 238, 0.85);
  min-width: 200px;
}

.cookie-text a {
  color: var(--terracotta);
  text-decoration: underline;
}

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

.cookie-accept {
  padding: 9px 22px;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

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

.cookie-decline {
  padding: 9px 18px;
  background: transparent;
  color: rgba(247, 243, 238, 0.6);
  border: 1px solid rgba(247, 243, 238, 0.25);
  border-radius: var(--radius);
  font-size: 13.5px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition);
}

.cookie-decline:hover {
  color: var(--cream);
  border-color: rgba(247, 243, 238, 0.5);
}

/* === Legal Pages === */
.legal-hero {
  background: var(--earth);
  color: var(--cream);
  padding: 120px 0 60px;
}

.legal-hero h1 {
  color: var(--cream);
  margin-bottom: 10px;
}

.legal-hero p {
  color: rgba(247, 243, 238, 0.7);
}

.legal-content {
  background: var(--white);
  padding: 60px 0 80px;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--earth);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 14px;
}

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

.legal-body ul li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--clay);
  margin-bottom: 6px;
}

.legal-back {
  margin-bottom: 40px;
}

.legal-back a {
  font-size: 14px;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: gap var(--transition);
}

.legal-back a:hover {
  gap: 10px;
}

/* === Success Page === */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #F7F3EE, #EDE0D0);
  padding: 40px 24px;
}

.success-card {
  background: var(--white);
  border-radius: 20px;
  padding: 60px 56px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(44, 26, 14, 0.12);
}

.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--terracotta), var(--clay));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 2rem;
}

.success-card h1 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.success-card > p {
  color: var(--clay);
  margin-bottom: 36px;
  font-size: 1rem;
}

.success-card .btn {
  display: inline-block;
}

/* === Image fallback === */
.img-placeholder {
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fog);
  font-size: 13px;
}

/* === Responsive === */
@media (max-width: 900px) {
  section { padding: 60px 0; }

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

  .hero-image { order: -1; }

  .hero-badge {
    bottom: -12px;
    left: 12px;
  }

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

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

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

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

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

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

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

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

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

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--parchment);
    box-shadow: 0 8px 24px rgba(44,26,14,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-burger {
    display: flex;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

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

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

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

  .success-card {
    padding: 40px 24px;
  }

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