/* ============================================================
   АЛЕЗЕНДО — мебельная мастерская
   Главная страница
   ============================================================ */

:root {
  --bg:            #0b0b0c;
  --bg-soft:       #111113;
  --panel:         #16161a;

  --gold:          #c9a227;
  --gold-light:    #f0dda0;
  --gold-deep:     #8a6614;
  --gold-line:     rgba(201, 162, 39, .38);

  --text:          #e8e4dc;
  --text-dim:      #9a938a;

  --header-h:      104px;
  --radius:        4px;
  --container:     1320px;

  --ease:          cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* Золотой градиентный текст */
.gold-text {
  background: linear-gradient(178deg, #fbf1c7 4%, #e3c76c 34%, #c9a227 66%, #a07d1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   ХЕДЕР
   ============================================================ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(8, 8, 9, .92) 0%, rgba(8, 8, 9, .55) 100%);
  backdrop-filter: blur(10px);
  transition: background .4s var(--ease), height .4s var(--ease);
}

.header.is-scrolled {
  height: 86px;
  background: rgba(8, 8, 9, .97);
  border-bottom: 1px solid rgba(201, 162, 39, .16);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* --- логотип --- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  cursor: default;
}

.logo__mark {
  width: auto;
  height: 82px;
  filter: drop-shadow(0 8px 22px rgba(201, 162, 39, .22));
  transition: height .4s var(--ease);
}

.header.is-scrolled .logo__mark { height: 66px; }

.logo__sub {
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .34em;
  color: var(--text-dim);
  padding-left: 3px;
}

/* --- навигация --- */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: auto;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 6px 0;
  transition: color .3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width .35s var(--ease);
}

.nav__link:hover { color: var(--gold-light); }
.nav__link:hover::after { width: 100%; }

/* --- кнопка личного кабинета --- */
.btn-account {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 9px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .06));
  color: var(--gold-light);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}

.btn-account:hover {
  background: linear-gradient(180deg, rgba(201, 162, 39, .42), rgba(201, 162, 39, .16));
  box-shadow: 0 8px 26px -10px rgba(201, 162, 39, .8);
  transform: translateY(-1px);
}

.btn-account__text { display: flex; flex-direction: column; line-height: 1.2; }

.btn-account__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
}

.btn-account__sub {
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: .04em;
  color: rgba(240, 221, 160, .72);
}

.btn-account__icon { width: 24px; height: 24px; flex-shrink: 0; }

/* --- бургер (мобильный) --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--gold-light);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   ГЛАВНЫЙ ЭКРАН
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/01_hero_interior.jpg'),
                    linear-gradient(150deg, #2a2119 0%, #14120f 45%, #0a0a0b 100%);
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    /* мягкое пятно под заголовком — светлые участки фото не съедают текст */
    radial-gradient(ellipse 74% 58% at 50% 46%,
      rgba(6, 6, 7, .74) 0%, rgba(6, 6, 7, .5) 42%, rgba(6, 6, 7, 0) 78%),
    linear-gradient(90deg, rgba(6, 6, 7, .88) 0%, rgba(6, 6, 7, .5) 45%, rgba(6, 6, 7, .38) 100%),
    linear-gradient(180deg, rgba(6, 6, 7, .8) 0%, rgba(6, 6, 7, .15) 40%, rgba(6, 6, 7, .95) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  text-align: center;
}

.hero__title {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: .02em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}

.hero__subtitle {
  margin-top: 26px;
  font-size: clamp(17px, 1.9vw, 27px);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text);
}

.hero__btn { margin-top: 34px; }

/* --- золотая кнопка --- */
.btn-gold {
  display: inline-block;
  padding: 15px 42px;
  border: 1px solid rgba(247, 233, 176, .5);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #e0be55 0%, #c9a227 52%, #a37f1b 100%);
  color: #1a1408;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  box-shadow: 0 14px 34px -14px rgba(201, 162, 39, .9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 20px 44px -14px rgba(201, 162, 39, 1);
}

/* --- стрелка вниз --- */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 2;
  width: 40px;
  margin-left: -20px;
  animation: floatDown 2.4s var(--ease) infinite;
  transition: filter .3s var(--ease);
}

.scroll-down img { width: 100%; height: auto; }

.scroll-down:hover { filter: drop-shadow(0 4px 12px rgba(201, 162, 39, .7)); }

/* --- стрелка между бонусной программой и витриной --- */
.scroll-next {
  display: block;
  width: 34px;
  margin: 0 auto 46px;
  transition: filter .3s var(--ease), transform .3s var(--ease);
}

.scroll-next img { width: 100%; height: auto; }

.scroll-next:hover {
  transform: translateY(3px);
  filter: drop-shadow(0 4px 12px rgba(201, 162, 39, .7));
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50%      { transform: translateY(9px); opacity: 1; }
}

/* ============================================================
   БОНУСНАЯ ПРОГРАММА
   ============================================================ */

.bonus {
  position: relative;
  padding: 104px 0 116px;
  background: var(--bg);
  overflow: hidden;
}

.bonus__eyebrow {
  text-align: center;
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 400;
  letter-spacing: .24em;
  color: var(--text);
}

.bonus__title {
  margin-top: 14px;
  text-align: center;
  font-size: clamp(28px, 3.9vw, 55px);
  font-weight: 700;
  letter-spacing: .03em;
}

/* --- монеты --- */
.coin {
  position: absolute;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .65));
  animation: coinFloat 6s ease-in-out infinite;
}

.coin--right  { top: 76px;  right: 7%;  width: 106px; height: auto; }
.coin--bottom { bottom: 26px; right: 3.5%; width: 88px; height: auto; animation-delay: -3s; }

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-16px) rotate(4deg); }
}

/* --- шаги --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-top: 68px;
}

.step {
  flex: 0 1 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.step__icon {
  width: auto;
  height: 62px;
  filter: drop-shadow(0 6px 16px rgba(201, 162, 39, .25));
}

.step__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.step__num { font-weight: 600; }

.step__accent {
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
}

.step__arrow {
  flex: 0 0 auto;
  width: 34px;
  margin-top: 16px;
  color: rgba(201, 162, 39, .55);
}

/* ============================================================
   ВИТРИНА / КОЛЛЕКЦИИ
   ============================================================ */

.showcase {
  padding: 0 0 96px;
  background: var(--bg);
}

/* --- большая картинка в золотой рамке --- */
.showcase__hero {
  display: block;
  padding: 10px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201, 162, 39, .07), rgba(201, 162, 39, .02));
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.showcase__hero:hover {
  border-color: var(--gold);
  box-shadow: 0 24px 60px -30px rgba(201, 162, 39, .75);
}

.showcase__hero-img {
  display: block;
  height: clamp(280px, 42vw, 560px);
  border-radius: 2px;
  background-image: url('../img/01_hero_interior.jpg'),
                    linear-gradient(140deg, #2c231a 0%, #17140f 50%, #0d0c0b 100%);
  background-size: cover, cover;
  background-position: center, center;
}

/* --- сетка карточек --- */
.collections {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 216px;
  padding: 28px 26px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background-image: linear-gradient(145deg, #241d16 0%, #16130f 55%, #0e0d0c 100%);
  background-size: cover, cover;
  background-position: center, center;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}

.card--wide { grid-column: span 3; min-height: 250px; }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 7, .55) 0%, rgba(6, 6, 7, .72) 100%);
  transition: background .45s var(--ease);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -26px rgba(201, 162, 39, .7);
}

.card:hover::before {
  background: linear-gradient(180deg, rgba(6, 6, 7, .35) 0%, rgba(6, 6, 7, .6) 100%);
}

.card__label {
  position: relative;
  z-index: 2;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(180deg, #fbf1c7, #d8b445);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* на фотографиях коллекций уже напечатаны названия — затемняем слабее */
.card--classic::before,
.card--minimal-1::before,
.card--tables::before,
.card--minimal-2::before {
  background: linear-gradient(180deg, rgba(6, 6, 7, .18) 0%, rgba(6, 6, 7, .34) 100%);
}

.card--classic:hover::before,
.card--minimal-1:hover::before,
.card--tables:hover::before,
.card--minimal-2:hover::before {
  background: linear-gradient(180deg, rgba(6, 6, 7, .04) 0%, rgba(6, 6, 7, .18) 100%);
}

/* фотографии коллекций */
.card--classic {
  background-image: url('../img/02_card_modern_classic.jpg'),
                    linear-gradient(145deg, #241d16 0%, #16130f 55%, #0e0d0c 100%);
}

.card--minimal-1 {
  background-image: url('../img/03_card_minimalism_large.jpg'),
                    linear-gradient(145deg, #241d16 0%, #16130f 55%, #0e0d0c 100%);
}

.card--tables {
  background-image: url('../img/04_card_dining_table.jpg'),
                    linear-gradient(145deg, #241d16 0%, #16130f 55%, #0e0d0c 100%);
}

.card--minimal-2 {
  background-image: url('../img/05_card_minimalism_small.jpg'),
                    linear-gradient(145deg, #241d16 0%, #16130f 55%, #0e0d0c 100%);
}

/* --- карточка «Доставка» --- */
.card--info {
  background-image: linear-gradient(160deg, #191713 0%, #111010 100%);
  gap: 10px;
}

.card--info::before { background: none; }

.card__icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: auto;
  color: var(--gold-light);
}

.card__label--static { font-size: clamp(14px, 1.35vw, 19px); }

.card__note {
  position: relative;
  z-index: 2;
  max-width: 240px;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  color: var(--text-dim);
}

/* ============================================================
   ФУТЕР
   ============================================================ */

.footer {
  padding: 44px 0 40px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(201, 162, 39, .14);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__contacts { display: flex; flex-direction: column; gap: 5px; }

.footer__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 3px;
}

.footer__phone {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
  transition: color .3s var(--ease);
}

.footer__phone:hover { color: var(--gold-light); }

.footer__cta {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--gold-light);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color .35s var(--ease), color .35s var(--ease);
}

.footer__cta:hover { border-color: var(--gold); color: #fbf1c7; }

.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__spark {
  width: 30px;
  height: 30px;
  margin-right: 12px;
  flex-shrink: 0;
}

.social {
  width: 21px;
  height: 21px;
  color: var(--text-dim);
  transition: color .3s var(--ease), transform .3s var(--ease);
}

.social:hover { color: var(--gold-light); transform: translateY(-2px); }

/* ============================================================
   ЗАГЛУШКА-УВЕДОМЛЕНИЕ
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 200;
  transform: translate(-50%, 24px);
  padding: 14px 28px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(18, 17, 16, .97);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  color: var(--text);
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.toast b { color: var(--gold-light); font-weight: 600; }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1100px) {
  .container { padding: 0 28px; }
  .nav { gap: 24px; }
  .header__inner { gap: 24px; }
  .steps { flex-wrap: wrap; gap: 28px 4px; }
  .step { flex: 0 1 44%; }
  .step__arrow { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 84px; }

  .logo__mark { height: 64px; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    background: rgba(8, 8, 9, .99);
    border-bottom: 1px solid transparent;
    transition: max-height .45s var(--ease), padding .45s var(--ease), border-color .45s var(--ease);
  }

  .nav.is-open {
    max-height: 300px;
    padding: 14px 28px 22px;
    border-bottom-color: rgba(201, 162, 39, .18);
  }

  .nav__link { width: 100%; padding: 13px 0; font-size: 15px; }

  .btn-account { margin-left: auto; padding: 8px 12px; }
  .btn-account__title { font-size: 11px; }
  .btn-account__sub { font-size: 9px; }

  .collections { grid-template-columns: repeat(2, 1fr); }
  .card, .card--wide { grid-column: span 1; min-height: 190px; }
  .card--info { grid-column: span 2; }

  .coin--right  { width: 74px; right: 4%; top: 60px; }
  .coin--bottom { width: 58px; right: 8%; }

  .bonus { padding: 76px 0 84px; }
  .steps { margin-top: 48px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }

  .logo__mark { height: 54px; }
  .logo__sub { font-size: 7px; letter-spacing: .24em; }

  .btn-account__text { display: none; }
  .btn-account { padding: 8px; }

  .hero__title { font-size: clamp(19px, 6.2vw, 30px); }
  .hero__subtitle { margin-top: 18px; font-size: 15px; }
  .bonus__title { font-size: clamp(22px, 6.4vw, 32px); }
  .bonus__eyebrow { font-size: 11px; letter-spacing: .18em; }

  .coin--right  { width: 54px; top: 34px; right: 2%; opacity: .85; }
  .coin--bottom { display: none; }

  .step { flex: 0 1 100%; }
  .collections { grid-template-columns: 1fr; }
  .card, .card--wide, .card--info { grid-column: span 1; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
}

/* Уважаем настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
