/* ===== Base & tokens ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f4ef;
  --bg-soft-2: #efece3;
  --ink: #15141a;
  --ink-soft: #2b2932;
  --text: #201f26;
  --text-muted: #6d6a75;
  --line: #e7e3da;
  --gold: #ab8654;
  --gold-dark: #8a6a40;
  --gold-soft: #e7d9c1;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 14px rgba(21, 20, 26, 0.06);
  --shadow-md: 0 20px 60px rgba(21, 20, 26, 0.12);
  --container: 1180px;
  --header-h: 84px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; }

h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.3; color: var(--ink); }

section { scroll-margin-top: var(--header-h); }

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

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-label--light { color: var(--gold-soft); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.6rem); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(21, 20, 26, 0.05);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.logo span { color: var(--gold-dark); }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-dark);
  transition: right 0.25s ease;
}
.nav__link:hover::after { right: 0; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav__link {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 16px; }

/* ===== Hero ===== */
.hero { padding: 88px 0 110px; background: var(--bg); }

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

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

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: 40px;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
}
.hero__stat span { font-size: 13.5px; color: var(--text-muted); }

.hero__media { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink) 0%, #35323d 55%, var(--gold-dark) 130%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
}
.hero__photo-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); position: absolute; inset: 0; }

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hero__badge .icon { color: var(--gold-dark); }

/* ===== About ===== */
.about { padding: 110px 0; background: var(--bg-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.about__text p {
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 18px;
}

.advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.advantage__icon {
  width: 30px; height: 30px;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.advantage h3 { font-size: 17.5px; margin-bottom: 8px; }
.advantage p { font-size: 14.5px; color: var(--text-muted); }

/* ===== Services ===== */
.services { padding: 110px 0; background: var(--bg); }

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

.service-card {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__icon {
  width: 26px; height: 26px;
  color: var(--white);
  background: var(--ink);
  padding: 13px;
  width: 50px; height: 50px;
  border-radius: 50%;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-muted); }

/* ===== Request (lead form) ===== */
.request {
  padding: 110px 0;
  background: var(--ink);
  color: var(--white);
}

.request__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.request__info h2 { color: var(--white); margin-bottom: 18px; }
.request__info > p { color: rgba(255, 255, 255, 0.65); font-size: 16px; margin-bottom: 28px; max-width: 420px; }

.request__points { display: flex; flex-direction: column; gap: 14px; }
.request__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.request__points .icon { color: var(--gold); }

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

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.required { color: #b5482f; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 90px; }

.form-row.is-invalid input,
.form-row.is-invalid select {
  border-color: #b5482f;
  background: #fbf1ef;
}
.form-error {
  display: block;
  min-height: 18px;
  font-size: 12.5px;
  color: #b5482f;
  margin-top: 6px;
}

.request__privacy {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.request__privacy a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.request__error {
  font-size: 13.5px;
  color: #b5482f;
  text-align: center;
  margin-top: 14px;
}

.request__success {
  text-align: center;
  padding: 30px 10px;
}
.request__success-icon {
  width: 56px; height: 56px;
  color: var(--white);
  background: #3f8f5f;
  border-radius: 50%;
  padding: 15px;
  margin: 0 auto 20px;
}
.request__success p {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
}

/* ===== Reviews ===== */
.reviews { padding: 110px 0; background: var(--bg); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.review-card {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}
.review-card__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 18px; }
.review-card__stars .icon { width: 16px; height: 16px; }
.review-card blockquote {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 22px;
}
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.review-card__name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.review-card__role { font-size: 13px; color: var(--text-muted); }

/* ===== Contacts ===== */
.contacts { padding: 110px 0; background: var(--bg-soft); }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 30px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 24px; height: 24px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.contact-card__icon--text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  width: auto; height: auto;
}
.contact-card__label { font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-card__value { font-size: 14.5px; font-weight: 600; color: var(--ink); word-break: break-word; }

.contacts__cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 48px 0; }

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

.footer__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__brand span {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.footer__socials { display: flex; align-items: center; gap: 18px; }
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer__socials a:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }

.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__copy { font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer__credit { font-size: 12.5px; color: rgba(255, 255, 255, 0.4); }
.footer__credit a { color: #7db3ff; font-weight: 600; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }

/* ===== Legal pages ===== */
.legal { padding: 110px 0 100px; background: var(--bg); }
.legal .container { max-width: 720px; }
.legal h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.8rem); margin-bottom: 10px; }
.legal__updated { font-size: 13.5px; color: var(--text-muted); margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); margin: 40px 0 14px; }
.legal p { font-size: 15.5px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal li { font-size: 15.5px; color: var(--text); line-height: 1.6; }
.legal a { color: var(--gold-dark); font-weight: 600; }

/* ===== Scroll reveal ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .request__inner { grid-template-columns: 1fr; gap: 48px; }
  .request__info { text-align: center; }
  .request__points { align-items: center; }
  .request__info > p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .nav, .header__actions { display: none; }
  .burger { display: flex; }
  .mobile-nav.is-open { display: flex; }

  .hero { padding: 56px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { order: -1; width: 100%; max-width: 380px; margin: 0 auto; }
  .hero__stats { gap: 28px; flex-wrap: wrap; }
  .hero__actions { justify-content: center; }
  .hero__content { text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -22px; }

  .about, .services, .request, .reviews, .contacts { padding: 72px 0; }
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }

  .advantages { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }

  .request__card { padding: 28px 22px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { align-items: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__stats { justify-content: center; gap: 22px 30px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .contacts__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__cta { flex-direction: column; width: 100%; }
  .contacts__cta .btn { width: 100%; }
}
