/* Стили лендинга Лианы Мулярчик. Палитра: жемчужный, розово-бежевый, глубокий шалфей. */

/* ---------- Шрифты (локальные, без внешних запросов) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-italic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --pearl: #f7f2ec;
  --cream: #fffbf7;
  --rose: #e8d5cb;
  --rose-soft: #f3eae4;
  --sage: #3e5346;
  --sage-deep: #2f453a;
  --sage-hover: #24362e;
  --sage-soft: #e6ede7;
  --ink: #2a2623;
  --muted: #4a453f;
  --line: #cdbeb3;
  --focus: #2f453a;
  --shadow: 0 18px 40px rgba(47, 69, 58, 0.12);
  --radius: 1.25rem;
  --font-serif: "Cormorant Garamond", "Noto Serif", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --content: 70rem;
  --sticky-h: 4.5rem;
}

/* ---------- Сброс и база ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--pearl);
  /* Место под липкую кнопку на телефоне */
  padding-bottom: calc(var(--sticky-h) + 1rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--sage-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sage-hover);
}

:focus-visible {
  outline: 0.18rem solid var(--focus);
  outline-offset: 0.2rem;
}

/* Скрытый заголовок только если текст и так ясен из контекста — здесь не используем. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Пропуск к содержанию ---------- */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--sage-deep);
  color: var(--cream);
  text-decoration: none;
  border-radius: 0.4rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--cream);
  outline-color: var(--cream);
}

/* ---------- Шапка ---------- */
.site-header {
  background: rgba(247, 242, 236, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(100% - 1.75rem, var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.6rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover,
.logo:focus-visible {
  color: var(--sage-deep);
}

.logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Меню как disclosure, без JavaScript */
.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: min(18rem, 90vw);
  padding: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.nav-panel a {
  display: block;
  padding: 0.45rem 0.6rem;
  text-decoration: none;
  border-radius: 0.4rem;
  color: var(--ink);
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

/* Два класса, чтобы победить правило .btn { display: inline-flex } */
.btn.header-cta {
  display: none;
}

/* ---------- Общие блоки ---------- */
main {
  display: block;
}

.section {
  padding: 3.25rem 0;
}

.section:nth-of-type(even):not(.cta-final) {
  background: var(--rose-soft);
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.section h1,
.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.section h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.4;
  max-width: 42rem;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}


/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  background: var(--sage-deep);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid var(--sage-deep);
  line-height: 1.3;
}

.btn:hover,
.btn:focus-visible {
  background: var(--sage-hover);
  border-color: var(--sage-hover);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--sage-soft);
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}

/* ---------- Герой ---------- */
.hero {
  padding: 2rem 0 3rem;
  background: var(--pearl);
}

.hero-grid {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  grid-template-areas:
    "copy"
    "photo"
    "more";
}

.hero-copy { grid-area: copy; }
.hero-photo { grid-area: photo; }
.hero-more { grid-area: more; }

.hero-copy h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  line-height: 1.1;
}

.hero-role {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.6rem, 4.4vw, 2.15rem);
  line-height: 1.25;
}

.hero-place {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-photo {
  position: relative;
  justify-self: center;
  max-width: 22.5rem;
  width: 100%;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1rem -0.85rem -0.85rem 1rem;
  background: var(--sage-soft);
  border-radius: calc(var(--radius) + 0.4rem);
  z-index: 0;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Карточки зон ---------- */
.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}

.cards h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--cream);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.15rem 4.2rem;
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ---------- Доверие ---------- */
.trust {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  background: var(--cream);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
}

.trust h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}


/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.faq details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.2rem 0.9rem 0.2rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 2rem 0.9rem 0;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  color: var(--sage);
  font-weight: 600;
  font-size: 1.3rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq .faq-body {
  padding: 0.85rem 0 1rem;
}

/* ---------- Финальный призыв ---------- */
section.cta-final {
  background: var(--sage-deep);
  color: var(--cream);
  text-align: center;
}

section.cta-final h2,
section.cta-final .section-kicker,
section.cta-final p {
  color: var(--cream);
}

section.cta-final .section-kicker {
  color: #d5e3d9;
}

section.cta-final .btn {
  background: var(--cream);
  color: var(--sage-deep);
  border-color: var(--cream);
  margin-top: 0.6rem;
}

section.cta-final .btn:hover,
section.cta-final .btn:focus-visible {
  background: var(--rose-soft);
  border-color: var(--rose-soft);
  color: var(--sage-hover);
  outline-color: var(--cream);
}

section.cta-final a:not(.btn) {
  color: var(--cream);
}

/* ---------- Подвал ---------- */
.site-footer {
  background: #241f1c;
  color: #f3ece6;
  padding: 2.4rem 0 2.2rem;
}

.footer-inner {
  display: grid;
  gap: 1.4rem;
}

.site-footer h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fffbf7;
}

.site-footer p,
.site-footer li {
  margin: 0 0 0.4rem;
  color: #e6ddd4;
}

.site-footer a {
  color: #f3ece6;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  outline-color: #fff;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}


.copyright {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #4a433d;
  font-size: 0.95rem;
  color: #d6cbc1;
}

/* ---------- Липкая кнопка на телефоне ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(247, 242, 236, 0.96);
  border-top: 1px solid var(--line);
}

.sticky-cta .btn {
  width: 100%;
}

/* ---------- Десктоп ---------- */
@media (min-width: 48rem) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .btn.header-cta {
    display: inline-flex;
    padding: 0.55rem 1rem;
    font-size: 1rem;
  }

  .nav-menu > summary {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .nav-menu[open] .nav-panel,
  .nav-panel {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  /* Чтобы меню было видно, даже когда details закрыт */
  .nav-menu:not([open]) .nav-panel {
    display: flex;
  }

  .nav-panel a {
    padding: 0.35rem 0.55rem;
    font-size: 1rem;
  }

  .hero {
    padding: 3.2rem 0 4.2rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    grid-template-areas:
      "copy photo"
      "more photo";
    gap: 0 3rem;
    align-items: center;
  }

  .hero-copy { align-self: end; }
  .hero-more { align-self: start; padding-top: 1rem; }

  .hero-photo {
    max-width: 26rem;
    justify-self: end;
  }

  .section {
    padding: 4.4rem 0;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    padding: 1.4rem 1.2rem 1.3rem;
  }

  .steps li::before {
    position: static;
    margin-bottom: 0.7rem;
  }

  .footer-inner {
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Десктопная навигация отдельно, чтобы не путать скринридер закрытым details */
.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-desktop a {
  display: block;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 0.4rem;
  font-size: 1rem;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

@media (min-width: 48rem) {
  .nav-desktop {
    display: block;
  }

  .nav-menu {
    display: none;
  }
}

.footer-name {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fffbf7;
}

@media (max-width: 47.99rem) {
  .logo {
    font-size: 1.15rem;
    max-width: calc(100% - 7.5rem);
  }

  .logo span {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
  }
}
