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

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

:root {
  --bg: #FAF7F4;
  --bg-warm: #F5EFE9;
  --bg-section: #EFE8E0;
  --primary: #C4866A;
  --primary-dark: #A8704E;
  --primary-light: #E8C9B4;
  --sage: #8B9E7E;
  --sage-light: #D4DED0;
  --text: #3A2E28;
  --text-mid: #6A5A52;
  --text-light: #9A8880;
  --border: #DDD4CB;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(58, 46, 40, 0.08);
  --shadow-md: 0 8px 40px rgba(58, 46, 40, 0.12);
}

html {
  scroll-behavior: smooth;
}

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

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

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

/* === COOKIE BANNER === */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--white);
  z-index: 9999;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

#cookie-banner.hidden {
  transform: translateY(110%);
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  flex: 1;
  min-width: 200px;
}

#cookie-banner p a {
  color: var(--primary-light);
  text-decoration: underline;
}

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

.btn-cookie-accept {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-cookie-close {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie-close:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

/* === HEADER === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-tag {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

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

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

.btn-header {
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-header:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

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

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

/* === HERO === */
.hero {
  padding: 72px 0 60px;
  overflow: hidden;
}

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

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "✦";
  font-size: 11px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--primary);
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 36px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(196, 134, 106, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 134, 106, 0.45);
}

.btn-secondary {
  font-size: 15px;
  color: var(--text-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-note::before {
  content: "🔒";
  font-size: 12px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/12;
  box-shadow: var(--shadow-md);
}

.hero-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-float-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-float-text span {
  font-size: 12px;
  color: var(--text-light);
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
}

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

.section--dark {
  background: var(--bg-section);
}

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

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* === FOR WHOM === */
.whom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.whom-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.whom-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.whom-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.whom-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* === WHAT YOU LEARN === */
.learn-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.learn-image img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.learn-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

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

.learn-item-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* === FORMAT === */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.format-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.format-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.format-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.format-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* === RESULT === */
.result-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.result-image img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.result-check {
  width: 24px;
  height: 24px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.result-item p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

/* === TEXTURE SECTION === */
.texture-section {
  background: var(--text);
  color: var(--white);
  padding: 72px 0;
}

.texture-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.texture-content .section-label {
  color: var(--primary-light);
}

.texture-content .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.texture-content p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.texture-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.9;
}

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
  font-size: 16px;
  color: var(--text-mid);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.faq-answer {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 22px;
}

/* === LEAD FORM === */
.form-section {
  background: var(--primary);
  padding: 80px 0;
}

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

.form-content .section-label {
  color: rgba(255,255,255,0.75);
}

.form-content .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.form-content p {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.6;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}

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

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 134, 106, 0.15);
}

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

.form-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}

.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.form-legal a {
  color: var(--text-light);
  text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}

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

.footer-brand .logo-name {
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .logo-tag {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer-legal strong {
  color: rgba(255,255,255,0.6);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* === SUCCESS PAGE === */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.success-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.success-box {
  text-align: center;
  max-width: 500px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.success-box h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.success-box p {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-box .btn-primary {
  display: inline-flex;
}

/* === LEGAL PAGES === */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-hero {
  background: var(--bg-warm);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-light);
}

.legal-content {
  flex: 1;
  padding: 56px 0;
  max-width: 760px;
}

.legal-content h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  font-weight: 600;
}

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

.legal-content p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
}

.requisites-block {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  border: 1px solid var(--border);
}

.requisites-block strong {
  color: var(--text);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .btn-header { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
  }

  .nav-links.open a {
    font-size: 18px;
  }

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

  .hero-image-wrap { order: -1; }
  .hero-float { bottom: 10px; left: 10px; }

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

  .learn-layout,
  .result-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .texture-inner { grid-template-columns: 1fr; gap: 32px; }
  .texture-image { display: none; }

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

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .form-card { padding: 24px 20px; }
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

.fade-up-delay {
  animation: fadeUp 0.55s ease 0.15s both;
}

.fade-up-delay-2 {
  animation: fadeUp 0.55s ease 0.3s both;
}
