/* Локальные шрифты (Cormorant Garamond и Montserrat) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/montserrat-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/montserrat-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Базовый сброс и переменные */
:root {
  --bg-white: #ffffff;
  --bg-beige: #f6f5f2;
  --text-dark: #2c2c2c;
  --text-muted: #6e6e6e;
  --accent-dark: #262626;
  --border-light: #e2dfd8;
  --border-input: #dcdad4;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

/* Контейнеры и фоны секций */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-white {
  background-color: var(--bg-white);
  padding: 80px 0;
}

.section-beige {
  background-color: var(--bg-beige);
  padding: 90px 0;
}

/* Типографика */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: block;
}

p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Общие тёмные CTA-кнопки */
.btn {
  display: inline-block;
  padding: 13px 34px;
  background-color: var(--accent-dark);
  color: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover:not(:disabled) {
  background-color: #404040;
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-lg {
  padding: 15px 42px;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.btn-lg:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
}

/* 1. Шапка, навигация и общие кнопки шапки/подвала */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 22px 0;
  background: var(--bg-white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-brand,
.nav-toggle {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav a,
.footer-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent-dark);
  transition: background-color 0.2s ease;
}

.nav a:hover,
.nav-dropdown:hover > a,
.footer-btn:hover {
  background-color: #ededed;
}

.nav a.active,
.footer-btn.active {
  background-color: #f3f3f3;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--bg-white);
  border-radius: 8px;
  padding: 8px;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 9px 14px;
  border-radius: 5px;
  text-align: left;
}

/* 2. Главный экран (Hero) */
.hero {
  position: relative;
  aspect-ratio: 6445 / 2000;
  background: url('HomePictures/HomePictures_2.jpg') center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.10) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  transform: translateY(50%);
}

.hero h1 {
  font-size: clamp(1.85rem, 3.1vw, 3.6rem);
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 0, 0, 0.52), 0 0 6px rgba(0, 0, 0, 0.68);
  letter-spacing: 0.04em;
  margin-bottom: clamp(8px, 1vw, 16px);
}

.hero h1 span {
  display: block;
  font-weight: 450;
}

.hero-link {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  padding-bottom: 4px;
}

/* 3. Приветствие и 6 карточек в один ряд */
.intro .container {
  max-width: 1380px;
}

.intro-text {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px;
}

.intro-text .description {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.card-link {
  display: block;
}

.card-img-wrap {
  padding: 10px;
  background: var(--bg-white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-link:hover .card-img-wrap {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.card-img-wrap img {
  aspect-ratio: 3 / 4.2;
}

.object-left {
  object-position: left center;
}

.card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(0.76rem, 1.08vw, 1.05rem);
  color: var(--text-dark);
  transition: opacity 0.2s ease;
}

.card-link:hover .card-footer {
  opacity: 0.7;
}

.card-title {
  border-bottom: 1px solid currentColor;
  line-height: 1.2;
  white-space: nowrap;
}

.cards-cta {
  text-align: center;
  margin-top: 48px;
}

/* 4. Центрированные бежевые секции на главной */
.centered-section .container {
  max-width: 640px;
  text-align: center;
}

.centered-section .btn {
  margin-top: 10px;
}

.experience-section .container {
  max-width: 720px;
}

.experience-section .eyebrow {
  font-size: 0.78rem;
}

.experience-section h2 {
  font-size: 3rem;
}

.experience-section p:not(.eyebrow) {
  font-size: 0.96rem;
}

.reviews-section .container {
  max-width: 1380px;
}

.reviews-carousel {
  margin: 28px 0 32px;
}

.reviews-carousel .carousel-wrapper {
  padding: 0 56px;
}

.reviews-carousel .carousel-track {
  gap: 0;
  scroll-snap-type: x mandatory;
}

.reviews-carousel .carousel-btn.prev {
  left: 0;
}

.reviews-carousel .carousel-btn.next {
  right: 0;
}

.review-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 12px;
}

.review-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.review-author {
  display: block;
  text-align: right;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 5. Лента из фото во всю ширину экрана (главная) */
.gallery-testimonial.section-white {
  padding-top: 10px;
  padding-bottom: 128px;
}

.home-fullwidth-carousel {
  width: 100%;
  padding: 0 12px;
}

.home-fullwidth-carousel .carousel-track .gallery-item {
  flex: 0 0 352px;
  width: 352px;
}

.home-fullwidth-carousel .carousel-track .gallery-item.landscape {
  flex: 0 0 716px;
  width: 716px;
}

.home-fullwidth-carousel .carousel-btn.prev {
  left: 16px;
}

.home-fullwidth-carousel .carousel-btn.next {
  right: 16px;
}

/* 6. Нижний баннер (CTA) */
.cta-banner {
  position: relative;
  margin-top: 128px;
  height: 60vh;
  min-height: 400px;
  background: url('HomePictures/HomePictures_1.jpg') center 24% / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-white);
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.cta-content h2 {
  color: var(--accent-dark);
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.18), 0 0 2px rgba(0, 0, 0, 0.13), 0 0 1px rgba(0, 0, 0, 0.16);
}

/* 7. Портфолио, карусели и лайтбокс */
.portfolio-page .container {
  max-width: 1480px;
}

.portfolio-category {
  margin-bottom: 64px;
  scroll-margin-top: 96px;
}

.portfolio-cat-header {
  margin-bottom: 14px;
}

.portfolio-cat-header h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text-dark);
}

.portfolio-cat-header h3 a:hover {
  opacity: 0.7;
}

.portfolio-cat-footer {
  text-align: center;
  margin-top: 22px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

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

/* Защита фотографий от скачивания (ПКМ, перетаскивание, зажатие на iOS/Android) */
.card-img-wrap,
.gallery-item,
.lightbox-stage {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.card-img-wrap img,
.gallery-item img,
.lightbox-img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.card-img-wrap::after,
.gallery-item::after,
.lightbox-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.carousel-track .gallery-item {
  flex: 0 0 calc((100% - 36px) / 4);
  width: calc((100% - 36px) / 4);
  height: 480px;
  cursor: pointer;
}

.carousel-track .gallery-item.landscape {
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-position: center 22%;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  opacity: 0.92;
}

.portfolio-category.expanded .carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 480px;
  grid-auto-flow: dense;
  overflow-x: visible;
}

.portfolio-category.expanded .carousel-track .gallery-item {
  width: 100%;
  height: 100%;
}

.portfolio-category.expanded .carousel-track .gallery-item.landscape {
  grid-column: span 2;
}

.portfolio-category.expanded .carousel-btn {
  display: none;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 15, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 32px;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-stage {
  display: inline-flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-gallery-btn {
  background-color: var(--bg-white);
  color: var(--accent-dark);
}

.lightbox-gallery-btn:hover {
  background-color: #e6e6e6;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: transparent;
  border: none;
  color: var(--bg-white);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-nav,
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: none;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover,
.carousel-btn:hover {
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--bg-white);
  font-size: 2rem;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
  left: 28px;
}

.lightbox-nav.next {
  right: 28px;
}

.carousel-btn {
  z-index: 2;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 1.6rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.carousel-btn:hover {
  background: var(--bg-white);
}

.carousel-btn.prev {
  left: -16px;
}

.carousel-btn.next {
  right: -16px;
}

/* 8. Общие карточки и поля форм (отзывы, контакты, калькулятор) */
.surface-card {
  max-width: 920px;
  margin: 0 auto;
  background-color: var(--bg-beige);
  padding: 60px 56px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.field-note {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 6px;
}

.field-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--bg-white);
  border: 1px solid var(--border-input);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field-input:focus {
  border-color: var(--accent-dark);
}

.field-textarea {
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}

/* 9. Страницы отзывов и контактов */
.review-form-card {
  max-width: 720px;
  padding: 48px;
}

.contacts-form-card,
.contacts-card {
  padding: 40px 48px;
}

.contacts-form-card {
  margin-bottom: 28px;
}

.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts-form-fields {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 20px;
  align-items: end;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
  padding: 32px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 4px;
}

.contact-handle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.contact-item:hover .contact-handle {
  color: var(--text-dark);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.review-field .field-note {
  margin-bottom: 12px;
}

.review-input {
  padding: 13px 16px;
}

.review-submit-wrap {
  text-align: center;
  margin-top: 8px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
}

.form-error {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9e2a2b;
}

/* Текстовые юридические страницы (Privacy Policy, NDA) */
.legal-card {
  max-width: 820px;
}

.legal-card p {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.75;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  font-weight: 600;
}

.nda-card {
  max-width: 680px;
  text-align: center;
}

.nda-actions {
  margin-top: 28px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 15, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--bg-white);
  max-width: 520px;
  width: 100%;
  padding: 48px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modal-box h3 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.modal-box p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* 10. Подвал сайта */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-white);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.06);
  padding: 22px 0;
}

.site-footer .container {
  max-width: 1200px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  line-height: 1.6;
  cursor: pointer;
}

.footer-icon-btn {
  padding: 8px 10px;
}

.footer-icon-btn[data-copy-email] {
  position: relative;
}

.footer-icon-btn[data-copy-email]::after {
  content: "Copied!";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--accent-dark);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-icon-btn[data-copy-email].copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Адаптивность для планшетов и мобильных экранов */
@media (max-width: 1280px) {
  .hero-content {
    transform: translateY(52%);
  }
}

@media (max-width: 1024px), (hover: none) {
  .cta-banner {
    background-attachment: scroll;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    max-height: 540px;
    padding: 60px 0;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 300px;
    background-size: cover;
    background-position: center;
  }
  .nav {
    gap: 8px;
  }
  .nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .card-footer {
    font-size: 1rem;
  }
  .carousel-track .gallery-item {
    flex: 0 0 calc((100% - 24px) / 3);
    width: calc((100% - 24px) / 3);
    height: 400px;
  }
  .carousel-track .gallery-item.landscape {
    flex: 0 0 calc((100% - 12px) * 2 / 3);
    width: calc((100% - 12px) * 2 / 3);
  }
  .portfolio-category.expanded .carousel-track {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 380px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .section-white {
    padding: 48px 0;
  }
  .section-beige {
    padding: 52px 0;
  }
  h2 {
    font-size: 2rem;
  }
  .intro-text {
    margin-bottom: 36px;
  }
  .btn,
  .btn-lg {
    padding: 7px 18px;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  /* Мобильная шапка и бургер-меню */
  .site-header {
    padding: 14px 0;
  }
  .header-inner {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .mobile-brand {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--accent-dark);
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-dark);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }
  .site-header.nav-open .nav {
    display: flex;
  }
  .nav a {
    font-size: 0.9rem;
    padding: 10px 12px;
    text-align: left;
  }
  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    background: transparent;
    min-width: 0;
    padding: 2px 0 6px 14px;
    margin-left: 12px;
    border-left: 2px solid var(--border-light);
    border-radius: 0;
  }
  .dropdown-menu::before {
    display: none;
  }
  .nav-dropdown:hover .dropdown-menu {
    transform: none;
  }
  .dropdown-menu a {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  /* Hero */
  .hero {
    aspect-ratio: auto;
    min-height: 320px;
    padding: 48px 0;
  }
  .hero-content {
    transform: translateY(51px);
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 2rem;
  }

  .intro .intro-text h2 {
    font-size: clamp(1.2rem, 5.1vw, 1.65rem);
    font-weight: 500;
    color: #111111;
  }

  /* 6 карточек: 2 ряда по 3 */
  .cards-grid {
    gap: 10px;
  }
  .card-img-wrap {
    padding: 5px;
    margin-bottom: 8px;
  }
  .card-footer {
    padding: 0 2px;
    font-size: 0.82rem;
  }
  .card-title {
    border-bottom: none;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: normal;
  }
  .cards-cta {
    margin-top: 32px;
  }

  /* Текстовые секции и отзывы */
  .experience-section h2 {
    font-size: 2.15rem;
  }
  .reviews-section.section-beige {
    padding: 32px 0;
  }
  .reviews-section h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }
  .reviews-section .container > p {
    font-size: 0.78rem;
    margin-bottom: 0;
  }
  .reviews-carousel {
    margin: 14px 0 18px;
  }
  .reviews-carousel .carousel-wrapper {
    padding: 0 34px;
  }
  .reviews-carousel .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
  }
  .review-slide {
    padding: 2px 4px;
  }
  .review-quote {
    font-size: 1.02rem;
    line-height: 1.42;
    margin-bottom: 10px;
  }
  .review-author {
    font-size: 0.66rem;
  }
  .reviews-section .btn {
    margin-top: 0;
  }

  /* Карусели, портфолио и лайтбокс */
  .gallery-testimonial.section-white {
    padding-bottom: 48px;
  }
  .portfolio-category {
    margin-bottom: 44px;
  }
  .carousel-track {
    gap: 8px;
  }
  .carousel-track .gallery-item,
  .home-fullwidth-carousel .carousel-track .gallery-item {
    flex: 0 0 148px;
    width: 148px;
    height: 205px;
  }
  .carousel-track .gallery-item.landscape,
  .home-fullwidth-carousel .carousel-track .gallery-item.landscape {
    flex: 0 0 304px;
    width: 304px;
  }
  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }
  .carousel-btn.prev,
  .home-fullwidth-carousel .carousel-btn.prev {
    left: 8px;
  }
  .carousel-btn.next,
  .home-fullwidth-carousel .carousel-btn.next {
    right: 8px;
  }
  .portfolio-category.expanded .carousel-track {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 8px;
  }
  .lightbox-modal {
    padding: 12px;
  }
  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 2.2rem;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
  .lightbox-nav.prev {
    left: 10px;
  }
  .lightbox-nav.next {
    right: 10px;
  }

  /* Нижний баннер */
  .cta-banner {
    margin-top: 48px;
    aspect-ratio: auto;
    min-height: 300px;
  }
  .cta-content h2 {
    font-size: 1.9rem;
  }

  /* Формы, контакты, модалки и подвал */
  .surface-card,
  .review-form-card,
  .contacts-form-card,
  .contacts-card {
    padding: 28px 18px;
  }
  .contacts-grid,
  .contacts-form-fields {
    grid-template-columns: 1fr;
  }
  .contact-item {
    padding: 22px 16px;
  }
  .modal-box {
    padding: 32px 22px;
  }
  .modal-box h3 {
    font-size: 1.9rem;
  }
  .modal-box p {
    font-size: 0.95rem;
  }
  .site-footer {
    padding: 18px 0;
  }
  .footer-nav {
    gap: 6px 10px;
  }
  .footer-btn {
    font-size: 0.78rem;
    padding: 6px 10px;
  }
  .footer-btn img {
    width: 20px;
    height: 20px;
  }
}
