:root {
  --bg: #fcf8f6;
  --surface: #ffffff;
  --surface-soft: #f8f1ee;
  --text: #2d2a2a;
  --muted: #6e6868;
  --accent: #c78c8c;
  --accent-dark: #ad7474;
  --border: #eee3df;
  --shadow: 0 18px 38px rgba(37, 20, 15, 0.08);
  --radius: 16px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: clamp(5rem, 7vw, 6rem) 0;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(252, 248, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(238, 227, 223, 0.8);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 16, 14, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  z-index: 19;
}

.nav-wrap {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin: 0.38rem auto;
  background: var(--text);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  align-items: center;
  position: relative;
  background-image: url("assets/images/main_fon.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(248, 240, 236, 0.86) 15%,
    rgba(248, 240, 236, 0.42) 70%,
    rgba(248, 240, 236, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-content p {
  font-size: 1.07rem;
  max-width: 33rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  padding: 0.86rem 1.5rem;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 20px rgba(199, 140, 140, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 28px rgba(199, 140, 140, 0.3);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

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

.section-header {
  max-width: 44rem;
  margin-bottom: 2.4rem;
}

.about {
  background: linear-gradient(to bottom, #fff, #fcf8f6);
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.services-grid,
.testimonials-grid,
.pricing-grid {
  display: grid;
  gap: 1.2rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonials-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(37, 20, 15, 0.13);
  border-color: #e3d1cc;
}

.results {
  background: var(--surface-soft);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.result-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}

.result-card img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.result-card:hover img {
  transform: scale(1.03);
}

.result-card figcaption {
  padding: 0.95rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote {
  font-size: 1.02rem;
  color: var(--text);
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 600;
}

.plan {
  position: relative;
}

.plan ul {
  margin: 0 0 1.3rem;
  padding-left: 1.05rem;
  color: var(--muted);
}

.plan li + li {
  margin-top: 0.52rem;
}

.price {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
}

.price span {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
}

.featured {
  border-color: #d8b5b5;
  transform: translateY(-8px);
}

.featured .tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--accent);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

/* Scroll reveal for soft section transitions */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form label {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbcac4;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font-family: inherit;
  font-size: 0.97rem;
  margin-bottom: 0.4rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(199, 140, 140, 0.18);
}

.error-message {
  display: block;
  color: #b24444;
  font-size: 0.83rem;
  min-height: 1.2rem;
  margin-bottom: 0.55rem;
}

.contact-form .input-error {
  border-color: #b24444;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: #50724b;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-wrap {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.social-links a:hover {
  color: var(--accent-dark);
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    transform: none;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 5rem;
    left: 0;
    background: #fdf8f6;
    border: 1px solid var(--border);
    box-shadow: 0 22px 34px rgba(22, 12, 10, 0.13);
    padding: 1rem 1.15rem 1.2rem;
    display: grid;
    gap: 0.5rem;
    transform: translateY(-14px);
    transform-origin: top center;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.34s ease,
      opacity 0.34s ease;
    z-index: 20;
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.52rem 0.1rem;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav-toggle.open span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.open span:last-child {
    transform: translateY(-2px) rotate(-45deg);
  }

  .hero {
    min-height: 80vh;
  }

  .results-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    min-height: auto;
    padding: 1.2rem 0;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.4rem, var(--max-width));
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .contact-form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .card,
  .btn,
  .result-card img,
  .site-nav,
  .nav-backdrop,
  .site-nav a {
    transition: none !important;
  }
}
