/* ─────────────────────────────────────────────
   Framora — Деревянные фоторамки
   Главная таблица стилей
───────────────────────────────────────────── */

/* === СБРОС И БАЗОВЫЕ СТИЛИ === */

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

:root {
  --bg:           #FAF7F2;
  --bg-alt:       #F2E9DC;
  --bg-dark:      #2A1A0E;
  --text:         #2A1A0E;
  --text-mid:     #5C3D2E;
  --text-soft:    #8B6A56;
  --accent:       #A0522D;
  --accent-warm:  #C17B30;
  --accent-light: #E8C99B;
  --border:       #D5BFA0;
  --white:        #FFFFFF;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 2px 16px rgba(42,26,14,0.08);
  --shadow-lg: 0 8px 40px rgba(42,26,14,0.13);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === ТИПОГРАФИКА === */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === РАСКЛАДКА === */

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

.section {
  padding: 80px 0;
}

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

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

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 16px;
}

.section__title {
  margin-bottom: 20px;
}

.section__sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 48px;
}

.section--dark .section__sub {
  color: var(--accent-light);
}

/* === ХЕДЕР === */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}

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

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

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
}

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

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

/* === КНОПКИ === */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

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

.btn--primary:hover {
  background-color: var(--accent-warm);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(160,82,45,0.3);
}

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

.btn--outline:hover {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
}

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

.btn--white:hover {
  background-color: var(--accent-light);
  color: var(--text);
  text-decoration: none;
}

.btn--large {
  padding: 17px 44px;
  font-size: 1rem;
}

/* === ГЕРОЙ === */

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

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

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  color: var(--text-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 24px;
}

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

.hero__text {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 36px;
  max-width: 480px;
}

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

.hero__scroll-note {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__image-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  min-width: 180px;
}

.hero__image-badge .badge-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.hero__image-badge .badge-text {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 4px;
}

/* === ПРЕИМУЩЕСТВА === */

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.benefit-card {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}

.benefit-card:hover {
  box-shadow: var(--shadow);
}

.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.benefit-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 8px;
  color: var(--text);
}

.benefit-card__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

/* === О КУРСЕ === */

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

.overview__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.overview__list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.overview__list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* === ПРОГРАММА === */

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

.module-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow);
}

.module-card__num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent-light);
  line-height: 1;
  text-align: center;
}

.module-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.module-card__text {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

/* === ДЛЯ КОГО === */

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

.audience-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.section--dark .audience-card {
  border-color: rgba(232,201,155,0.2);
  background: rgba(255,255,255,0.04);
}

.audience-card__title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.audience-card__text {
  font-size: 0.9rem;
  color: var(--accent-light);
  margin: 0;
  line-height: 1.65;
}

/* === ФОРМАТ === */

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

.format__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.format__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.format-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.format-item__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.format-item__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.format-item__text {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
}

/* === МАТЕРИАЛЫ === */

.materials__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.materials__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.materials__note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-mid);
}

.materials__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.materials__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.materials__list li:last-child {
  border-bottom: none;
}

.materials__list li .mat-num {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--accent-light);
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}

.materials__list li .mat-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}

.materials__list li .mat-text span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* === FAQ === */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

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

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

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

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer-inner {
  padding-bottom: 22px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* === ЛИД-ФОРМА === */

.form-section {
  background: var(--bg-dark);
  padding: 80px 0;
}

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

.form-section__left .section__label {
  color: var(--accent-light);
}

.form-section__left h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.form-section__left p {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 0;
}

.form-section__points {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-section__points li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(232,201,155,0.85);
}

.form-section__points li::before {
  content: '✓';
  color: var(--accent-warm);
  font-weight: 700;
  flex-shrink: 0;
}

.lead-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 40px;
  box-shadow: var(--shadow-lg);
}

.lead-form__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.lead-form__sub {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bba897;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-privacy {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 14px;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--accent);
}

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 5px;
}

.form-group.has-error input {
  border-color: #c0392b;
}

.form-group.has-error .form-error {
  display: block;
}

/* === ФУТЕР === */

.site-footer {
  background: #1A0F08;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand .site-logo {
  color: var(--white);
  display: inline-block;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin: 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  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: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

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

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* === COOKIE BANNER === */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1A0F08;
  border-top: 2px solid var(--accent);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--accent-light);
}

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

.cookie-btn {
  padding: 9px 22px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

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

.cookie-btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}

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

/* === LEGAL PAGES === */

.legal-page {
  padding: 60px 0 80px;
}

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

.legal-page .legal-date {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal-page p {
  font-size: 0.95rem;
  color: var(--text-mid);
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 1rem;
}

.legal-page ul li {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 6px;
}

/* === SUCCESS PAGE === */

.success-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.success-page-body .site-footer {
  margin-top: auto;
}

.success-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.success-page__icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.success-page h1 {
  margin-bottom: 16px;
}

.success-page p {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* === МОБИЛЬНЫЕ === */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    height: 380px;
  }

  .hero__image-badge {
    bottom: 16px;
    left: 16px;
  }

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

  .overview__inner,
  .format__inner,
  .materials__inner,
  .form-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .overview__image img,
  .format__image img,
  .materials__image img {
    height: 280px;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

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

  .site-header {
    position: relative;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .module-card {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 20px;
  }

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

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

  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
  }

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

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

  .form-section__inner {
    gap: 32px;
  }
}
