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

:root {
  --cream: #F7F4EE;
  --warm-white: #FDFCF9;
  --sand: #E8E0D0;
  --terracotta: #C4613A;
  --terracotta-dark: #9B4A2A;
  --terracotta-light: #E8896A;
  --olive: #5C6B3A;
  --olive-light: #7A8C4F;
  --charcoal: #2A2825;
  --stone: #6B665E;
  --stone-light: #9C9890;
  --gold: #B8973A;
  --border: rgba(42,40,37,0.12);
  --border-strong: rgba(42,40,37,0.22);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,252,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--charcoal); letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-logo span { color: var(--terracotta); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--stone);
  text-decoration: none; letter-spacing: 0.3px; text-transform: uppercase;
  transition: color 0.2s; padding: 4px 8px; border-radius: 4px;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a.active { color: var(--charcoal); }
.nav-cta {
  background: var(--terracotta); color: #fff;
  border: none; border-radius: 6px;
  padding: 10px 24px; font-family: var(--font-sans);
  font-size: 13px; font-weight: 500; cursor: pointer;
  letter-spacing: 0.3px; transition: background 0.2s;
  text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: var(--terracotta-dark); }

/* Mobile burger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(253,252,249,0.98); backdrop-filter: blur(16px);
  flex-direction: column; padding: 32px 24px; gap: 0; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 24px; font-weight: 600;
  color: var(--charcoal); text-decoration: none;
  padding: 16px 0; border-bottom: 0.5px solid var(--border);
}
.mobile-menu a:hover { color: var(--terracotta); }
.mobile-menu .mob-cta {
  margin-top: 28px; background: var(--terracotta); color: #fff;
  text-align: center; border-radius: 8px; padding: 16px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  border-bottom: none;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--terracotta); color: #fff;
  border: none; border-radius: 8px; padding: 16px 32px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--charcoal);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 16px 32px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-ghost:hover { background: var(--cream); }

/* ── SECTION COMMON ── */
section { padding: 100px 80px; }
.section-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--terracotta);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-tag::before { content: ''; display: block; width: 20px; height: 1px; background: var(--terracotta); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.5px; color: var(--charcoal); margin-bottom: 16px;
}
.section-title em { color: var(--terracotta); font-style: italic; }
.section-sub {
  font-size: 17px; color: var(--stone);
  max-width: 560px; font-weight: 300; line-height: 1.65; margin-bottom: 56px;
}

/* ── BENEFITS STRIP ── */
.benefits-strip {
  background: var(--terracotta);
  padding: 28px 80px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.benefit-item {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 400;
}
.benefit-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

/* ── SERVICES ── */
.services { background: var(--warm-white); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.service-card {
  padding: 40px 36px; background: var(--warm-white);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.2s; position: relative;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-child(n+7) { border-bottom: none; }
.service-card:hover { background: var(--cream); }
.service-num { font-family: var(--font-serif); font-size: 13px; color: var(--stone-light); margin-bottom: 20px; }
.service-icon-wrap {
  width: 48px; height: 48px; background: var(--cream);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.service-title { font-size: 17px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; line-height: 1.3; }
.service-desc { font-size: 14px; color: var(--stone); line-height: 1.6; font-weight: 300; }
.service-arrow {
  position: absolute; bottom: 32px; right: 32px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 14px; transition: all 0.2s;
  text-decoration: none;
}
.service-card:hover .service-arrow { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* ── PROCESS ── */
.process { background: var(--cream); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.process-step { padding: 0 24px; position: relative; }
.process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 28px; right: -8px;
  width: 16px; height: 1px; background: var(--border-strong);
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 20px; background: var(--warm-white);
}
.process-step.active .step-num { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.step-title { font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--stone); line-height: 1.6; font-weight: 300; }

/* ── VISA SECTION ── */
.visas { background: var(--charcoal); color: #fff; }
.visas .section-tag { color: var(--terracotta-light); }
.visas .section-tag::before { background: var(--terracotta-light); }
.visas .section-title { color: #fff; }
.visas .section-sub { color: rgba(255,255,255,0.6); }
.visa-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden;
}
.visa-card { background: rgba(255,255,255,0.04); padding: 36px 32px; transition: background 0.2s; }
.visa-card:hover { background: rgba(255,255,255,0.08); }
.visa-flag { font-size: 28px; margin-bottom: 16px; }
.visa-name { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.visa-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-weight: 300; }
.visa-features { list-style: none; }
.visa-features li {
  font-size: 13px; color: rgba(255,255,255,0.7);
  padding: 5px 0; border-bottom: 0.5px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 8px;
}
.visa-features li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--terracotta-light); flex-shrink: 0;
}

/* ── TESTIMONIALS ── */
.testimonials { background: var(--warm-white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--cream); border-radius: 16px;
  padding: 36px 32px; border: 0.5px solid var(--border); position: relative;
}
.testimonial-quote {
  font-family: var(--font-serif); font-size: 48px; line-height: 1;
  color: var(--terracotta); opacity: 0.3; position: absolute; top: 20px; right: 28px;
}
.testimonial-text { font-size: 15px; color: var(--charcoal); line-height: 1.7; margin-bottom: 24px; font-weight: 300; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.testimonial-meta { font-size: 12px; color: var(--stone-light); }

/* ── CTA ── */
.cta-section { background: var(--cream); text-align: center; padding: 120px 80px; }
.cta-section .section-tag { justify-content: center; }
.cta-section .section-tag::before { display: none; }
.cta-section .section-title { margin-left: auto; margin-right: auto; max-width: 600px; }
.cta-section .section-sub { margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 16px; }

/* ── FAQ ── */
.faq { background: var(--warm-white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.faq-item { border-bottom: 0.5px solid var(--border); padding-bottom: 28px; margin-bottom: 28px; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; line-height: 1.4; }
.faq-a { font-size: 14px; color: var(--stone); line-height: 1.7; font-weight: 300; }

/* ── FOOTER ── */
footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 72px 80px 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-logo {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600;
  color: #fff; margin-bottom: 16px; display: block; text-decoration: none;
}
.footer-logo span { color: var(--terracotta-light); }
.footer-desc { font-size: 13px; line-height: 1.7; max-width: 260px; font-weight: 300; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 32px; border-top: 0.5px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-flags { font-size: 18px; letter-spacing: 4px; }
.footer-contacts-mobile { display: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.22s; opacity: 0; }
.delay-3 { animation-delay: 0.35s; opacity: 0; }
.delay-4 { animation-delay: 0.48s; opacity: 0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding-top: 64px;
  background: var(--cream);
  padding-left: 80px; padding-right: 80px; padding-bottom: 72px;
  padding-top: calc(64px + 72px);
  border-bottom: 0.5px solid var(--border);
}
.page-hero .section-title { font-size: clamp(36px, 5vw, 60px); }
.page-hero .section-sub { margin-bottom: 0; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1100px) {
  nav { padding: 0 32px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  section { padding: 72px 32px; }
  .page-hero { padding: 120px 32px 56px; }
  .benefits-strip { padding: 24px 32px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-step::after { display: none; }
  .visa-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-section { padding: 80px 32px; }
}

@media (max-width: 640px) {
  nav { padding: 0 20px; height: 56px; }
  .mobile-menu { top: 56px; }

  .benefits-strip {
    padding: 20px 24px; flex-direction: column; gap: 0; align-items: stretch;
  }
  .benefit-item {
    width: 100%; padding: 13px 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; gap: 14px;
  }
  .benefit-item:last-child { border-bottom: none; }
  .benefit-icon { width: 36px; height: 36px; min-width: 36px; font-size: 16px; }

  section { padding: 52px 20px; }
  .page-hero { padding: 100px 20px 44px; }
  .section-title { font-size: 28px; }
  .section-sub { font-size: 15px; margin-bottom: 32px; }

  .services-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .service-card { padding: 28px 22px 56px; border-right: none !important; }
  .service-card:last-child { border-bottom: none; }

  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process-step {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 0 0 32px; position: relative;
  }
  .process-step:not(:last-child)::after { display: none; }
  .process-step:not(:last-child)::before {
    content: ''; position: absolute;
    left: 26px; top: 54px; bottom: 0; width: 1px;
    border-left: 1px dashed var(--border-strong);
  }
  .step-num { position: static; width: 54px; height: 54px; font-size: 20px; flex-shrink: 0; }
  .step-content { padding-top: 14px; }
  .step-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
  .step-desc { font-size: 14px; }

  .visa-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .visa-card { padding: 26px 22px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { padding: 28px 22px; }

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

  .cta-section { padding: 60px 20px; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost { width: 100%; max-width: 320px; text-align: center; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; padding: 15px 20px; font-size: 15px; }

  footer { padding: 32px 20px 20px; }
  .footer-top { display: none; }
  .footer-contacts-mobile {
    display: flex; flex-direction: column; gap: 0; margin-bottom: 24px;
  }
  .footer-contacts-mobile::before {
    content: 'ИталияДом';
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px; font-weight: 600; color: #fff;
    display: block; margin-bottom: 20px;
  }
  .footer-contacts-mobile a {
    font-size: 16px; color: rgba(255,255,255,0.75); text-decoration: none;
    padding: 12px 0; border-bottom: 0.5px solid rgba(255,255,255,0.1);
    font-weight: 400; transition: color 0.2s;
  }
  .footer-contacts-mobile a:first-of-type { border-top: 0.5px solid rgba(255,255,255,0.1); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 18px; }
  .footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }
  .footer-flags { font-size: 14px; letter-spacing: 2px; }
}

/* ── SCROLL REVEAL ANIMATIONS ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAV SCROLLED STATE ── */
nav.scrolled {
  background: rgba(253,252,249,0.97);
  box-shadow: 0 1px 20px rgba(42,40,37,0.06);
}

/* ── PAGE HERO ENHANCEMENTS ── */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ── STAT ROW ── */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border-strong);
  border-radius: 16px; overflow: hidden; margin-bottom: 64px;
}
.stat-item { background: var(--warm-white); padding: 40px 36px; }
.stat-num {
  font-family: var(--font-serif); font-size: clamp(40px, 5vw, 56px);
  font-weight: 600; color: var(--terracotta);
  line-height: 1; margin-bottom: 12px;
}
.stat-label { font-size: 13px; color: var(--stone); font-weight: 300; line-height: 1.6; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat-item { padding: 24px 20px; }
}
