/* =====================================
   ПЕРЕМЕННЫЕ И ШРИФТЫ
===================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter&display=swap');

@font-face {
  font-family: "Baskerville Display PT";
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --main-font: 'Inter', sans-serif;
  --accent-font: 'Segoe UI Semibold', 'Segoe UI', sans-serif;
  --color-bg: #fff;
  --color-text: #111;
  --color-accent: #000;
  --color-subtle: #555;
  --color-light: #f9f9f9;
  --border-radius: 0.5rem;
}

/* =====================================
   СБРОСЫ И БАЗОВЫЕ СТИЛИ
===================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px; /* базовый размер для rem */
}

body {
  font-family: var(--main-font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 3.75rem;
}

h1, h2, h3, h4 {
  font-family: var(--accent-font);
  font-weight: normal;
  color: var(--color-text);
  letter-spacing: 0.03em;
  margin-top: 0;
}

h1 + *, h2 + *, h3 + *, h4 + * {
  margin-top: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

button, .btn {
  font-family: var(--accent-font);
  background-color: transparent;
  color: var(--color-accent);
  border: 0.125rem solid var(--color-accent);
  padding: 0.75rem 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =====================================
   HEADER / НАВИГАЦИЯ
===================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.75rem;
  z-index: 1000;
  background: var(--color-bg);
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 5vw;
}

nav .menu-container {
  max-width: 75rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  line-height: 3.75rem;
  padding: 0 1rem;
  font-weight: 600;
  font-family: var(--main-font);
}

section[id] {
  scroll-margin-top: 3.75rem;
}
#testimonials { scroll-margin-top: 5rem; }

/* Бургер */
.burger {
  display: none;
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 0.3125rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  width: 1.875rem;
  height: 1.5625rem;
  padding: 0;
  margin: 0;
}
.burger span {
  display: block;
  width: 1.5625rem;
  height: 0.1875rem;
  background: black;
  transition: 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }

/* Мобильное меню */
#mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem 5vw;
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 80%;
  max-width: 20rem;
  box-shadow: -0.125rem 0 0.5rem rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1000;
}
#mobile-menu.open { right: 0; }

#mobile-menu a {
  font-size: 1rem;
  text-decoration: none;
  color: #000;
}

#mobile-menu hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid #ddd;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}
.mobile-menu-overlay.active { display: block; }

/* =====================================
   HERO
===================================== */
.hero-section { position: relative; width: 100%; height: 100vh; overflow: hidden; }

.hero-slides picture {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slides picture.active { opacity: 1; z-index: 0; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 5vw;
}

.hero-content h1 { font-size: clamp(2rem, 6vw, 3em); margin-bottom: 0.5em; color: var(--color-bg);  }
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.2em); margin-bottom: 1.5em; }

.hero-content .cta-button {
  background: transparent; color: #fff;
  border: 0.125rem solid #fff;
  font-weight:700;
  padding:1rem 2.5rem;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor:pointer;
  border-radius: var(--border-radius);
  letter-spacing: 0.15em;
  transition: 0.3s;
}
.hero-content .cta-button:hover { background: #fff; color: #000; }

/* =====================================
   SECTIONS
===================================== */
.section {
  max-width: 90%;
  margin: 4rem auto;
  padding: 0 5vw;
  text-align: center;
  scroll-margin-top: 6.25rem;
}
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 2rem; }

/* ABOUT */
.about-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3vw;
  padding: 4rem 5vw;
  max-width: 90%;
  margin: 0 auto;
  text-align: left;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3vw;
  flex-wrap: wrap;
  width: 100%;
}

.about-text {
  flex: 1 1 45%;
  min-width: 18rem;
  order: 1;
  text-align: left;
}

.about-text h2 { font-size: clamp(2rem, 4vw, 2.5em); margin-bottom: 0.5em; }
.about-text p { font-size: clamp(1rem, 2vw, 1.1em); line-height: 1.8; margin-bottom: 1.5em; }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
}

.about-stat { flex: 0 0 auto; text-align: left; }
.about-stat h3 { font-size: clamp(1.5rem, 3vw, 2em); margin:0; }
.about-stat p { font-size: clamp(0.8rem, 1.5vw, 0.9em); color: var(--color-subtle); margin:0; }

/* Контейнер видео */
.about-video {
  flex: 0 0 45%;
  min-width: 280px;
  max-width: 37.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 0.375rem 0.938rem rgba(0,0,0,0.1);
}

/* Превью */
.video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

/* Кнопка Play */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* Белый треугольник Play */
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 1.5rem;
  height: 1.8rem;
  background: white;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Видео */
.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* =====================================
   PRINCIPLES
===================================== */
.principles-section {
  position: relative;
  overflow: hidden;
  padding: 6em 5vw;
  text-align: center;
  color: #fff;
}

.principles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.principles-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principles-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.principles-overlay {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: auto;
  padding: 4em 5vw;
}

.principles-section h2 {
  font-size: clamp(2rem, 4vw, 2.5em);
  font-family: var(--accent-font);
  margin-bottom: 2em;
  color: #eee;
}

.principles-grid {
  display: grid;
  gap: 2em;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.principle-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2em;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.principle-item h3 {
  margin-bottom: 0.8em;
  font-size: clamp(1.1rem, 2.5vw, 1.3em);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--accent-font);
  color: #fff;
  word-wrap: break-word;
}

.principle-item p {
  font-size: clamp(0.9rem, 1.5vw, 1em);
  line-height: 1.6;
  color: #eee;
}

/* Если принципов больше 3 → показываем по 2 в ряд */
.principles-grid:has(.principle-item:nth-child(4)) {
  grid-template-columns: repeat(2, 1fr);
}

/* Мобайл */
@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .principle-item {
    padding: 1.5em;
  }
}

/* =====================================
   SERVICES
===================================== */
.services-section {
  max-width: 90%;
  margin: 5rem auto 0;
  padding: 0 5vw;
  text-align: center;
  scroll-margin-top: 6.25rem;
}

.services-section h2 {
  font-size: clamp(2rem, 4vw, 2.5em);
  margin-bottom: 2rem;
  font-family: var(--accent-font);
}

/* Переводим services на grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr; /* по умолчанию одна колонка */
  gap: 1.875rem;
  justify-items: center;
}

/* Если услуг больше 3 → показываем по 2 в ряд */
.services-grid:has(.service-item:nth-child(4)) {
  grid-template-columns: repeat(2, 1fr);
}


.service-item {
  border: 1px solid var(--color-accent);
  padding: 2.5rem 2rem;
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: 
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.4s ease;
  position: relative;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  background: #fff;
}


.service-item h3 {
  margin-bottom: 0.6em;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-family: var(--accent-font);
  letter-spacing: 0.08em;
}

.service-item h5 {
  font-weight: 400;
  font-size: 0.85rem;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.12em;
  color: var(--color-subtle);
}

.service-item .price {
  font-size: 1rem;
  margin: 1rem 0 2rem;
  color: var(--color-text);
}

.service-item .service-link {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-accent);
  transition: opacity 0.3s ease;
}

.service-item:hover .service-link {
  opacity: 0.6;
}

.service-item::before {
  content: attr(data-number);
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.3;
}

/* =====================================
   PORTFOLIO
===================================== */
.portfolio-section {
  padding: 4em 5vw;
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
}

.portfolio-section h2 {
  font-size: clamp(2rem, 4vw, 2.5em);
  font-family: var(--accent-font);
  margin-bottom: 1.5em;
  word-wrap: break-word;
}

.portfolio-wrapper {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

.portfolio-scroll {
  display: flex;
  gap: 1.5em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.portfolio-scroll::-webkit-scrollbar {
  display: none;
}

.portfolio-item {
  flex: 0 0 calc((100% - 3em)/3);
  scroll-snap-align: start;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.portfolio-text h4 {
  font-family: var(--accent-font);
  text-transform: uppercase;
  font-size: clamp(0.9rem, 2vw, 1em);
  margin: 0 0 0.4em;
}

.portfolio-text p {
  font-size: clamp(0.8rem, 1.5vw, 0.9em);
  color: var(--color-subtle);
  margin: 0;
}


/* Кнопки прокрутки */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.scroll-btn.left {
  left: -2.5rem;
}

.scroll-btn.right {
  right: -2.5rem;
}


/* =======================
   TESTIMONIALS
======================= */
.testimonial-section {
  max-width: 90%;
  margin: 3rem auto 5rem;
  padding: 0 5vw;
  font-family: var(--main-font);
  color: #111;
}

.testimonial-section h2 {
  font-family: var(--accent-font);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

.testimonial-wrapper {
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 0.375rem 0.938rem rgba(0,0,0,0.08);
  padding: 2rem 1rem;
  overflow: visible;
}

.testimonial-container {
  overflow: hidden;
  width: 100%;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  flex: 0 0 100%;
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 10rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  text-align: left;
}

.testimonial-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.testimonial-text p {
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.65;
}

.testimonial-text .author {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  color: #666;
}

/* Навигация */
.testimonial-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
  color: #000;
  z-index: 10;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.testimonial-nav-button:disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

#prevTestimonial { left: 0; }
#nextTestimonial { right: 0; }

@media (max-width: 480px) {
  #prevTestimonial { left: -1rem; }
  #nextTestimonial { right: -1rem; }
  .testimonial { font-size: 1rem; }
  .testimonial .author { font-size: 0.9rem; }
}

.expand-btn {
  display: none;
}


/* =======================
   FAQ
======================= */
.faq {
  width: 100%;
  max-width: none; /* убираем ограничение */
  margin: 2rem 0;  /* убрал auto, чтобы не центрировалось */
  padding: 0;      /* убираем боковые отступы */
  scroll-margin-top: 6.25rem;
  font-family: var(--main-font);
  color: #111;
}

.faq h2 {
  font-family: var(--accent-font);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 2rem;
  text-align: center;
}

.faq-item {
  width: 100%; /* каждый элемент тянется на всю ширину */
  border: 1.5px solid #ddd;
  border-radius: var(--border-radius); /* можно убрать скругления для строгого вида */
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  cursor: pointer;
  user-select: none;
  border: none;
  width: 100%;
  text-align: left;
  color: #111;
  transition: background-color 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  background: #fff;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  color: #444;
}

.faq-item.open .faq-answer {
  max-height: 50rem;
  padding: 1rem 1.5rem 1.5rem;
}

.faq-icon {
  font-family: sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-question {
  text-transform: none;
  letter-spacing: normal; /* или 0 */
}

.faq-question,
.faq-answer {
  padding-left: 2vw;  /* можно оставить небольшие отступы внутри */
  padding-right: 2vw; /* чтобы текст не прилипал к краям */
}



/* =======================
   MODALS / LIGHTBOX
======================= */
.modal, #formModal, .lightbox {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  padding: 1rem;
}

.modal-content, .lightbox img {
  border-radius: var(--border-radius);
  box-shadow: 0 0.75rem rgba(0,0,0,0.15);
}

.modal-content {
  background: #fff;
  max-width: 90%;
  width: 28rem;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  animation: slideUp 0.3s ease forwards;
}

.modal-close, .lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-accent);
  border: none;
  background: none;
  transition: color 0.2s ease;
}

.modal-content form input,
.modal-content form textarea,
.modal-content form select {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  background: #fff;
  font-family: var(--main-font);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.modal-content form textarea {
  min-height: 5rem;
  resize: vertical;
}

.modal-content form select {
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg fill='black' height='20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='5,7 15,7 10,13'/></svg>") no-repeat right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}

.modal-content form button {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.15rem;
  font-family: var(--accent-font);
  background: var(--color-accent);
  color: var(--color-bg);
  border: 0.125rem solid var(--color-accent);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.modal-content form button:hover {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* =======================
   FOOTER
======================= */
footer {
  background: var(--color-light);
  padding: 2rem 5vw;
  text-align: center;
  font-family: var(--main-font);
}

footer a {
  color: var(--color-subtle);
  transition: color 0.3s ease;
}

.contacts-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contacts-icons a {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--color-subtle);
  transition: color 0.3s ease, transform 0.3s ease;
}

.contacts-icons a:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

.footer-bottom {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.6;
  color: var(--color-subtle);
}


/* =======================
   ANIMATIONS
======================= */
@keyframes slideUp {
  from { transform: translateY(2rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* =======================
   LIGHTBOX
======================= */
#lightbox {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0; /* заменяет top/left/right/bottom */
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  flex-direction: row; /* стрелки по бокам */
  padding: 2%; /* небольшой внутренний отступ, чтобы картинка не прилипала */
  box-sizing: border-box;
}

#lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius, 0.5rem);
}

/* Кнопка закрытия */
#lightbox .lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0.25em;
}

/* Стрелки */
#lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3rem);
  cursor: pointer;
  padding: 0.25em;
  line-height: 1;
  user-select: none;
}

#lightbox .lightbox-nav.left {
  left: 1rem;
}

#lightbox .lightbox-nav.right {
  right: 1rem;
}

/* =======================
   CARD SLIDER
======================= */
.slider-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 4vw;
  width: 100%;
  box-sizing: border-box;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  scroll-snap-type: x mandatory;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
  padding: 1em 0;
}

.card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 20rem;
  scroll-snap-align: start;
  box-sizing: border-box;
  background: #fff;

}

.card h3 {
  font-family: var(--accent-font, serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  color: #111;
}

.card ul {
  list-style: none;
  padding-left: 1.2em;
  margin: 0;
}

.card ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6em;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.5;
  color: #444;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-weight: bold;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: #000;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.slider-btn:hover { opacity: 1; }
.slider-btn:disabled { opacity: 0.3; pointer-events: none; }

.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-track::-webkit-scrollbar { display: none; }

/* =======================
   STAGES
======================= */
.stages-section {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2em;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.stages {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.stage {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.stage-number {
  flex-shrink: 0;
  text-align: left;
  min-width: 60px;
  line-height: 1;
  padding-top: 0.2em;
}

.stage-number h3 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0;
  line-height: 1;
  color: #111;
  font-family: var(--accent-font, serif);
}

.stage-number p {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0.3em 0 0;
  color: #777;
}

.stage-content {
  flex: 1;
  text-align: left;
}

.stage-content h4 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 0;
  padding-top: 0.1em;
  font-family: var(--accent-font, serif);
  color: #111;
  line-height: 1.2;
}

.stage-content p {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  color: #444;
  margin: 0.5em 0 0;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 768px) {
  .stage { flex-direction: column; }
  .stage-number { min-width: auto; text-align: center; }
  .stage-content { text-align: center; }
}

@media (max-width: 600px) {
  .slider-wrapper { padding: 0 1rem; margin-top: 2rem; }
  .slider-container { max-width: 100%; padding: 0; margin: 0; overflow: hidden; }
  .slider-track { padding: 0.5em 0; gap: 0; }
  .card { padding: 1.5rem 1rem; min-height: auto; }
  .slider-btn { width: 2.25rem; height: 2.25rem; font-size: 1.3rem; top: 50%; }
  .slider-btn.prev { left: 0; }
  .slider-btn.next { right: 0; }
}

/* Кнопка */
.button-apply {
  display: inline-block;
  padding: 0.6em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background-color: transparent;
  border: 2px solid #000;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  user-select: none;

  /* Отступ сверху */
  margin-top: 2rem; /* можно изменить значение на любое подходящее */
}

.button-apply:hover,
.button-apply:focus {
  background-color: #000;
  color: #fff;
  outline: none;
}


/* =======================
   Services Grid
======================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.875rem;
  justify-items: center;
}

/* Адаптивные карточки услуг — одинаковый размер */
.service-item {
  width: 100%;              /* растягивается на ширину колонки */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 3rem;
  border-radius: var(--border-radius, 0.5rem);
  background: var(--color-bg-alt, #fff);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
}

/* Стрелки слайдера и лайтбокса */
.slider-btn,
.lightbox-nav {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.slider-btn:disabled,
.lightbox-nav:disabled {
  opacity: 0.3;        /* затемнение */
  pointer-events: none; /* отключаем клики */
  cursor: default;
}

.scroll-btn {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-btn:disabled {
  opacity: 0.3;        /* затемнение */
  pointer-events: none; /* отключаем клики */
  cursor: default;
}

/* Модалка */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Контакты */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.contact-btn i {
  font-size: 1.2rem;
}

.contact-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Адаптивность */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem 1rem;
  }
  .contact-btn {
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
  }
}

