@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --bg: #f5f0e8;
  --fg: #2c2419;
  --muted: #7a6e62;
  --primary: #2c2419;
  --primary-fg: #f5f0e8;
  --accent: #8b6f4e;
  --card: #faf7f2;
  --border: #d8cfc4;
  --secondary-bg: #ede7db;
  --destructive: #b34040;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}

nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.03em;
  font-weight: 400;
}

.btn-nav {
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 8px 24px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-nav:hover {
  opacity: 0.85;
}


.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: sepia(20%) brightness(1.05);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(245,240,232,0.75) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--primary);
  padding: 14px 36px;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-fg);
}


.for-whom {
  padding: 96px 0;
  background: var(--secondary-bg);
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.2;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  padding: 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 8px;
}

.card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--primary);
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}


.two-col {
  padding: 96px 0;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}

.two-col-grid:last-child {
  margin-bottom: 0;
}

.two-col-grid.reverse {
  direction: rtl;
}

.two-col-grid.reverse > * {
  direction: ltr;
}

.col-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(44,36,25,0.15);
  filter: sepia(10%);
}

.col-text {
  max-width: 520px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.col-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.col-text h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 24px;
  line-height: 1.2;
}

.col-text p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 300;
}

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

.results-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: var(--muted);
}

.results-list li::before {
  content: '✧';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.format-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.format-item h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 500;
}

.format-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}


.testimonials {
  padding: 96px 0;
  background: var(--primary);
  color: var(--primary-fg);
  position: relative;
  overflow: hidden;
}

.testimonials-texture {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}

.testimonials-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-inner {
  position: relative;
  z-index: 1;
}

.testimonials h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(245,240,232,0.06);
  border: 1px solid rgba(245,240,232,0.12);
  padding: 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245,240,232,0.8);
  margin-bottom: 24px;
}

.testimonial-card cite {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: normal;
  letter-spacing: 0.04em;
}


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

.form-box {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  padding: 64px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(44,36,25,0.1);
}

.form-box h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.form-box .form-subtitle {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-group input.error {
  border-color: var(--destructive);
}

.form-error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--destructive);
  display: none;
}

.form-error.visible {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.form-note a {
  text-decoration: underline;
}

.form-note a:hover {
  color: var(--primary);
}


footer {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 80px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  padding-bottom: 64px;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 12px;
  color: var(--primary-fg);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.6);
  max-width: 220px;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.65);
  transition: color 0.2s;
  text-decoration: none;
}

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

.footer-contact {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.8;
}

.footer-contact a {
  color: rgba(245,240,232,0.65);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--primary-fg);
}

.footer-requisites {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.9;
}

.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245,240,232,0.4);
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 -8px 40px rgba(44,36,25,0.12);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

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

.cookie-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
}

.cookie-text a {
  text-decoration: underline;
}

.cookie-text a:hover {
  color: var(--primary);
}

.btn-cookie {
  white-space: nowrap;
  padding: 10px 28px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-cookie:hover {
  opacity: 0.85;
}


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

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  stroke: var(--accent);
}

.success-page h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 20px;
}

.success-page p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.7;
}


.legal-page {
  padding: 120px 0 96px;
  flex: 1;
}

.legal-page h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--primary);
  text-align: center;
  margin-bottom: 60px;
}

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

.legal-content p {
  font-size: 0.975rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.legal-content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  margin: 40px 0 16px;
}

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

.legal-content ul li {
  font-size: 0.975rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content strong {
  color: var(--fg);
  font-weight: 500;
}

.legal-requisites {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 2;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .two-col-grid.reverse {
    direction: ltr;
  }

  .two-col-grid.reverse .col-img {
    order: -1;
  }
}

@media (max-width: 640px) {
  .form-box {
    padding: 36px 24px;
  }

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

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