:root {
  --color-burgundy: #7a2e3e;
  --color-burgundy-dark: #5c2230;
  --color-burgundy-light: #9a4a5c;
  --color-cream: #faf7f2;
  --color-cream-dark: #f0ebe3;
  --color-gold: #c9a962;
  --color-gold-light: #e0c98a;
  --color-text: #2c2426;
  --color-text-muted: #6b5f62;
  --color-white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(44, 36, 38, 0.06);
  --shadow-md: 0 8px 32px rgba(44, 36, 38, 0.1);
  --shadow-lg: 0 16px 48px rgba(44, 36, 38, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-burgundy-dark));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(122, 46, 62, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 46, 62, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.btn--vk {
  background: #4a76a8;
  color: var(--color-white);
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}

.btn--vk:hover {
  background: #3d6590;
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-cream-dark);
}

.btn--outline-dark:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 10px 16px;
}

.btn--ghost:hover {
  color: var(--color-burgundy);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  height: 40px;
  width: auto;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-burgundy);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--color-burgundy);
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__social {
  display: flex;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.header__social:hover {
  color: #4a76a8;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('../assets/images/kxqootdrazu-1600x1200.jpg') center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.12);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(92, 34, 48, 0.88) 0%,
      rgba(44, 36, 38, 0.75) 50%,
      rgba(92, 34, 48, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + 60px) 24px 100px;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(201, 169, 98, 0.2);
  border: 1px solid rgba(201, 169, 98, 0.4);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero__text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 540px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero__promo {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-gold);
  margin-bottom: 36px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero__promo-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-light);
}

.hero__promo-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
  z-index: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.stats {
  background: var(--color-white);
  padding: 48px 0;
  margin-top: -1px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 4px;
}

.stats__label {
  font-size: 14px;
  color: var(--color-text-muted);
}

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--color-text);
  color: var(--color-white);
}

.section--cream {
  background: var(--color-cream-dark);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header--light .section__title {
  color: var(--color-white);
}

.section__header--light .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 98, 0.3);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: 16px;
  margin-bottom: 20px;
}

.service-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-burgundy);
}

.service-card__text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(92, 34, 48, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover::after {
  opacity: 1;
}

.reviews {
  position: relative;
  overflow: hidden;
}

.reviews__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 calc(50% - 12px);
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-cream-dark);
}

.review-card__stars {
  color: var(--color-gold);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

.review-card__author {
  font-weight: 600;
  color: var(--color-burgundy);
  font-style: normal;
}

.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.reviews__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-burgundy);
  transition: var(--transition);
}

.reviews__btn:hover {
  background: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}

.reviews__dots {
  display: flex;
  gap: 8px;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  transition: var(--transition);
  cursor: pointer;
}

.reviews__dot--active {
  background: var(--color-burgundy);
  width: 24px;
  border-radius: 4px;
}

.reviews__vk {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.reviews__vk p {
  color: var(--color-text-muted);
}

.process {
  max-width: 800px;
  margin: 0 auto;
}

.process__step {
  display: flex;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(44, 36, 38, 0.08);
  position: relative;
}

.process__step:last-child {
  border-bottom: none;
}

.process__number {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  opacity: 0.7;
}

.process__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-burgundy);
  margin-bottom: 8px;
}

.process__text {
  color: var(--color-text-muted);
  line-height: 1.65;
}

.callback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.callback__text {
  color: var(--color-text-muted);
  margin: 16px 0 32px;
  line-height: 1.7;
}

.callback__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.callback__phone {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-burgundy);
  transition: color var(--transition);
}

.callback__phone:hover {
  color: var(--color-burgundy-light);
}

.callback__email {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.callback__email:hover {
  color: var(--color-burgundy);
}

.callback__form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form__input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius);
  background: var(--color-cream);
  transition: var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--color-burgundy);
  background: var(--color-white);
}

.form__note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 16px;
}

.form__success {
  margin-top: 16px;
  padding: 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
}

.form__error {
  margin-top: 16px;
  padding: 16px;
  background: #fdecea;
  color: #c62828;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.form__error[hidden],
.form__success[hidden] {
  display: none;
}

.callback__form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 169, 98, 0.2);
  border-radius: 12px;
  color: var(--color-gold);
}

.contact-card__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.contact-card__value {
  color: var(--color-white);
  line-height: 1.5;
  transition: color var(--transition);
  font-style: normal;
}

a.contact-card__value:hover {
  color: var(--color-gold-light);
}

.contacts__map {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contacts__map iframe:not([src]) {
  display: none;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.map-placeholder p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
  line-height: 1.6;
}

.map-placeholder[hidden] {
  display: none;
}

.footer {
  background: var(--color-burgundy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer__copy {
  font-size: 14px;
}

.footer__phone {
  font-weight: 600;
  color: var(--color-gold-light);
  transition: color var(--transition);
}

.footer__phone:hover {
  color: var(--color-white);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: center;
}

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-gold-light);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--color-white);
  border-top: 1px solid var(--color-cream-dark);
  box-shadow: 0 -8px 32px rgba(44, 36, 38, 0.12);
  padding: 20px 0;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.cookie-banner__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 38, 0.55);
  backdrop-filter: blur(4px);
}

.cookie-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.cookie-modal__panel--wide {
  max-width: 640px;
}

.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.cookie-modal__close:hover {
  color: var(--color-burgundy);
}

.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 24px;
  padding-right: 32px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

.cookie-option--toggle {
  cursor: pointer;
}

.cookie-option__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-option__desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-option__badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-burgundy);
  background: var(--color-cream);
  padding: 6px 10px;
  border-radius: 50px;
}

.cookie-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  appearance: none;
  background: var(--color-cream-dark);
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.cookie-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.cookie-toggle:checked {
  background: var(--color-burgundy);
}

.cookie-toggle:checked::after {
  transform: translateX(20px);
}

.privacy-content {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.privacy-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 24px 0 8px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.privacy-content a {
  color: var(--color-burgundy);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--color-burgundy-light);
}

.whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}

.whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 40px;
  color: var(--color-white);
  opacity: 0.8;
  transition: opacity var(--transition);
  line-height: 1;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity var(--transition);
  padding: 12px;
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  .review-card {
    flex: 0 0 calc(100% - 0px);
  }

  .callback {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts {
    grid-template-columns: 1fr;
  }

  .contacts__map {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-cream-dark);
    font-size: 16px;
  }

  .burger {
    display: flex;
  }

  .header__actions .btn--sm {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .section {
    padding: 72px 0;
  }

  .process__step {
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
  }

  .callback__form {
    padding: 28px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }
}