/* ============================================
   LoftStudio — Minimal Warm Luxury + Emerald
   ============================================ */

:root {
  --bg:              #FAF8F5;
  --bg-alt:          #F1EDE6;
  --dark:            #1C1C1E;
  --text:            #2B2B2B;
  --text-muted:      #8A8578;
  --gold:            #B8935A;
  --gold-hover:      #9C7A45;
  --gold-light:      #D9B87C;
  --emerald:         #1F6B4A;
  --emerald-hover:   #164F37;
  --emerald-light:   #2E8B5E;
  --emerald-tint:    rgba(31, 107, 74, 0.08);
  --border:          #E5DFD4;
  --white:           #FFFFFF;
  --font-display:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-script:    'Cormorant Garamond', Georgia, serif;
  --font-body:      'Jost', system-ui, -apple-system, sans-serif;
  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(28,28,30,.04);
  --shadow-md: 0 4px 16px rgba(28,28,30,.06);
  --shadow-lg: 0 16px 48px rgba(28,28,30,.08);
  --container: 1280px;
  --transition: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.3vw, 28px); }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.eyebrow--emerald { color: var(--emerald); }
.eyebrow--emerald::before { background: var(--emerald); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.section { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--bg); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--bg); }
.section--dark p { color: rgba(250,248,245,.65); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .eyebrow::before { background: var(--gold-light); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(100px, 15vh, 160px) 0 clamp(80px, 12vh, 120px);
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  color: var(--bg);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,28,30,.78) 0%, rgba(28,28,30,.55) 50%, rgba(28,28,30,.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.hero__content { max-width: 720px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--bg);
  text-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.hero__title em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero__text {
  font-size: 18px;
  color: rgba(250,248,245,.85);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }

/* КНОПКИ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  position: relative;
  overflow: hidden;
}
.btn--gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transition: left .7s ease;
}
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,147,90,.3); }
.btn--gold:hover::before { left: 100%; }
.btn--emerald { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.btn--emerald:hover { background: var(--emerald-hover); border-color: var(--emerald-hover); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.btn--outline-light { background: transparent; color: var(--bg); border: 1.5px solid rgba(250,248,245,.5); }
.btn--outline-light:hover { background: var(--bg); color: var(--dark); border-color: var(--bg); transform: translateY(-2px); }
.btn--link { padding: 0; background: none; color: var(--gold); letter-spacing: 0.1em; }
.btn--link::after { content: '→'; transition: transform .3s ease; }
.btn--link:hover::after { transform: translateX(6px); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.section__head h2 { margin: 8px 0 0; }

/* КАТАЛОГ */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .4s ease, transform .4s ease, border-color .4s ease;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.product-card__image { aspect-ratio: 4/5; background: var(--bg-alt); overflow: hidden; position: relative; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card[data-open-modal] { cursor: pointer; }
.product-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  font-weight: 500;
  z-index: 2;
}
.product-card__badge--premium {
  background: linear-gradient(135deg, #1C1C1E 0%, #3A3A3C 100%);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.product-card__badge--comfort {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-hover) 100%);
  color: var(--white);
}
.product-card__badge--gold { background: var(--gold); color: var(--white); }
.product-card__badge--emerald { background: var(--emerald); color: var(--white); }
.product-card__badge--red { background: linear-gradient(135deg, #e74c3c, #c0392b); color: var(--white); }

.product-card__body { padding: 26px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.product-card__cat {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.product-card__cat::before { content: ''; width: 6px; height: 6px; background: var(--emerald); border-radius: 50%; }
.product-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.product-card__meta { font-size: 14px; color: var(--text-muted); }
.product-card__desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
.product-card__term { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
.product-card__term strong { color: var(--text); font-weight: 500; }
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.product-card__price--onorder {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
}
.product-card__price--onorder::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 4px;
}

.product-card__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px 14px 34px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-hover) 100%);
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px rgba(31,107,74,.3);
  animation: btnPulse 3s ease-in-out infinite;
}
.product-card__btn:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
  transform: translateY(-2px) scale(1.03);
  animation: none;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(31,107,74,.3); }
  50% { box-shadow: 0 4px 18px rgba(31,107,74,.5), 0 0 0 6px rgba(31,107,74,.08); }
}
.product-card__btn svg { width: 14px; height: 14px; }

/* ФИЛЬТРЫ */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.catalog-filter {
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--transition);
  white-space: nowrap;
}
.catalog-filter:hover { border-color: var(--gold); color: var(--gold-hover); transform: translateY(-2px); }
.catalog-filter.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  color: var(--dark);
  font-weight: 600;
}
.catalog-count { font-size: 14px; color: var(--text-muted); margin: 0 0 32px; }
.catalog-count strong { color: var(--text); font-family: var(--font-display); font-size: 20px; font-weight: 600; }

/* ШАПКА */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
  transition: padding .3s ease;
}
.site-header.is-scrolled .site-header__inner { padding: 12px 32px; }
.site-header__logo svg { display: block; height: 48px; width: auto; animation: logoBreathe 5s ease-in-out 3s infinite; }
@keyframes logoBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .25s ease;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.is-active { color: var(--gold); }
.site-nav a.is-active::after { width: 100%; }

.site-nav__phone {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  padding-left: 20px;
  margin-left: 10px;
  border-left: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
.site-nav__phone::after { display: none !important; }
.site-nav__phone:hover { color: var(--emerald); }

.site-nav__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px 18px;
  font-family: var(--font-script);
  font-size: 19px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--gold-light) !important;
  background: var(--emerald);
  border: 1px solid var(--emerald);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.site-nav__cta::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-light) 25%, var(--gold) 50%, var(--gold-light) 75%, transparent 100%);
  transform: translateX(-50%);
  transition: width .45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 3;
  max-width: calc(100% - 24px);
}
.site-nav__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(217,184,124,.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left .9s ease;
  pointer-events: none;
  z-index: 1;
}
.site-nav__cta:hover {
  background: var(--emerald-hover);
  border-color: var(--emerald-hover);
  box-shadow: 0 6px 20px rgba(31,107,74,.4), inset 0 0 0 1px rgba(217,184,124,.25);
  text-shadow: 0 0 10px rgba(217,184,124,.55);
}
.site-nav__cta:hover::after { width: calc(100% - 32px); }
.site-nav__cta:hover::before { left: 140%; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 1.5px; background: var(--text); transition: all .3s ease; }

/* Логотип анимация */
.hdr-letter { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hdr-l1 { animation: letterAppear .5s ease-out .15s forwards; }
.hdr-l2 { animation: letterAppear .5s ease-out .40s forwards; }
.hdr-l3 { animation: letterAppear .5s ease-out .65s forwards; }
.hdr-l4 { animation: letterAppear .5s ease-out .90s forwards; }
.hdr-s1 { animation: letterAppear .4s ease-out 2.30s forwards; }
.hdr-s2 { animation: letterAppear .4s ease-out 2.50s forwards; }
.hdr-s3 { animation: letterAppear .4s ease-out 2.70s forwards; }
.hdr-s4 { animation: letterAppear .4s ease-out 2.90s forwards; }
.hdr-s5 { animation: letterAppear .4s ease-out 3.10s forwards; }
.hdr-s6 { animation: letterAppear .4s ease-out 3.30s forwards; }
@keyframes letterAppear {
  0% { opacity: 0; transform: translateY(-8px) scale(1.15); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hdr-divider, .hdr-incrust { stroke-dasharray: 100; stroke-dashoffset: 100; }
.hdr-divider { animation: lineDraw .7s ease-out 1.30s forwards; }
.hdr-incrust { animation: lineDraw .7s ease-out 3.70s forwards; }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
.hdr-shine { opacity: 0; animation: hdrShineRun 6s ease-in-out 4.5s infinite; }
@keyframes hdrShineRun {
  0% { opacity: 0; transform: translateX(-50px) skewX(-15deg); }
  8% { opacity: .7; }
  20% { opacity: .7; }
  30% { opacity: 0; transform: translateX(230px) skewX(-15deg); }
  100% { opacity: 0; transform: translateX(230px) skewX(-15deg); }
}

/* О НАС, КОНТАКТЫ */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.about__visual { aspect-ratio: 4/5; background: var(--bg-alt); border: 1px solid var(--border); position: relative; overflow: hidden; }
.about__visual img { width: 100%; height: 100%; object-fit: cover; }
.about__visual::before {
  content: '';
  position: absolute;
  top: 24px; left: 24px; right: -24px; bottom: -24px;
  border: 1px solid var(--gold);
  z-index: -1;
  pointer-events: none;
}
.about__text p { color: var(--text-muted); }
.about__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.feature__num { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--gold); line-height: 1; margin: 0 0 10px; position: relative; display: inline-block; }
.feature__num::after { content: ''; position: absolute; right: -10px; bottom: 4px; width: 6px; height: 6px; background: var(--emerald); border-radius: 50%; }
.feature__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.feature__text { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

.advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.advantage { padding: 32px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: all .3s ease; }
.advantage:hover { border-color: var(--emerald); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.advantage__icon { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--emerald-tint); color: var(--emerald); transition: all .3s ease; }
.advantage:hover .advantage__icon { background: var(--emerald); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.advantage__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.advantage__text { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.contacts__info { display: flex; flex-direction: column; gap: 28px; }
.contact-item__label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 500; }
.contact-item__value { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.contact-item__value a { color: inherit; transition: color .25s ease; }
.contact-item__value a:hover { color: var(--emerald); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form__label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.form__input, .form__textarea {
  width: 100%;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-tint); }
.form__textarea { min-height: 130px; resize: vertical; }
.form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; margin-top: 6px; }
.form__input.error, .form__textarea.error { border-color: #C44536; }

.form-checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); cursor: pointer; user-select: none; line-height: 1.5; grid-column: 1 / -1; }
.form-checkbox input { display: none; }
.form-checkbox__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  margin-top: 1px;
  background: var(--white);
}
.form-checkbox input:checked + .form-checkbox__box { background: var(--emerald); border-color: var(--emerald); }
.form-checkbox input:checked + .form-checkbox__box::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg) translate(-1px, -1px);
}
.form-checkbox a { color: var(--emerald); border-bottom: 1px solid var(--emerald); }
.form-checkbox a:hover { color: var(--gold); border-color: var(--gold); }

.section--dark.cta { text-align: center; }
.cta__inner { max-width: 720px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta h2 { font-size: clamp(36px, 5vw, 64px); margin: 0 0 24px; }
.cta h2 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.cta p { font-size: 18px; color: rgba(250,248,245,.65); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ФУТЕР */
.footer { background: var(--dark); color: var(--bg); padding: 72px 0 32px; position: relative; }
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 50%, var(--emerald) 50%, var(--emerald) 100%);
}
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(250,248,245,.08); }
.footer__logo svg { height: 56px; width: auto; display: block; margin-bottom: 22px; }
.footer__desc { color: rgba(250,248,245,.55); font-size: 15px; max-width: 340px; line-height: 1.7; }
.footer__col h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: rgba(250,248,245,.7); font-size: 15px; transition: color .25s ease; }
.footer__col a:hover { color: var(--emerald-light); }

.footer__socials { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.footer__socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250,248,245,.15);
  border-radius: 50%;
  color: rgba(250,248,245,.7);
  transition: all .35s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: rgba(255,255,255,.03);
}
.footer__socials a:hover { background: rgba(184,147,90,.15); border-color: var(--gold); transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 24px rgba(184,147,90,.35); }
.footer__socials a svg { width: 22px; height: 22px; }

.footer__bottom { display: flex; flex-direction: column; align-items: center; padding-top: 32px; border-top: 1px solid rgba(250,248,245,.08); }
.footer__copy { color: rgba(250,248,245,.4); font-size: 13px; text-align: center; width: 100%; }

/* АНИМАЦИЯ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }

/* КУРСОР */
@media (min-width: 1024px) {
  html, body, a, button, input, textarea, select { cursor: none !important; }
  .custom-cursor { position: fixed; top: 0; left: 0; width: 30px; height: 30px; pointer-events: none; z-index: 99999; will-change: transform; transition: opacity 0.15s ease; transform-origin: top left; }
  .custom-cursor svg { width: 100%; height: 100%; transition: transform 0.3s var(--transition); transform-origin: top left; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
  .custom-cursor.is-hover svg { transform: scale(1.3); filter: drop-shadow(0 0 12px rgba(184,147,90,.9)) drop-shadow(0 0 20px rgba(184,147,90,.5)); }
}

/* МОБИЛЬНОЕ МЕНЮ */
@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -20px 0 60px rgba(28,28,30,0.1);
    z-index: 200;
    display: flex;
    overflow-y: auto;
  }
  .site-nav.is-open { right: 0; }
  .site-nav a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    letter-spacing: 0.15em;
  }
  .site-nav a::after { display: none; }
  .site-nav__phone { border-left: none !important; padding-left: 0 !important; margin-left: 0 !important; font-size: 16px !important; color: var(--emerald) !important; }
  .site-nav__cta { width: 100%; justify-content: center; padding: 14px 24px 20px; margin-top: 24px; font-size: 22px; }
  body.no-scroll { overflow: hidden; }
  .burger { position: relative; z-index: 250; }
  .burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .burger.is-active span:nth-child(2) { opacity: 0; }
  .burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
}

/* ЗАГЛУШКИ */
.img-placeholder { background: var(--bg-alt); object-fit: cover; filter: none !important; }
.bg-placeholder { background-color: var(--bg-alt); background-size: cover !important; background-position: center !important; }

/* МОДАЛЬНОЕ ОКНО */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s var(--transition); padding: 20px; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(28,28,30,.75); backdrop-filter: blur(6px); }
.modal__content { position: relative; background: var(--white); border-radius: 4px; max-width: 920px; width: 100%; max-height: 90vh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; transform: scale(0.94) translateY(20px); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 32px 80px rgba(0,0,0,.35); z-index: 1; }
.modal.is-open .modal__content { transform: scale(1) translateY(0); }
.modal__bg { position: relative; background-color: var(--dark); background-size: cover; background-position: center; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; }
.modal__bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,30,.15) 0%, rgba(28,28,30,.35) 40%, rgba(28,28,30,.85) 100%); z-index: 1; }
.modal__bg-caption { position: relative; z-index: 3; padding: 32px 36px; width: 100%; }
.modal__bg-cat { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; position: relative; padding-left: 32px; }
.modal__bg-cat::before { content: ''; position: absolute; left: 0; top: 50%; width: 22px; height: 1px; background: var(--gold-light); transform: translateY(-50%); }
.modal__bg-title { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 48px); font-weight: 600; font-style: italic; line-height: 1.15; margin: 0; display: block; perspective: 600px; }
.modal__bg-letter { display: inline-block; opacity: 0; transform: translateY(-14px) scale(1.08); filter: blur(6px); color: var(--gold-light); text-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 24px rgba(217,184,124,.35); }
.modal.is-open .modal__bg-letter { animation: modalLetterAppear 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, modalLetterBreathe 4s ease-in-out 1.6s infinite; }
@keyframes modalLetterAppear { 0% { opacity: 0; transform: translateY(-14px) scale(1.08); filter: blur(6px); } 55% { opacity: 1; transform: translateY(1px) scale(1.01); filter: blur(0); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes modalLetterBreathe { 0%, 100% { text-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 24px rgba(217,184,124,.35); } 50% { text-shadow: 0 4px 24px rgba(0,0,0,.55), 0 0 36px rgba(217,184,124,.6), 0 0 60px rgba(217,184,124,.25); } }
.modal__form-wrap { position: relative; padding: 52px 44px 44px; background: var(--white); overflow-y: auto; max-height: 90vh; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-alt); cursor: pointer; font-size: 24px; color: var(--text); display: grid; place-items: center; transition: all 0.25s ease; line-height: 1; z-index: 5; }
.modal__close:hover { background: var(--gold); color: var(--white); transform: rotate(90deg); }
.modal__title { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.modal__subtitle { font-size: 14px; color: var(--text-muted); margin: 0 0 28px; }
.modal .form { grid-template-columns: 1fr; gap: 16px; }
.modal .form__field--full, .modal .form-checkbox, .modal .form__actions { grid-column: auto; }

.form-success { margin-top: 20px; padding: 16px 20px; background: var(--emerald-tint); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; transition: opacity .4s, transform .4s; border: 1px solid rgba(31,107,74,.2); }
.form-success.is-hide { opacity: 0; transform: translateY(-10px); }
.form-success__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--emerald); color: var(--white); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.form-success__text { font-size: 14px; color: var(--text); }

/* ============================================
   AI-ЧАТ — ВИДЖЕТ (золотой шкаф + окно)
   ============================================ */

.ai-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  font-family: var(--font-body);
  pointer-events: none;
}

.ai-chat-toggle {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(28,28,30,.35);
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .4s ease;
  animation: chatTogglePulse 3.5s ease-in-out infinite;
  pointer-events: auto;
}

.ai-chat-toggle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #F5E4C3, #B8935A, #D9B87C, #9C7A45);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.ai-chat-toggle__svg {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 3;
  transition: transform .3s ease;
  overflow: visible;
}

.ai-chat-toggle__door--left,
.ai-chat-toggle__door--right {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .4s ease;
}
.ai-chat-toggle__door--left { transform-origin: left center; }
.ai-chat-toggle__door--right { transform-origin: right center; }
.ai-chat-toggle__glow { transition: opacity .4s ease .15s; }

.ai-chat-toggle:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(28,28,30,.45), 0 0 0 6px rgba(217,184,124,.15); }
.ai-chat-toggle:hover .ai-chat-toggle__svg { transform: scale(1.05); }
.ai-chat-toggle:active { transform: translateY(0) scale(0.97); }

.ai-chat-toggle__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(217,184,124,.5);
  pointer-events: none;
  animation: chatPulse 2.6s ease-out infinite;
  z-index: 1;
}
@keyframes chatPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes chatTogglePulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(28,28,30,.35), 0 0 0 0 rgba(217,184,124,.5); }
  50% { box-shadow: 0 8px 24px rgba(28,28,30,.35), 0 0 0 8px rgba(217,184,124,.08); }
}

.ai-chat-toggle__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E74C3C;
  border: 2px solid var(--bg);
  z-index: 4;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .3s ease, transform .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.ai-chat-toggle__dot.is-visible {
  opacity: 1;
  transform: scale(1);
  animation: chatDotPulse 1.8s ease-in-out infinite;
}
@keyframes chatDotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.ai-chat-widget.is-open .ai-chat-toggle__door--left { transform: rotateY(-75deg) translateX(-2px); opacity: 0.5; }
.ai-chat-widget.is-open .ai-chat-toggle__door--right { transform: rotateY(75deg) translateX(2px); opacity: 0.5; }
.ai-chat-widget.is-open .ai-chat-toggle__glow { opacity: 0.9; }
.ai-chat-widget.is-open .ai-chat-toggle__pulse { animation: none; opacity: 0; }
.ai-chat-widget.is-open .ai-chat-toggle__dot { opacity: 0; }

/* Окно чата */
.ai-chat {
  position: absolute;
  right: 0;
  bottom: 88px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(28,28,30,.25), 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity .4s cubic-bezier(0.2, 0.8, 0.2, 1), transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: bottom right;
}
.ai-chat-widget.is-open .ai-chat { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.ai-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--dark) 0%, #2B2B2B 100%);
  color: var(--bg);
  flex-shrink: 0;
  position: relative;
}
.ai-chat__header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ai-chat__avatar { width: 40px; height: 40px; flex-shrink: 0; }
.ai-chat__avatar svg { width: 100%; height: 100%; }
.ai-chat__info { flex: 1; min-width: 0; }
.ai-chat__name { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--bg); margin-bottom: 2px; }
.ai-chat__status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(250,248,245,.65); }
.ai-chat__status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 8px rgba(74,222,128,.8); animation: chatStatusPulse 2s ease-in-out infinite; }
@keyframes chatStatusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.ai-chat__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--bg);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .25s ease;
  flex-shrink: 0;
}
.ai-chat__close:hover { background: var(--gold); color: var(--dark); transform: rotate(90deg); }

.ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ai-chat__messages::-webkit-scrollbar { width: 6px; }
.ai-chat__messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.ai-chat__msg { display: flex; animation: chatMsgIn .35s ease; }
.ai-chat__msg--bot { justify-content: flex-start; }
.ai-chat__msg--user { justify-content: flex-end; }
@keyframes chatMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.ai-chat__bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.ai-chat__msg--bot .ai-chat__bubble { background: var(--white); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-chat__msg--user .ai-chat__bubble { background: var(--emerald); color: var(--white); border-bottom-right-radius: 4px; }
.ai-chat__bubble a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(184,147,90,.4); text-underline-offset: 2px; }
.ai-chat__msg--user .ai-chat__bubble a { color: var(--gold-light); }

.ai-chat__msg--typing .ai-chat__bubble { display: flex; gap: 4px; align-items: center; padding: 14px 18px; }
.ai-chat__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: chatTyping 1.2s ease-in-out infinite; }
.ai-chat__dot:nth-child(2) { animation-delay: 0.15s; }
.ai-chat__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; background: var(--bg); flex-shrink: 0; }
.ai-chat__quick:empty { display: none; }
.ai-chat__quick-btn {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.ai-chat__quick-btn:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }

.ai-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-chat__input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ai-chat__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,147,90,.1); background: var(--white); }
.ai-chat__send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-hover) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .3s ease;
  flex-shrink: 0;
}
.ai-chat__send:hover { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%); transform: scale(1.06); }
.ai-chat__send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .ai-chat-widget { right: 16px; bottom: 16px; }
  .ai-chat-toggle { width: 62px; height: 62px; }
  .ai-chat-toggle__svg { width: 40px; height: 40px; }
  .ai-chat {
    width: calc(100vw - 24px);
    right: -8px;
    bottom: 78px;
    height: calc(100vh - 120px);
    max-height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-toggle, .ai-chat-toggle__pulse, .ai-chat-toggle__dot, .ai-chat__status-dot { animation: none !important; }
  .ai-chat, .ai-chat-toggle__door--left, .ai-chat-toggle__door--right { transition-duration: 0.01ms !important; }
}

/* АДАПТИВ */
@media (max-width: 1024px) {
  .hero { min-height: 90vh; background-attachment: scroll; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { max-width: 480px; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .catalog { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .modal__content { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal__bg { min-height: 240px; }
  .modal__bg-title { font-size: 26px; }
  .modal__form-wrap { padding: 36px 24px 28px; max-height: none; }
  .modal__close { top: 12px; right: 12px; background: rgba(250,248,245,.9); }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .site-header__inner { padding: 14px 20px; }
  .site-header.is-scrolled .site-header__inner { padding: 10px 20px; }
  .site-header__logo svg { height: 40px; }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
  .burger { display: flex; }
  .hero { min-height: 85vh; padding: 120px 0 60px; }
  .hero__title { font-size: clamp(36px, 9vw, 56px); }
  .hero__text { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .catalog { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .about__features { grid-template-columns: 1fr; gap: 24px; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .site-header__logo svg { animation: none; }
  .hdr-letter { animation: none !important; opacity: 1 !important; }
  .hdr-divider, .hdr-incrust { animation: none !important; stroke-dashoffset: 0 !important; }
  .hdr-shine { display: none; }
}