/* =========================================================
   NEONICA — премиальный лендинг
   Палитра: кремовый / графит / пыльное золото
   ========================================================= */

:root {
  --bg: #f6f1e8;            /* тёплый крем */
  --surface: #fdfbf6;
  --ink: #2b2722;           /* глубокий графит */
  --muted: #7c7367;
  --accent: #b4a184;        /* пыльное золото */
  --accent-strong: #9c8a68;
  --line: #e5dccd;
  --white: #fff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 24px 60px rgba(43, 39, 34, .10);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

section { scroll-margin-top: 72px; }

/* ---------- Типографика ---------- */
.label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: .01em;
  max-width: 640px;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section__head { margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { text-align: center; }
.section__head--center .h2 { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--light {
  background: var(--surface);
  color: var(--ink);
}
.btn--light:hover { background: var(--white); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: rgba(253, 251, 246, .5);
  color: var(--surface);
}
.btn--ghost:hover { background: var(--surface); color: var(--ink); }

/* =========================================================
   ШАПКА
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

.header--scrolled {
  background: rgba(246, 241, 232, .92);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}

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

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .34em;
  color: var(--surface);
  transition: color .35s ease;
}

.header--scrolled .logo { color: var(--ink); }

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

.nav__link {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(253, 251, 246, .85);
  position: relative;
  transition: color .3s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header--scrolled .nav__link { color: var(--muted); }
.header--scrolled .nav__link:hover,
.nav__link:hover { color: var(--ink); }

.nav__phone { display: none; }
.nav__link--phone { color: var(--surface); }
.header--scrolled .nav__link--phone { color: var(--ink); font-weight: 500; }

.header__phone {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--surface);
  transition: color .35s ease;
}
.header--scrolled .header__phone { color: var(--ink); }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 120;
}
.burger span {
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.burger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg {
  background: linear-gradient(160deg, #8a7c67 0%, #4a4036 55%, #2b2722 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, .25) 45%, rgba(20, 17, 14, .65) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 160px 0 120px;
  color: var(--surface);
}

.hero__label {
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(253, 251, 246, .8);
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 8.5vw, 96px);
  line-height: 1.02;
  letter-spacing: .01em;
  margin-bottom: 30px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 300;
  color: rgba(253, 251, 246, .92);
  max-width: 520px;
  margin-bottom: 42px;
}

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

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  color: rgba(253, 251, 246, .8);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* =========================================================
   О НАС
   ========================================================= */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.about__media { overflow: hidden; border-radius: 2px; background: linear-gradient(135deg, #ece3d4, #e3d6c0); }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.92);
}

.about__text .h2 { margin-bottom: 26px; }
.about__text > p:not(.label) {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 54ch;
}

.about__list { list-style: none; margin-top: 30px; }
.about__list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.about__mark { color: var(--accent-strong); }

/* =========================================================
   КАТЕГОРИИ
   ========================================================= */
.categories { background: var(--surface); border-block: 1px solid var(--line); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
}

.card__media { overflow: hidden; background: linear-gradient(135deg, #ece3d4, #e3d6c0); }
.card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 22px 4px 0; }
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin-bottom: 8px;
  transition: color .3s ease;
}
.card:hover .card__title { color: var(--accent-strong); }
.card__text { color: var(--muted); font-size: 14.5px; max-width: 30ch; }

/* =========================================================
   ПРЕИМУЩЕСТВА
   ========================================================= */
.adv__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.adv { border-top: 1px solid var(--line); padding-top: 28px; }

.adv__num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--accent-strong);
}

.adv__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 18px 0 12px;
}

.adv__text { color: var(--muted); font-size: 15px; }

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews { background: var(--surface); border-top: 1px solid var(--line); }

.reviews__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.reviews__score {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  font-weight: 500;
}

.reviews__stars { display: flex; gap: 3px; }
.star { color: var(--accent); font-size: 20px; }
.star--dim { color: var(--line); }
.reviews__meta { color: var(--muted); font-size: 14px; }

/* Слайдер */
.slider { max-width: 760px; margin-inline: auto; }

.slider__viewport { overflow: hidden; }

.slider__track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.slide blockquote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 30px;
}

.slide cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.slide cite span { color: var(--accent-strong); }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
}

.slider__arrow {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: all .3s ease;
}
.slider__arrow:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--bg); }

.slider__dots { display: flex; gap: 10px; }
.slider__dot {
  width: 8px; height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .3s ease, transform .3s ease;
}
.slider__dot--active { background: var(--accent-strong); transform: scale(1.25); }

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.contacts__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.contacts__info .h2 { margin-bottom: 40px; }

.contact-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.contact-item:last-of-type { border-bottom: 1px solid var(--line); }

.contact-item svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--accent-strong);
  margin-top: 3px;
}

.contact-item__label {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 17px;
  font-weight: 400;
}
.contact-item a.contact-item__value:hover { color: var(--accent-strong); }

.contacts__socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .3s ease;
}
.social svg { width: 20px; height: 20px; }
.social:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-strong); }

.contacts__map {
  min-height: 460px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: saturate(.9);
}
.contacts__map iframe { display: block; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer {
  background: #26221d;
  color: rgba(253, 251, 246, .75);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.logo--footer { color: var(--surface); font-size: 26px; }

.footer__tag {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(253, 251, 246, .55);
  max-width: 34ch;
}

.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(253, 251, 246, .7);
  transition: color .3s ease;
  width: fit-content;
}
.footer__nav a:hover { color: var(--accent); }

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  text-align: right;
}
.footer__meta a:hover { color: var(--accent); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  border-top: 1px solid rgba(253, 251, 246, .12);
  padding: 22px 0 26px;
  font-size: 12.5px;
  color: rgba(253, 251, 246, .4);
}

/* =========================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
  .adv__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about__inner,
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts__map { min-height: 360px; }

  .header__phone { display: none; }

  .nav {
    position: fixed;
    inset: 0;
    background: rgba(246, 241, 232, .98);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
    z-index: 110;
  }
  .nav--open { transform: translateY(0); }
  .nav__link { color: var(--ink); font-size: 16px; }
  .nav__phone { display: block; color: var(--ink); }

  .burger { display: flex; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: 1fr; }
  .contacts__socials { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
