/* ===========================================================
   Nicole — global reset & base
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--c-warm-ivory);
  color: var(--c-text-body-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, blockquote, p, figure { margin: 0; }

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

ul { margin: 0; padding: 0; list-style: none; }

svg { display: block; }

:focus-visible {
  outline: 2px solid var(--c-aqua);
  outline-offset: 3px;
}

/* --- Layout --- */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

section { position: relative; }

/* --- Typography helpers --- */
.eyebrow {
  font-family: var(--f-sans);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: #426A70;
  font-weight: 600;
}

.eyebrow--dark { color: #426A70; }

.section-kicker .eyebrow { color: #6B8790; }
.section-kicker--light::before { background: #A8BEC3; }
.section-kicker--light .eyebrow { color: #A8BEC3; }

.section-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
  color: var(--c-deep-petrol);
}

.section-title--light { color: var(--c-warm-ivory); }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: #6B8790;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--r-btn);
  white-space: nowrap;
  transition: border-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease,
              transform var(--dur-fast) ease,
              background var(--dur-fast) ease;
}

.btn-primary {
  background: #1B252A;
  color: #F3EEE5;
  border: 1px solid rgba(243, 238, 229, 0.15);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: color-mix(in srgb, #1B252A 85%, #7C6657 15%);
  color: #F3EEE5;
  border-color: rgba(190, 150, 120, 0.55);
  box-shadow: 0 0 18px rgba(190, 150, 120, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #F3EEE5;
  border: 1px solid rgba(243, 238, 229, 0.28);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: transparent;
  color: #F3EEE5;
  border-color: #7A6258;
  box-shadow: 0 0 12px rgba(122, 98, 88, 0.22);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--c-deep-petrol);
  border: 1px solid rgba(8, 35, 45, 0.35);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  border-color: var(--c-deep-petrol);
  box-shadow: 0 0 14px rgba(8, 35, 45, 0.18);
  transform: translateY(-2px);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--c-aqua);
  color: var(--c-deep-petrol);
  padding: 10px 16px;
  border-radius: var(--r-btn);
  z-index: 999;
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Social icon buttons (shared: header + footer) --- */
.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 35, 45, 0.4);
  border: 1px solid rgba(242, 236, 226, 0.4);
  color: var(--c-warm-ivory);
  backdrop-filter: blur(3px);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--c-warm-ivory);
  border-color: #B18D79;
  background: rgba(8, 35, 45, 0.6);
  box-shadow: 0 0 12px rgba(177, 141, 121, 0.25);
}

.social-link__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

.social-link__icon--vk {
  width: 20px;
  height: 20px;
}

/* On light (Ivory) sections the glass backdrop must stay legible */
.site-footer .social-link { background: rgba(8, 35, 45, 0.55); }

/* --- Header --- */
.site-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: clamp(20px, 3vw, 36px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand__name {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted-dark);
  transition: color var(--dur-fast) ease;
}

.site-nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #B18D79;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--c-warm-ivory);
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after {
  transform: scaleX(1);
}

.header__contacts { display: flex; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(242, 236, 226, 0.3);
  color: var(--c-warm-ivory);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.site-header.is-open .nav-toggle__icon { background: transparent; }
.site-header.is-open .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--c-deep-petrol);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) ease;
    z-index: 40;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .site-nav__list a { font-size: 18px; }

  .header__contacts { display: none; }
}

/* --- Footer --- */
.site-footer {
  background: transparent;
  color: var(--c-text-muted-dark);
  padding-block: clamp(40px, 5vw, 60px) 28px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(242, 236, 226, 0.1);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__tagline {
  font-size: 13px;
  color: var(--c-text-muted-dark);
  opacity: 0.7;
  max-width: 260px;
}

.site-footer__social-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.site-footer__social-caption {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__social-arrow {
  width: 32px;
  height: 26px;
  flex-shrink: 0;
}

.site-footer__social-label {
  font-size: 13px;
  color: var(--c-text-muted-dark);
  opacity: 0.7;
}

.site-footer__social { flex-wrap: wrap; }

.site-footer__social-note {
  margin-top: 10px;
  max-width: 260px;
  font-size: 9.5px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-text-muted-dark);
  opacity: 0.45;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 24px;
  font-size: 13px;
}

.site-footer__legal a { color: var(--c-text-muted-dark); border-bottom: 1px solid transparent; }
.site-footer__legal a:hover { color: var(--c-aqua); border-color: var(--c-aqua); }

.site-footer__credit {
  font-size: 13px;
  opacity: 0.55;
  margin-left: auto;
}

.site-footer__credit a:hover { color: var(--c-aqua); }

@media (max-width: 640px) {
  .site-footer__top { justify-content: center; text-align: center; }
  .site-footer__brand { align-items: center; }
  .site-footer__social-block { align-items: center; }
}

/* Юридические страницы (privacy.html, consent.html) */
.legal-page { background: var(--c-warm-ivory); }
.legal-header { background: var(--c-deep-petrol); padding-block: 32px; }
.legal-header .brand__name { color: var(--c-warm-ivory); }
.legal-main { padding-block: clamp(48px, 7vw, 88px); }
.legal-main .wrap { max-width: 760px; }
.legal-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--c-deep-petrol);
  margin-bottom: 8px;
}
.legal-updated { font-size: 13px; color: var(--c-text-muted-light); margin-bottom: 40px; }
.legal-main h2 {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-deep-petrol);
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-main p, .legal-main li { font-size: 15.5px; line-height: 1.7; color: var(--c-text-body-light); }
.legal-main ul { padding-left: 20px; list-style: disc; margin-top: 10px; }
.legal-main li { margin-bottom: 6px; }
.legal-back { display: inline-block; margin-top: 48px; font-size: 14px; border-bottom: 1px solid var(--c-aqua); padding-bottom: 2px; }
