:root {
  --bg: #fcf9f6;
  --bg-soft: #fbf4f0;
  --orange: #c76f4b;
  --orange-deep: #b15d3c;
  --orange-light: #e7bba2;
  --brown: #443a34;
  --brown-light: #7a6767;
  --beige: #f5eae4;
  --surface: #fffcfa;
  --linen: #fef9f5;
  --mist: #f8f5f5;
  --success: #1f8a4c;
  --shadow: 0 18px 50px rgba(68, 58, 52, 0.1);
  --shadow-soft: 0 8px 28px rgba(68, 58, 52, 0.07);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--brown);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(252, 249, 246, 0.82), rgba(252, 249, 246, 0.94)),
    url("../img/bg-linen.webp");
  background-size: cover;
  background-attachment: fixed;
  background-position: center top;
  font-family: Lora, Georgia, serif;
  line-height: 1.65;
}

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

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-deep);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(252, 249, 246, 0.82);
  border-bottom: 1px solid rgba(199, 111, 75, 0.12);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f2e8df;
  box-shadow: var(--shadow-soft);
}

.brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}

.nav a {
  color: var(--brown);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--beige);
  color: var(--brown);
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--brown);
  border-radius: 1px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 187, 162, 0.45), transparent 68%);
  pointer-events: none;
}

.hero {
  position: relative;
  padding: 56px 0 28px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Grand Hotel", cursive;
  font-size: 2rem;
  color: var(--orange);
  line-height: 1;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead {
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--brown-light);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: Montserrat, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, #d37d58, var(--orange));
  color: #fff;
  box-shadow: 0 10px 24px rgba(199, 111, 75, 0.28);
}

.btn--primary:hover {
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 252, 250, 0.86);
  border-color: rgba(199, 111, 75, 0.28);
  color: var(--brown);
}

.btn--ghost:hover {
  color: var(--brown);
}

.btn.is-disabled {
  pointer-events: none;
  opacity: 0.72;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--brown-light);
}

.phones {
  position: relative;
  min-height: 560px;
}

.device {
  position: absolute;
  left: 50%;
  margin: 0;
}

.device img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.device--main {
  top: 16px;
  z-index: 3;
  width: min(250px, 48%);
  transform: translateX(-50%) rotate(2deg);
}

.device--left {
  top: 92px;
  z-index: 2;
  width: min(210px, 40%);
  transform: translateX(calc(-50% - 7.25rem)) rotate(-8deg);
}

.device--right {
  top: 92px;
  z-index: 1;
  width: min(210px, 40%);
  transform: translateX(calc(-50% + 7.25rem)) rotate(8deg);
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 36px 0 72px;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section__head p {
  color: var(--brown-light);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: rgba(255, 252, 250, 0.86);
  border: 1px solid rgba(199, 111, 75, 0.1);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(199, 111, 75, 0.12);
  color: var(--orange);
}

.card h3 {
  font-size: 1.28rem;
}

.card p {
  margin: 0;
  color: var(--brown-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(122, 103, 103, 0.08);
}

.step__num {
  font-family: "Grand Hotel", cursive;
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 14px 16px;
  font-family: Montserrat, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brown-light);
}

.legal-page,
.help-page {
  padding: 36px 0 88px;
}

.legal,
.help-content {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 36px 44px;
  border-radius: 32px;
  background: rgba(255, 252, 250, 0.9);
  border: 1px solid rgba(199, 111, 75, 0.1);
  box-shadow: var(--shadow-soft);
}

.legal h1,
.help-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal h2,
.help-content h2 {
  margin-top: 32px;
  font-size: 1.45rem;
}

.legal p,
.help-content p,
.legal li,
.help-content li {
  color: var(--brown-light);
}

.legal ul,
.help-content ul,
.legal ol,
.help-content ol {
  padding-left: 1.15rem;
}

.notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(199, 111, 75, 0.1);
  border: 1px solid rgba(199, 111, 75, 0.18);
  color: var(--brown);
  font-size: 0.95rem;
}

.faq details {
  border-bottom: 1px solid rgba(199, 111, 75, 0.12);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-family: Montserrat, sans-serif;
  font-weight: 650;
  color: var(--brown);
}

.faq p {
  margin: 10px 0 6px;
}

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid rgba(199, 111, 75, 0.12);
  background: rgba(251, 244, 240, 0.72);
}

.site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a {
  color: var(--brown);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
  color: var(--brown-light);
  font-size: 0.92rem;
}

.site-footer__credit {
  margin-top: 8px;
}

.site-footer__credit a {
  color: var(--orange);
}

.leaf {
  position: absolute;
  pointer-events: none;
  opacity: 0.28;
  color: var(--orange);
}

@media (max-width: 920px) {
  .hero__grid,
  .cards,
  .steps,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .phones {
    min-height: 480px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 20px auto;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

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

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero__grid,
  .cards,
  .steps,
  .gallery,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .phones {
    min-height: 420px;
  }

  .phones {
    min-height: 0;
    display: flex;
    justify-content: center;
  }

  .device--left,
  .device--right {
    display: none;
  }

  .device--main {
    position: relative;
    left: auto;
    inset: auto;
    width: min(260px, 78%);
    margin: 8px auto 0;
    transform: none;
  }

  .legal,
  .help-content {
    padding: 24px 20px 32px;
  }
}
