/* =========================================================
   ООО Квинтет принт — стили
   ========================================================= */

:root {
  --bg: #0b0d10;
  --bg-alt: #111418;
  --surface: #161a1f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f5;
  --text-muted: #9aa4b2;
  --accent: #c9a24a;
  --accent-2: #e6c877;
  --accent-soft: rgba(201, 162, 74, 0.15);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text: #14171c;
  --text-muted: #5a6472;
  --accent: #a87f22;
  --accent-2: #c9a24a;
  --accent-soft: rgba(168, 127, 34, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c;
  box-shadow: 0 10px 30px rgba(201, 162, 74, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 162, 74, 0.35); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ===== Шапка ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
[data-theme="light"] .header { background: rgba(247, 247, 245, 0.85); }

.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 13, 16, 0.95);
}
[data-theme="light"] .header.is-scrolled { background: rgba(247, 247, 245, 0.97); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c;
  font-size: 18px;
  font-weight: 700;
}
.logo__text { font-size: 17px; }

.nav__list { display: flex; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--text); background: var(--surface); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.header__phone {
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
}
.header__phone:hover { background: var(--accent); color: #14171c; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Первый экран ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 162, 74, 0.06), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
}
.hero__title { font-size: clamp(2rem, 4.5vw, 3.6rem); margin-bottom: 24px; }
.hero__title .accent {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__subtitle { font-size: 17px; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 28px; color: var(--accent); }
.hero__stats span { font-size: 13.5px; color: var(--text-muted); }

.hero__card { display: flex; justify-content: flex-end; }
.glass-card {
  width: 100%;
  max-width: 340px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: rgba(22, 26, 31, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
[data-theme="light"] .glass-card { background: rgba(255, 255, 255, 0.75); }

.glass-card__line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  margin-bottom: 24px;
}
.glass-card__label { font-size: 22px; font-weight: 700; margin: 0; }
.glass-card__value { font-size: 22px; font-weight: 700; color: var(--accent); margin: 0; }
.glass-card__divider { height: 1px; background: var(--border); margin: 24px 0; }
.glass-card__note { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ===== Секции ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 680px; margin-bottom: 56px; }
.section__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section__lead { color: var(--text-muted); font-size: 16.5px; }

/* ===== Услуги ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); flex-grow: 1; }
.service-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.service-card__meta li { position: relative; padding-left: 12px; }
.service-card__meta li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* ===== О компании ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about__list { margin-top: 24px; display: grid; gap: 10px; }
.about__list li { position: relative; padding-left: 28px; color: var(--text-muted); font-size: 15px; }
.about__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.about__visual { display: flex; justify-content: center; }
.about__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14171c;
  padding: 20px;
}
.about__badge-num { font-size: 56px; font-weight: 700; line-height: 1; }
.about__badge-text { font-size: 14px; font-weight: 600; margin-top: 8px; max-width: 180px; }

/* ===== Преимущества ===== */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advantage {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.advantage__num { font-size: 32px; color: var(--accent); display: block; margin-bottom: 14px; font-weight: 700; }
.advantage h3 { font-size: 18px; margin-bottom: 10px; }
.advantage p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* =================================================================
   СЛАЙДЕР (100% СТАБИЛЬНО: ФОТО СВЕРХУ, ТЕКСТ СНИЗУ)
   ================================================================= */
.slider { position: relative; overflow: hidden; border-radius: var(--radius); }
.slider__track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column; /* Картинка сверху, текст снизу */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.slide__img {
  width: 100%;
  height: 400px; /* Фиксированная высота для ПК */
  object-fit: cover;
  object-position: center;
}

.slide__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.slide__body h3 { font-size: 22px; margin-bottom: 10px; }
.slide__body p { color: var(--text-muted); margin: 0; }

.slider__btn {
  position: absolute;
  top: calc(50% - 40px); /* Чуть выше центра, чтобы быть на картинке */
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(22, 26, 31, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 24px;
  display: grid;
  place-items: center;
  z-index: 2;
}
[data-theme="light"] .slider__btn { background: rgba(255, 255, 255, 0.9); }
.slider__btn:hover { background: var(--accent); color: #14171c; }
.slider__btn--prev { left: 16px; }
.slider__btn--next { right: 16px; }

/* --- ТОЧКИ НАВИГАЦИИ (УМЕНЬШЕНЫ) --- */
.slider__dots { 
  display: flex; 
  justify-content: center; 
  gap: 10px; 
  margin-top: 24px; 
}

.slider__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--border);
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.slider__dot.is-active { 
  background: var(--accent); 
  transform: scale(1.2); 
}
/* ================================================================= */

/* ===== Как мы работаем ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__num {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* ===== Отзывы ===== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  margin: 0;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.review p { font-size: 15px; color: var(--text-muted); font-style: italic; }
.review footer { font-size: 13.5px; color: var(--accent); font-weight: 600; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}
.faq__icon { font-size: 22px; color: var(--accent); transition: transform var(--transition); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 26px; }
.faq__item.is-open .faq__answer { padding: 0 26px 22px; }
.faq__answer p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ===== Контакты ===== */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contacts__list { display: grid; gap: 20px; margin: 28px 0 32px; }
.contacts__list li { display: flex; flex-direction: column; gap: 4px; }
.contacts__label { font-size: 12.5px; text-transform: uppercase; color: var(--text-muted); }
.contacts__list a, .contacts__list span:not(.contacts__label) { font-size: 16.5px; font-weight: 500; }
.contacts__list a:hover { color: var(--accent); }
.contacts__list li > a { display: block; }

.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.messenger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}
.messenger:hover { border-color: var(--accent); color: var(--accent); }
.messenger__icon {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.messenger--max .messenger__icon { background: linear-gradient(135deg, #6a5cff, #8b7bff); }
.messenger--tg .messenger__icon { background: linear-gradient(135deg, #2aabee, #229ed9); }

.contacts__map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.footer { padding: 40px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer__copy { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ===== Модальное окно ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 22px;
  display: grid;
  place-items: center;
}
.modal__title { font-size: 24px; margin-bottom: 8px; }
.modal__subtitle { font-size: 14.5px; color: var(--text-muted); margin-bottom: 24px; }

/* ===== Форма ===== */
.form { display: grid; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__group label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.form__group input,
.form__group select,
.form__group textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form__group input.is-invalid,
.form__group select.is-invalid,
.form__group textarea.is-invalid { border-color: #e05252; }
.form__error { font-size: 12.5px; color: #e05252; min-height: 16px; }
.form__note { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 0; }

/* ===== Анимации появления ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Адаптивность ===== */
@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
  .services-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { justify-content: flex-start; }
  .about { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .header__phone { display: none; } }

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 72px; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; background: var(--bg-alt);
    padding: 20px 24px; transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: all 0.3s; z-index: 99; border-bottom: 1px solid var(--border);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { display: block; padding: 12px 16px; font-size: 16px; }
  .burger { display: flex; }
  .services-grid, .advantages-grid, .steps { grid-template-columns: 1fr; }

  /* Уменьшаем высоту картинки на телефоне */
  .slide__img { height: 220px; }
  .slide__body { padding: 24px; }
  .slide__body h3 { font-size: 18px; }

  .modal__dialog { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero__cta { flex-direction: column; }
  .btn { width: 100%; }
}

/* ===== Всплывающее уведомление (Тост) ===== */
.toast {
  position: fixed;
  bottom: 0;             /* Прикрепляем к нижнему краю */
  left: 50%;             /* Выравниваем по центру */
  
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-top: 4px solid #22c55e; /* Зеленая полоска сверху для стиля */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  font-size: 15px;
  z-index: 1000;
  
  /* Изначально скрыто внизу за краем экрана */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 100px); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Класс, который выдвигает плашку на экран */
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -20px); /* Выезжает вверх на 20px от нижнего края */
}

@media (max-width: 768px) {
  .toast {
    width: 90%; /* На телефонах растягиваем почти на всю ширину */
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }
}
