/* ============================
   RAVUNI — Стили сайта
   ============================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-bg:         #F8F4EE;
  --color-bg-alt:     #F2EBE0;
  --color-bg-dark:    #2A1C14;
  --color-text:       #2A1C14;
  --color-text-light: #6B5347;
  --color-accent:     #B85C38;
  --color-accent-dark:#8F4429;
  --color-sand:       #D4A87A;
  --color-sand-light: #EAD4B8;
  --color-border:     #DDD0C0;
  --color-white:      #FFFFFF;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'PT Sans', Arial, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-card: 0 2px 20px rgba(42, 28, 20, 0.08);
  --shadow-btn:  0 4px 16px rgba(184, 92, 56, 0.30);

  --transition: 0.25s ease;

  --max-width: 1160px;
  --section-padding: 90px 24px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  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;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1.25rem; font-weight: 500; }

p { line-height: 1.75; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

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

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

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

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

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark .section-label {
  color: var(--color-sand-light);
}

.section--dark .section-label {
  color: var(--color-sand);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  padding: 16px 40px;
  line-height: 1;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 92, 56, 0.40);
}

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

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--white:hover {
  background-color: var(--color-bg);
  transform: translateY(-2px);
}

/* ============================
   HEADER / NAVIGATION
   ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 244, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
  font-style: italic;
}

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

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

.site-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-light);
  transition: color var(--transition);
}

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

.site-nav .btn {
  padding: 12px 28px;
  font-size: 0.9rem;
}

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

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

/* ============================
   HERO
   ============================ */
.hero {
  padding: 0;
  overflow: hidden;
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(42, 28, 20, 0.72) 0%,
    rgba(42, 28, 20, 0.40) 55%,
    rgba(42, 28, 20, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  flex: 1;
}

.hero-text {
  max-width: 620px;
  color: var(--color-white);
}

.hero-text .section-label {
  color: var(--color-sand);
}

.hero-text h1 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  max-width: 520px;
}

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

.hero-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* ============================
   FOR WHOM
   ============================ */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

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

.for-whom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(42, 28, 20, 0.12);
}

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

.for-whom-card h4 {
  margin-bottom: 10px;
}

.for-whom-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================
   FORMAT
   ============================ */
.format-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.format-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
}

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

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

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

.format-item__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-sand-light);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-item__text h4 {
  margin-bottom: 6px;
}

.format-item__text p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ============================
   PROCESS / STEPS
   ============================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  margin-top: 48px;
  counter-reset: steps;
}

.process-step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  counter-increment: steps;
  position: relative;
}



.process-step h4 {
  color: var(--color-sand-light);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.65;
}

/* ============================
   OUTCOMES
   ============================ */
.outcomes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.outcomes-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/5;
}

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

.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.outcome-item__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-sand-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.outcome-item__check svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.outcome-item__text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.outcome-item__text p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================
   MATERIALS
   ============================ */
.materials-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.materials-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  order: 2;
}

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

.materials-text { order: 1; }

.materials-text p {
  color: var(--color-text-light);
  margin-bottom: 28px;
  font-size: 1rem;
}

.materials-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  background: var(--color-sand-light);
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
}

/* ============================
   FAQ
   ============================ */
.faq-list {
  margin-top: 48px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.faq-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background-color var(--transition);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background-color: var(--color-accent);
}

.faq-item.open .faq-arrow svg {
  stroke: var(--color-white);
}

.faq-arrow svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.faq-answer p {
  padding-bottom: 24px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

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

/* ============================
   LEAD FORM
   ============================ */
.lead-form-section {
  padding: var(--section-padding);
}

.lead-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 64px;
  box-shadow: 0 4px 48px rgba(42, 28, 20, 0.12);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.lead-form-wrap h2 {
  margin-bottom: 12px;
}

.lead-form-wrap > p {
  color: var(--color-text-light);
  margin-bottom: 40px;
}

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

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

.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select {
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.12);
}

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

.form-field .error-msg {
  font-size: 0.8rem;
  color: #c0392b;
  display: none;
}

.form-field.has-error .error-msg {
  display: block;
}

.form-submit-wrap {
  margin-top: 8px;
}

.form-submit-wrap .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 18px 40px;
}

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

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

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #8F4429 100%);
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-size: 1.1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background-color: #1E1108;
  color: rgba(255,255,255,0.55);
  padding: 60px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

.footer-brand .site-logo {
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.8rem;
  text-align: right;
}

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  max-width: 600px;
  width: calc(100% - 48px);
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.30);
  animation: slideUp 0.4s ease forwards;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

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

.cookie-banner .btn {
  padding: 10px 24px;
  font-size: 0.875rem;
  flex-shrink: 0;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(24px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ============================
   LEGAL PAGES
   ============================ */
.legal-hero {
  padding: 80px 24px 60px;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

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

.legal-content {
  padding: 60px 24px 80px;
}

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

.legal-body h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

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

.legal-body p {
  margin-bottom: 16px;
  font-size: 0.975rem;
  color: var(--color-text-light);
}

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

.legal-body ul li {
  font-size: 0.975rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .format-layout,
  .outcomes-layout,
  .materials-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .outcomes-image {
    aspect-ratio: 16/9;
    order: -1;
  }

  .materials-image {
    order: -1;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 20px;
  }

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

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

  .nav-toggle { display: flex; }

  .site-header .container { position: relative; }

  .hero {
    min-height: 92vh;
  }

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

  .lead-form-wrap {
    padding: 40px 24px;
  }

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

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

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

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .for-whom-grid {
    grid-template-columns: 1fr;
  }
}
