:root {
  color-scheme: light;
  --site-header-h: 3.5rem;
  --section-rhythm: clamp(2.5rem, 5vw, 3.5rem);
  --hero-process-gap: clamp(4rem, 8vw, 7.5rem);
  --gallery-testimonials-gap: clamp(4rem, 8vw, 7.5rem);
  --font-serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans-ui: "Montserrat", system-ui, sans-serif;
  /* Typography scale (base 16px) — единая шкала для всего сайта */
  --text-ui-sm: 0.6875rem;   /* 11px */
  --text-ui: 0.75rem;        /* 12px */
  --text-ui-lg: 0.8125rem;   /* 13px */
  --text-md: 0.875rem;       /* 14px */
  --text-base-sm: 0.9375rem; /* 15px */
  --text-base: 1rem;         /* 16px */
  --text-base-lg: 1.0625rem; /* 17px */
  --text-body-em: 1.125rem;  /* 18px */
  --text-lg: 1.25rem;        /* 20px */
  --text-xl: 1.375rem;       /* 22px */
  --text-2xl: 1.5rem;        /* 24px */
  --text-3xl: 1.625rem;      /* 26px */
  --text-4xl: 1.875rem;      /* 30px */
  /* Fluid display */
  --text-logo: clamp(1.2rem, 2.5vw, 1.55rem);                        /* 19–25px */
  --text-hero: clamp(1.85rem, calc(1.1rem + 3.2vw), 3.75rem);        /* 30–60px */
  --text-hero-compact: clamp(1.45rem, calc(0.95rem + 1.55vw), 2.25rem); /* 23–36px */
  --text-page: clamp(2.25rem, 4.75vw, 2.875rem);                     /* 36–46px */
  --text-page-lg: clamp(2.375rem, 5.25vw, 3.375rem);                 /* 38–54px */
  --text-page-sm: clamp(1.875rem, 3.75vw, 2.5rem);                   /* 30–40px */
  --text-section: clamp(1.625rem, 2.75vw, 2.125rem);                 /* 26–34px */
  --text-section-lg: clamp(1.625rem, 3.15vw, 2.125rem);             /* 26–34px */
  --text-subsection: clamp(0.875rem, 0.8rem + 0.28vw, 0.9375rem);    /* 14–15px */
  --text-card-title: clamp(0.8125rem, 0.76rem + 0.22vw, 0.875rem);   /* 13–14px */
  --text-step-title: clamp(0.9375rem, 0.86rem + 0.32vw, 1rem);       /* 15–16px */
  --text-step-desc: var(--text-base-lg);                             /* 17px */
  --text-portrait: clamp(1.375rem, 1.1rem + 0.65vw, 1.625rem);       /* 22–26px */
  --text-modal-title: clamp(1.25rem, 2.5vw, 1.5rem);                 /* 20–24px */
  --text-accent: clamp(1.25rem, 2.5vw, 1.625rem);                    /* 20–26px */
  --text-accent-md: clamp(1.25rem, 2.5vw, 1.5rem);                   /* 20–24px */
  --text-page-block: clamp(1.75rem, 3.4vw, 2.25rem);                 /* 28–36px */
  --text-service-title: clamp(1.875rem, 3.4vw, 2.25rem);           /* 30–36px */
  --text-display-num: clamp(2.125rem, 4.25vw, 3.875rem);             /* 34–62px */
  --text-display-num-lg: clamp(2.375rem, 4.75vw, 3.375rem);          /* 38–54px */
  --text-pin-title: clamp(1rem, 2.1vw, 1.25rem);                     /* 16–20px */
  --text-lead-block: clamp(1.5rem, 2.65vw, 1.875rem);                /* 24–30px */
  /* Cormorant: умеренный tracking (шире Playfair при том же em) */
  --track-hero: 0.08em;
  --track-section: 0.16em;
  --track-card: 0.1em;
  --track-subsection: 0.05em;
  --track-step: 0.1em;
  --track-portrait-name: 0.12em;
  --track-eyebrow: 0.28em;
  --track-logo: 0.2em;
  --image-radius: 6px;
}
body {
  font-family: var(--font-sans-ui);
  font-size: var(--text-base);
  line-height: 1.65;
  background-color: #f5f1e9;
  color: #2a2a2a;
}
/* Typography utilities (для Blade и общих компонентов) */
.text-ui-sm { font-size: var(--text-ui-sm); }
.text-ui { font-size: var(--text-ui); }
.text-ui-lg { font-size: var(--text-ui-lg); }
.text-md { font-size: var(--text-md); }
.text-body-sm { font-size: var(--text-base-sm); }
.text-body { font-size: var(--text-base); }
.text-body-lg { font-size: var(--text-base-lg); }
.text-body-em { font-size: var(--text-body-em); }
.text-footer-heading {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--track-logo);
  text-transform: uppercase;
}
.hero-lead {
  font-size: var(--text-base);
  line-height: 1.75;
  color: #666666;
}
@media (min-width: 640px) {
  .hero-lead {
    font-size: var(--text-base-lg);
  }
}
.site-btn {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (min-width: 640px) {
  .site-btn {
    font-size: var(--text-base);
  }
}
.site-tag {
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.text-muted {
  color: #666666;
}
h1,
h2 {
  letter-spacing: normal;
}
.font-serif {
  font-family: var(--font-serif-display);
  font-feature-settings: "kern" 1, "liga" 1;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-serif-display);
  line-height: 1.1;
  white-space: nowrap;
}
.site-logo__label {
  color: #1a2b40;
  font-size: var(--text-logo);
  font-weight: 700;
  letter-spacing: 0.055em;
}
.site-logo__label--accent {
  color: #c5a572;
}
.site-logo__divider {
  width: 1px;
  height: 1.35rem;
  background: rgba(197, 165, 114, 0.72);
  transform: rotate(14deg);
}
@media (max-width: 639px) {
  .site-logo {
    gap: 0.45rem;
  }
  .site-logo__label {
    font-size: clamp(1.4rem, 5vw, 1.5rem);
  }
  .site-logo__divider {
    height: 1.5rem;
  }
}
.site-nav {
  gap: clamp(0.65rem, 1.1vw, 1rem);
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: var(--text-ui-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(42, 42, 42, 0.7);
  white-space: nowrap;
  line-height: 1;
  transition: color 0.2s ease;
}
@media (min-width: 1280px) {
  .site-nav {
    gap: 1.15rem;
  }
  .site-nav__link {
    font-size: var(--text-ui);
    letter-spacing: 0.12em;
  }
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: #c5a572;
  opacity: 0;
  transform: scaleX(0.6);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav__link:hover {
  color: #1a2b40;
}
.site-nav__link[aria-current="page"] {
  color: #1a2b40;
}
.site-nav__link[aria-current="page"]::after {
  opacity: 0.9;
  transform: scaleX(1);
}
.site-nav__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572;
}
.site-header {
  isolation: isolate;
  overflow: visible;
  background-color: #f5f1e9;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.site-header__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
  margin-inline-end: 5px;
}
@media (min-width: 640px) {
  .site-header__actions {
    gap: 0.875rem;
  }
}
.site-header__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.75rem;
  min-height: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid rgba(197, 165, 114, 0.32);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.52);
  color: #1a2b40;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.site-header__icon-btn svg,
.site-nav-toggle__bars,
.site-nav-toggle__bars span {
  pointer-events: none;
}
.site-header__icon-btn:hover {
  border-color: rgba(197, 165, 114, 0.62);
  background: rgba(255, 255, 255, 0.88);
  color: #152238;
  box-shadow: 0 2px 8px -4px rgba(26, 43, 64, 0.12);
}
.site-header__icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572;
}
.site-header__icon-btn:active {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px -2px rgba(26, 43, 64, 0.14);
}
.site-header__call-btn {
  width: auto;
  min-width: 2.75rem;
  height: 2.75rem;
  gap: 0.4375rem;
  padding: 0 0.8125rem;
  border-color: rgba(26, 43, 64, 0.12);
  background: #1a2b40;
  color: #f5f1e9;
}
.site-header__call-btn:hover {
  border-color: rgba(197, 165, 114, 0.5);
  background: #152238;
  color: #f5f1e9;
  box-shadow: 0 2px 10px -4px rgba(26, 43, 64, 0.22);
}
.site-header__call-btn:active {
  background: #152238;
  box-shadow: 0 1px 6px -2px rgba(26, 43, 64, 0.2);
}
.site-header__call-btn-icon {
  display: block;
  width: 1.0625rem;
  height: 1.0625rem;
  flex-shrink: 0;
  color: #c5a572;
  transition: color 0.2s ease;
}
.site-header__call-btn:hover .site-header__call-btn-icon {
  color: #f5f1e9;
}
.site-header__call-btn-text {
  font-family: var(--font-sans-ui);
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.site-header__call-btn-text--short {
  display: none;
}
.site-header__call-btn-text--phone {
  display: none;
  letter-spacing: 0.02em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 369px) {
  .site-header__call-btn {
    width: 2.75rem;
    padding-inline: 0;
  }
}
@media (min-width: 370px) and (max-width: 479px) {
  .site-header__call-btn {
    width: auto;
    padding-inline: 0.8125rem;
  }
  .site-header__call-btn-text--short {
    display: inline;
  }
}
@media (min-width: 480px) {
  .site-header__call-btn {
    padding-inline: 0.875rem;
  }
  .site-header__call-btn-text--phone {
    display: inline;
    font-size: var(--text-ui-sm);
  }
}
@media (min-width: 640px) {
  .site-header__call-btn {
    padding-inline: 1rem;
    gap: 0.5rem;
  }
  .site-header__call-btn-text--phone {
    font-size: var(--text-ui-lg);
  }
}
@media (min-width: 1024px) {
  .site-header__call-btn {
    min-height: 2.75rem;
    height: auto;
    gap: 0.4375rem;
    padding: 0.5625rem 1rem 0.5625rem 0.875rem;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      box-shadow 0.2s ease,
      gap 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-header__call-btn:hover {
    gap: 0.5rem;
  }
  .site-header__call-btn-icon {
    width: 0.875rem;
    height: 0.875rem;
    transition:
      color 0.2s ease,
      transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-header__call-btn:hover .site-header__call-btn-icon {
    color: #c5a572;
    transform: translateX(1px) scale(1.05);
  }
  .site-header__call-btn-text--phone {
    font-size: var(--text-ui-lg);
    transition:
      color 0.2s ease,
      transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-header__call-btn:hover .site-header__call-btn-text--phone {
    color: #c5a572;
    transform: translateX(-1px);
  }
}
.site-nav-toggle {
  padding: 0;
}
.site-nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1rem;
}
.site-nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  transform-origin: center;
}
.site-nav-toggle--active .site-nav-toggle__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.site-nav-toggle--active .site-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-nav-toggle--active .site-nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
@media (min-width: 640px) {
  :root {
    --site-header-h: 3.75rem;
  }
}
.site-nav-panel {
  --site-header-h: 3.5rem;
  --nav-panel-duration: 0.5s;
  --nav-panel-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-panel-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  transition: visibility 0s linear var(--nav-panel-duration);
}
.site-nav-panel:not(.site-nav-panel--open) .site-nav-panel__backdrop,
.site-nav-panel:not(.site-nav-panel--open) .site-nav-panel__sheet {
  pointer-events: none;
}
.site-nav-panel--open {
  z-index: 60;
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.site-nav-panel--open .site-nav-panel__backdrop,
.site-nav-panel--open .site-nav-panel__sheet {
  pointer-events: auto;
}
.site-nav-panel__backdrop {
  position: absolute;
  top: var(--site-header-h, 3.5rem);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border: 0;
  background: rgba(26, 43, 64, 0.48);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--nav-panel-duration) var(--nav-panel-ease);
}
.site-nav-panel--open .site-nav-panel__backdrop {
  opacity: 1;
}
.site-nav-panel__sheet {
  position: absolute;
  top: var(--site-header-h, 3.5rem);
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(18.5rem, 88vw);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background-color: #f5f1e9;
  border-left: 1px solid rgba(197, 165, 114, 0.35);
  box-shadow: -12px 0 40px -16px rgba(26, 43, 64, 0.22);
  opacity: 0.92;
  transform: translate3d(calc(100% + 0.5rem), 0, 0);
  transition:
    transform var(--nav-panel-duration) var(--nav-panel-ease),
    opacity calc(var(--nav-panel-duration) * 0.85) var(--nav-panel-ease);
  will-change: transform, opacity;
}
.site-nav-panel--open .site-nav-panel__sheet {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.site-nav-panel__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav-panel__link {
  display: block;
  padding: 0.875rem 0.25rem;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2a2a;
  border-bottom: 1px solid rgba(197, 165, 114, 0.22);
  opacity: 0;
  transform: translate3d(1rem, 0, 0);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(197, 165, 114, 0.25);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.15s ease,
    opacity 0.35s var(--nav-panel-ease-out),
    transform 0.35s var(--nav-panel-ease-out);
  transition-delay: 0s;
}
.site-nav-panel--open .site-nav-panel__link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}
.site-nav-panel__link:active {
  color: #1a2b40;
  background-color: rgba(197, 165, 114, 0.12);
}
.site-nav-panel--open .site-nav-panel__link:nth-child(1) {
  transition-delay: 0.1s;
}
.site-nav-panel--open .site-nav-panel__link:nth-child(2) {
  transition-delay: 0.14s;
}
.site-nav-panel--open .site-nav-panel__link:nth-child(3) {
  transition-delay: 0.18s;
}
.site-nav-panel--open .site-nav-panel__link:nth-child(4) {
  transition-delay: 0.22s;
}
.site-nav-panel--open .site-nav-panel__link:nth-child(5) {
  transition-delay: 0.26s;
}
.site-nav-panel--open .site-nav-panel__link:nth-child(6) {
  transition-delay: 0.3s;
}
@media (hover: hover) {
  .site-nav-panel__link:hover {
    color: #1a2b40;
    transform: translate3d(-0.25rem, 0, 0);
  }
  .site-nav-panel--open .site-nav-panel__link:hover {
    transform: translate3d(-0.25rem, 0, 0);
  }
}
.site-nav-panel__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #c5a572;
}
body.site-nav-open {
  overflow: hidden;
}
body.site-nav-open .site-header {
  z-index: 70;
}
@media (prefers-reduced-motion: reduce) {
  .site-nav-panel {
    --nav-panel-duration: 0.01ms;
    transition: none;
  }
  .site-nav__link::after {
    transition: none;
  }
  .site-nav-panel__backdrop,
  .site-nav-panel__sheet,
  .site-nav-panel__link {
    transition: none;
  }
  .site-nav-panel__sheet {
    opacity: 1;
    transform: none;
  }
  .site-nav-panel__link {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1024px) {
  .site-nav-panel {
    display: none !important;
  }
}
.hero-eyebrow {
  font-family: var(--font-sans-ui);
  font-size: var(--text-ui);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: rgba(26, 43, 64, 0.7);
}
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.img-stage {
  position: relative;
  overflow: hidden;
}
.img-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.img-stage img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.img-stage:hover img {
  transform: scale(1.03);
}
/* Фильтры галереи на главной */
#gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.filter-btn {
  border-radius: 0.375rem;
  border: 1px solid rgba(197, 165, 114, 0.35);
  background: #fff;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans-ui);
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42, 42, 42, 0.75);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-btn:hover {
  border-color: var(--color-gold, #c5a572);
  color: var(--color-navy, #1a2b40);
}
.filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-cream, #f5f1e9), 0 0 0 4px var(--color-gold, #c5a572);
}
.filter-btn:active {
  transform: scale(0.98);
}
.filter-btn.is-active {
  border-color: rgba(26, 43, 64, 0.15);
  background: var(--color-navy, #1a2b40);
  color: var(--color-cream, #f5f1e9);
  box-shadow: 0 2px 6px rgba(26, 43, 64, 0.08);
}
.filter-btn.is-active:hover {
  border-color: rgba(26, 43, 64, 0.15);
  background: #152238;
  color: var(--color-cream, #f5f1e9);
}

.gallery-item.hidden-item,
#gallery-grid.gallery-mosaic .gallery-item.hidden-item {
  display: none !important;
}
#gallery-grid.gallery-mosaic .gallery-col--empty {
  display: none;
}
/* Галерея: 4 колонки, в каждой 2 кадра разной высоты (как на макете) */
#gallery-grid.gallery-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) repeat(3, minmax(0, 1fr));
  gap: clamp(0.625rem, 1.2vw, 0.875rem);
  align-items: stretch;
  height: clamp(24rem, 46vw, 36rem);
  min-height: 21rem;
}
#gallery-grid.gallery-mosaic .gallery-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 1.2vw, 0.875rem);
  min-width: 0;
  min-height: 0;
  height: 100%;
}
#gallery-grid.gallery-mosaic .gallery-item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  background-color: #ebe8e0;
  box-shadow: 0 2px 6px rgba(26, 43, 64, 0.05), 0 16px 40px -18px rgba(26, 43, 64, 0.12);
}
#gallery-grid.gallery-mosaic .gallery-item__frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: inherit;
  background-color: #ebe8e0;
}
#gallery-grid.gallery-mosaic .gallery-item__frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
}
/* Пропорции кадров внутри колонок */
#gallery-grid.gallery-mosaic .gallery-col--1 .gallery-item--tall {
  flex-grow: 1.32;
}
#gallery-grid.gallery-mosaic .gallery-col--1 .gallery-item--compact {
  flex-grow: 0.78;
}
#gallery-grid.gallery-mosaic .gallery-col--2 .gallery-item--medium {
  flex-grow: 1.02;
}
#gallery-grid.gallery-mosaic .gallery-col--2 .gallery-item--tall {
  flex-grow: 1.08;
}
#gallery-grid.gallery-mosaic .gallery-col--3 .gallery-item--tall {
  flex-grow: 1.22;
}
#gallery-grid.gallery-mosaic .gallery-col--3 .gallery-item--compact {
  flex-grow: 0.88;
}
#gallery-grid.gallery-mosaic .gallery-col--4 .gallery-item--hero {
  flex-grow: 1.38;
}
#gallery-grid.gallery-mosaic .gallery-col--4 .gallery-item--compact {
  flex-grow: 0.72;
}
/* Точечный кроп под сюжет кадра */
#gallery-grid.gallery-mosaic .gallery-col--1 .gallery-item--tall img {
  object-position: center 15%;
}
#gallery-grid.gallery-mosaic .gallery-col--1 .gallery-item--compact img {
  object-position: center 42%;
}
#gallery-grid.gallery-mosaic .gallery-col--2 .gallery-item--medium img {
  object-position: center 22%;
}
#gallery-grid.gallery-mosaic .gallery-col--2 .gallery-item--tall img {
  object-position: center 28%;
}
#gallery-grid.gallery-mosaic .gallery-col--3 .gallery-item--tall img {
  object-position: center 18%;
}
#gallery-grid.gallery-mosaic .gallery-col--3 .gallery-item--compact img {
  object-position: center 38%;
}
#gallery-grid.gallery-mosaic .gallery-col--4 .gallery-item--hero img {
  object-position: center 30%;
}
#gallery-grid.gallery-mosaic .gallery-col--4 .gallery-item--compact img {
  object-position: center 55%;
}
.gallery-item__open {
  display: flex;
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: inherit;
  border-radius: inherit;
}
.gallery-item__open:focus-visible {
  outline: 2px solid #c5a572;
  outline-offset: 2px;
}
.gallery-item__open:hover .gallery-item__frame img {
  transform: scale(1.03);
}
#gallery-grid.gallery-mosaic .gallery-item__frame img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-lightbox {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}
.gallery-lightbox[open] {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
}
.gallery-lightbox::backdrop {
  background: rgba(21, 34, 56, 0.88);
  backdrop-filter: blur(4px);
}
body:has(.gallery-lightbox[open]) {
  overflow: hidden;
}
.gallery-lightbox__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 56rem);
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(2.75rem, 8vw, 4rem);
}
.gallery-lightbox__figure {
  margin: 0;
  max-height: min(88vh, 52rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.gallery-lightbox__img {
  display: block;
  max-width: min(88vw, 48rem);
  max-height: min(78vh, 46rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 14px 48px -10px rgba(26, 43, 64, 0.35), 0 6px 20px -8px rgba(21, 34, 56, 0.25);
}
.gallery-lightbox__caption {
  max-width: min(88vw, 36rem);
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #f5f1e9;
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(197, 165, 114, 0.45);
  background: rgba(26, 43, 64, 0.75);
  color: #f5f1e9;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(26, 43, 64, 0.95);
  border-color: #c5a572;
}
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__nav:focus-visible {
  outline: 2px solid #c5a572;
  outline-offset: 2px;
}
.gallery-lightbox__close:active,
.gallery-lightbox__nav:active {
  transform: scale(0.96);
}
.gallery-lightbox__close {
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 6px;
  font-size: var(--text-3xl);
  line-height: 1;
}
.gallery-lightbox__nav {
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  border-radius: 9999px;
  font-size: var(--text-4xl);
  line-height: 1;
}
.gallery-lightbox__nav--prev {
  left: 0;
}
.gallery-lightbox__nav--next {
  right: 0;
}
@media (max-width: 639px) {
  .gallery-lightbox__inner {
    padding: 2.75rem 0.25rem 1rem;
  }
  .gallery-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: -1.125rem;
  }
  .gallery-lightbox__nav--prev {
    left: 0.15rem;
  }
  .gallery-lightbox__nav--next {
    right: 0.15rem;
  }
}
@media (max-width: 1023px) {
  #gallery-grid.gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
  }
  #gallery-grid.gallery-mosaic .gallery-col {
    height: clamp(18rem, 42vw, 24rem);
  }
}
@media (max-width: 639px) {
  #gallery-grid.gallery-mosaic {
    grid-template-columns: 1fr;
  }
  #gallery-grid.gallery-mosaic .gallery-col {
    height: auto;
  }
  #gallery-grid.gallery-mosaic .gallery-item {
    flex: 0 0 auto;
    min-height: clamp(10rem, 38vw, 13rem);
  }
  #gallery-grid.gallery-mosaic .gallery-col--1 .gallery-item--tall,
  #gallery-grid.gallery-mosaic .gallery-col--4 .gallery-item--hero {
    min-height: clamp(13rem, 48vw, 16rem);
  }
}
#hero {
  --hero-card-pull: clamp(2.75rem, min(9vw, 5.5rem), 6.25rem);
  /* max-w-6xl = 72rem; баннер чуть шире контентной колонки */
  --hero-banner-extra: clamp(0.75rem, 2.5vw, 2rem);
}
.hero-banner-wrap {
  width: min(100%, calc(72rem + var(--hero-banner-extra)));
  margin-inline: auto;
}
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(20.5rem, 58svh, 48rem);
  overflow: hidden;
  background-color: #f5f1e9;
}
@media (min-width: 640px) {
  .hero-visual {
    min-height: clamp(23.5rem, 54svh, 50rem);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-visual {
    min-height: clamp(25rem, 50svh, 50rem);
  }
}
@media (min-width: 1024px) {
  .hero-visual {
    min-height: clamp(26rem, 48svh, 52rem);
  }
}
@media (min-width: 1536px) {
  .hero-visual {
    min-height: clamp(26rem, 42svh, 52rem);
  }
}
@media (max-height: 34rem) and (orientation: landscape) {
  .hero-visual {
    min-height: min(17.5rem, 78svh);
  }
}
.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
  opacity: 1;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.08) 38%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.42) 46%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 54%,
    #000 60%,
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.08) 38%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.42) 46%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 54%,
    #000 60%,
    #000 100%
  );
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-visual::after {
  display: none;
}
@media (min-width: 640px) {
  .hero-visual > img {
    object-position: 58% 26%;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 34%,
      rgba(0, 0, 0, 0.06) 40%,
      rgba(0, 0, 0, 0.18) 44%,
      rgba(0, 0, 0, 0.38) 48%,
      rgba(0, 0, 0, 0.6) 52%,
      rgba(0, 0, 0, 0.82) 56%,
      #000 62%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 34%,
      rgba(0, 0, 0, 0.06) 40%,
      rgba(0, 0, 0, 0.18) 44%,
      rgba(0, 0, 0, 0.38) 48%,
      rgba(0, 0, 0, 0.6) 52%,
      rgba(0, 0, 0, 0.82) 56%,
      #000 62%,
      #000 100%
    );
  }
}
@media (min-width: 1024px) {
  .hero-visual > img {
    object-position: 62% center;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 36%,
      rgba(0, 0, 0, 0.05) 42%,
      rgba(0, 0, 0, 0.16) 46%,
      rgba(0, 0, 0, 0.34) 50%,
      rgba(0, 0, 0, 0.56) 54%,
      rgba(0, 0, 0, 0.78) 58%,
      #000 64%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 36%,
      rgba(0, 0, 0, 0.05) 42%,
      rgba(0, 0, 0, 0.16) 46%,
      rgba(0, 0, 0, 0.34) 50%,
      rgba(0, 0, 0, 0.56) 54%,
      rgba(0, 0, 0, 0.78) 58%,
      #000 64%,
      #000 100%
    );
  }
}
@media (max-height: 34rem) and (orientation: landscape) {
  .hero-visual > img {
    object-position: 65% center;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 28%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.55) 48%,
      #000 58%,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      transparent 28%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.55) 48%,
      #000 58%,
      #000 100%
    );
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}
.hero-inner .hero-text-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding-bottom: calc(max(1.75rem, env(safe-area-inset-bottom, 0px)) + var(--hero-card-pull) + 1.5rem);
}
.hero-text-panel {
  position: relative;
  z-index: 1;
}
@media (max-width: 1023px) {
  .hero-visual::before {
    opacity: 1;
    background: linear-gradient(
      118deg,
      rgba(245, 241, 233, 0.72) 0%,
      rgba(245, 241, 233, 0.42) 18%,
      rgba(245, 241, 233, 0.15) 32%,
      transparent 48%
    );
  }
  .hero-visual > img {
    object-position: 78% 22%;
  }
  .hero-text-panel {
    padding: clamp(1rem, 3vw, 1.35rem) clamp(1.1rem, 3.5vw, 1.5rem);
    border-radius: 0.625rem;
    background: rgba(245, 241, 233, 0.48);
    -webkit-backdrop-filter: blur(0px) saturate(1.03);
    backdrop-filter: blur(0px) saturate(1.03);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.4) inset,
      0 6px 24px -14px rgba(26, 43, 64, 0.14);
  }
  .hero-title {
    text-shadow: 0 1px 12px rgba(245, 241, 233, 0.85);
  }
  .hero-inner .hero-lead {
    color: #4a4a4a;
    text-shadow: 0 1px 8px rgba(245, 241, 233, 0.8);
  }
}
@media (max-width: 639px) {
  .hero-visual::before {
    background: linear-gradient(
      165deg,
      rgba(245, 241, 233, 0.78) 0%,
      rgba(245, 241, 233, 0.5) 28%,
      rgba(245, 241, 233, 0.12) 45%,
      transparent 62%
    );
  }
  .hero-visual > img {
    object-position: 72% 22%;
  }
  .hero-text-panel {
    padding: clamp(0.9rem, 4vw, 1.15rem) clamp(1rem, 4vw, 1.25rem);
    background: rgba(245, 241, 233, 0.52);
    -webkit-backdrop-filter: blur(0px) saturate(1.03);
    backdrop-filter: blur(0px) saturate(1.03);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hero-text-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(245, 241, 233, 0.88);
  }
  .hero-title,
  .hero-inner .hero-lead {
    text-shadow: none;
  }
}
.hero-title {
  font-family: var(--font-serif-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  color: #1a2b40;
}
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--image-radius);
  background-color: #ffffff;
  box-shadow: 0 8px 40px -12px rgba(26, 43, 64, 0.18);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 12px 48px -14px rgba(26, 43, 64, 0.22);
}
.service-card:hover .service-card__title {
  color: #c5a572;
}
.service-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572, 0 8px 40px -12px rgba(26, 43, 64, 0.18);
}
.service-card__media {
  flex-shrink: 0;
  display: flex;
  align-self: stretch;
  padding: clamp(0.75rem, 1.1vw, 0.9375rem);
}
.service-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--image-radius);
  object-fit: cover;
  object-position: center;
  background-color: #ebe8e0;
}
.service-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(0.625rem, 1vw, 0.875rem) clamp(0.875rem, 1.4vw, 1.125rem) clamp(0.875rem, 1.4vw, 1.125rem);
}
@media (min-width: 768px) {
  .service-card {
    flex-direction: row;
    align-items: stretch;
  }
  .service-card__media {
    flex: 0 0 clamp(7.75rem, 36%, 10.75rem);
    width: clamp(7.75rem, 36%, 10.75rem);
    padding: clamp(0.75rem, 1.1vw, 0.9375rem) 0 clamp(0.75rem, 1.1vw, 0.9375rem) clamp(0.75rem, 1.1vw, 0.9375rem);
  }
  .service-card__img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }
  .service-card__body {
    padding: clamp(0.9375rem, 1.4vw, 1.125rem) clamp(1.125rem, 1.7vw, 1.5rem) clamp(0.9375rem, 1.4vw, 1.125rem) clamp(0.9375rem, 1.2vw, 1rem);
  }
}
.service-card__title {
  font-family: var(--font-sans-ui);
  font-size: var(--text-card-title);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #1a2b40;
  transition: color 0.2s ease;
}
.subsection-title {
  font-family: var(--font-sans-ui);
  font-size: var(--text-subsection);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: var(--track-subsection);
  text-transform: uppercase;
  color: #1a2b40;
}
.master-portrait__name {
  font-family: var(--font-serif-display);
  font-size: var(--text-portrait);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--track-portrait-name);
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  color: #1a2b40;
}
@media (max-height: 30rem) and (orientation: landscape) {
  .hero-title {
    font-size: var(--text-hero-compact);
  }
}
.hero-service-overlap {
  margin-top: calc(-1 * var(--hero-card-pull));
  margin-bottom: 0;
}
@media (max-height: 34rem) and (orientation: landscape) {
  #hero {
    --hero-card-pull: clamp(1.75rem, 4vw, 3.25rem);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
@media (max-height: 32rem) and (orientation: landscape) and (max-width: 639px) {
  .hero-inner .hero-lead {
    margin-top: 0.5rem;
    font-size: var(--text-base-sm);
  }
  .hero-inner .hero-cta-row {
    margin-top: 1rem;
    gap: 0.625rem;
  }
}
.section-title--process {
  max-width: 34rem;
  line-height: 1.32;
}
.section-title--process .section-title__line {
  display: block;
}
#process .process-steps {
  position: relative;
}
#process .process-step .process-arrow {
  display: none;
}
@media (max-width: 1023px) {
  #process .process-step:not(:last-child) .process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.35rem auto 0;
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1;
    color: rgba(168, 137, 88, 0.7);
    transform: rotate(90deg);
  }
}
@media (min-width: 1024px) {
  #process .process-step:not(:last-child) .process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: calc(var(--process-icon) / 2);
    right: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 300;
    line-height: 1;
    color: rgba(168, 137, 88, 0.75);
    transform: translate(50%, -50%);
    z-index: 2;
    pointer-events: none;
  }
}
/* Шаги процесса: крупные векторные иконки, как в исходном макете */
.process-step {
  --process-icon: 4.5rem;
}
.process-step--icon-lg {
  --process-icon: clamp(7.25rem, 11.5vw, 9.75rem);
}
.process-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--process-icon);
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.process-icon-wrap img {
  width: var(--process-icon);
  height: var(--process-icon);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.process-step__title {
  font-family: var(--font-sans-ui);
  font-size: var(--text-step-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--track-step);
  text-transform: uppercase;
  color: #1a2b40;
}
.process-step__desc {
  margin-top: 0.625rem;
  max-width: 17rem;
  font-size: var(--text-step-desc);
  font-weight: 400;
  line-height: 1.65;
  color: #666666;
}
.master-portrait img {
  display: block;
  width: 100%;
}
#constructor-master {
  scroll-margin-top: 4.25rem;
}
#constructor-master .master-portrait__frame {
  position: relative;
  background-color: #ebe8e0;
}
#constructor-master .master-portrait__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(2rem, 18%, 2.75rem) 0.75rem 0.85rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(46, 42, 38, 0) 0%,
    rgba(46, 42, 38, 0.42) 40%,
    rgba(46, 42, 38, 0.82) 100%
  );
  pointer-events: none;
}
#constructor-master .master-portrait__name {
  margin: 0;
  color: #f5f1e9;
  text-shadow: 0 1px 10px rgba(46, 42, 38, 0.35);
}
#constructor-master .master-portrait__role {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans-ui);
  font-size: var(--text-ui-sm);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c5a572;
}
@media (min-width: 640px) {
  #constructor-master .master-portrait__role {
    font-size: var(--text-ui);
  }
}
@media (min-width: 1024px) {
  #constructor-master .master-portrait {
    width: 100%;
    max-width: 17.5rem;
  }
}
#services-cards article {
  border-radius: 0;
}
#services-cards .relative {
  min-height: 10rem;
}
@media (min-width: 768px) {
  #services-cards .relative {
    width: 11.5rem;
    min-height: 100%;
  }
}
/* Разделитель секций: тонкая линия + полый ромб (как на макете) */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 72rem);
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.section-divider--tight {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.section-divider--between {
  position: relative;
  z-index: 2;
  padding-top: var(--section-rhythm);
  padding-bottom: var(--section-rhythm);
}
.hero-section {
  padding-bottom: var(--hero-process-gap);
}
#process.main-section--after-hero {
  padding-top: 0;
}
#gallery.main-section--before-testimonials {
  padding-bottom: var(--gallery-testimonials-gap);
}
#testimonials.main-section--after-gallery {
  padding-top: 0;
}
.section-divider--before-footer {
  padding-top: var(--section-rhythm);
  padding-bottom: var(--section-rhythm);
}
.main-section {
  padding-top: var(--section-rhythm);
  padding-bottom: var(--section-rhythm);
}
.main-section--before-divider {
  padding-bottom: 0;
}
.main-section--after-divider {
  padding-top: 0;
}
.section-divider__line {
  flex: 1 1 auto;
  height: 1px;
  background-color: rgba(197, 165, 114, 0.38);
}
.section-divider__diamond {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(168, 137, 88, 0.85);
  background-color: #f5f1e9;
  transform: rotate(45deg);
}
#constructor-master.main-section--before-divider {
  padding-bottom: 0;
}
.section-title--split .section-title__line {
  display: block;
}
#footer.site-footer {
  border-top: none;
}
#footer.site-footer .site-footer__grid {
  padding-top: 0;
  margin-top: 0;
}
#footer.site-footer .site-footer__legal {
  background-color: #ebe8e0;
}
.section-title {
  margin-inline: auto;
  max-width: 46rem;
  text-align: center;
  font-family: var(--font-serif-display);
  font-weight: 700;
  font-size: var(--text-section);
  line-height: 1.28;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  color: #1a2b40;
}
.section-title--wide {
  max-width: 52rem;
  line-height: 1.32;
}
.section-heading-block {
  margin-bottom: clamp(2.75rem, 5vw, 3.5rem);
}
.section-heading-block.text-center .section-title {
  margin-inline: auto;
}
#gallery .section-heading-block {
  margin-bottom: 0;
}
#testimonials .section-heading-block {
  margin-bottom: 3rem;
}
#constructor-master .section-heading-block {
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
#constructor-master + .section-divider--before-footer {
  margin-top: 0;
}
.testimonial-quote {
  max-width: 16rem;
}
.testimonial-quote::before,
.testimonial-quote::after {
  color: #c5a572;
  font-weight: 600;
}
.testimonial-quote::before {
  content: "«";
  margin-right: 0.12em;
}
.testimonial-quote::after {
  content: "»";
  margin-left: 0.12em;
}

/* Модальное окно заявки */
.application-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: none;
  background: transparent;
  overflow-y: auto;
}
.application-modal::backdrop {
  background: rgba(21, 34, 56, 0.62);
  backdrop-filter: blur(4px);
}
.application-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.application-modal__panel {
  position: relative;
  width: min(100%, 28rem);
  max-height: min(92vh, 44rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid rgba(197, 165, 114, 0.35);
  background: linear-gradient(165deg, #faf7f0 0%, #f5f1e9 48%, #ebe8e0 100%);
  box-shadow:
    0 24px 64px -20px rgba(26, 43, 64, 0.28),
    0 8px 24px -12px rgba(21, 34, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.application-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(26, 43, 64, 0.12);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.65);
  color: #1a2b40;
  font-size: var(--text-2xl);
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.application-modal__close:hover {
  border-color: rgba(197, 165, 114, 0.55);
  background: #fff;
}
.application-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572;
}
.application-modal__close:active {
  transform: scale(0.96);
}
.application-form__eyebrow {
  margin: 0;
  font-size: var(--text-ui);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(168, 137, 88, 0.95);
}
.application-form__title {
  margin: 0.5rem 2rem 0 0;
  font-family: var(--font-serif-display);
  font-size: var(--text-modal-title);
  font-weight: 600;
  line-height: 1.35;
  color: #1a2b40;
}
.application-form__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}
.application-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--text-ui-lg);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(42, 42, 42, 0.75);
}
.application-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(26, 43, 64, 0.14);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans-ui);
  font-size: var(--text-base);
  line-height: 1.45;
  color: #2a2a2a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.application-field__input::placeholder {
  color: rgba(42, 42, 42, 0.38);
}
.application-field__input:hover {
  border-color: rgba(197, 165, 114, 0.45);
}
.application-field__input:focus {
  outline: none;
  border-color: rgba(197, 165, 114, 0.85);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.22);
}
.application-field__input--area {
  min-height: 6.5rem;
  resize: vertical;
}
.application-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1rem;
  cursor: pointer;
}
.application-consent__checkbox {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: #1a2b40;
  cursor: pointer;
}
.application-consent__checkbox:focus-visible {
  outline: 2px solid #c5a572;
  outline-offset: 2px;
}
.application-consent__text {
  font-size: var(--text-md);
  line-height: 1.55;
  color: rgba(42, 42, 42, 0.78);
}
.application-consent__link {
  color: #1a2b40;
  text-decoration: underline;
  text-decoration-color: rgba(197, 165, 114, 0.55);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.application-consent__link:hover {
  color: #a88958;
  text-decoration-color: #a88958;
}
.application-consent__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #c5a572;
  border-radius: 2px;
}
.application-form__error {
  margin: 0.75rem 0 0;
  font-size: var(--text-base-sm);
  line-height: 1.45;
  color: #8b3a32;
}
.application-form__success {
  margin: 0.75rem 0 0;
  font-size: var(--text-base-sm);
  line-height: 1.45;
  color: #1a2b40;
}
.application-form__submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 0.25rem;
  background: #1a2b40;
  font-family: var(--font-sans-ui);
  font-size: var(--text-ui-lg);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5f1e9;
  cursor: pointer;
  box-shadow:
    0 14px 48px -10px rgba(26, 43, 64, 0.14),
    0 6px 20px -8px rgba(21, 34, 56, 0.1);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.application-form__submit:hover:not(:disabled) {
  background: #152238;
  transform: translateY(-1px);
}
.application-form__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572;
}
.application-form__submit:active:not(:disabled) {
  transform: translateY(0);
}
.application-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.application-form--success .application-form__fields,
.application-form--success .application-form__error {
  display: none;
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.75rem clamp(0.75rem, 2vw, 1rem) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(110%);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(197, 165, 114, 0.32);
  background: rgba(245, 241, 233, 0.96);
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 -8px 32px -12px rgba(26, 43, 64, 0.18),
    0 14px 48px -10px rgba(26, 43, 64, 0.14);
}
@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 1.35rem;
  }
}
.cookie-banner__content {
  min-width: 0;
}
.cookie-banner__title {
  margin: 0;
  font-size: var(--text-ui-lg);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a2b40;
}
.cookie-banner__text {
  margin: 0.45rem 0 0;
  font-size: var(--text-base-sm);
  line-height: 1.6;
  color: rgba(42, 42, 42, 0.82);
}
.cookie-banner__link {
  color: #1a2b40;
  text-decoration: underline;
  text-decoration-color: rgba(197, 165, 114, 0.55);
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.cookie-banner__link:hover {
  color: #c5a572;
  text-decoration-color: rgba(197, 165, 114, 0.95);
}
.cookie-banner__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572;
  border-radius: 2px;
}
.cookie-banner__actions {
  flex-shrink: 0;
}
.cookie-banner__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.72rem 1.35rem;
  border: none;
  border-radius: 0.25rem;
  background: #1a2b40;
  font-family: var(--font-sans-ui);
  font-size: var(--text-ui-lg);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5f1e9;
  cursor: pointer;
  box-shadow:
    0 14px 48px -10px rgba(26, 43, 64, 0.14),
    0 6px 20px -8px rgba(21, 34, 56, 0.1);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.cookie-banner__accept:hover {
  background: #152238;
  transform: translateY(-1px);
}
.cookie-banner__accept:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #f5f1e9, 0 0 0 4px #c5a572;
}
.cookie-banner__accept:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
  .cookie-banner__accept {
    transition: none;
  }
  .cookie-banner__accept:hover,
  .cookie-banner__accept:active {
    transform: none;
  }
}

/* —— Scroll reveal (главная, контакты, индивидуальный пошив, ремонт, портфолио, политика) —— */
.site-reveal,
.contacts-reveal,
.individ-reveal,
.repair-reveal,
.portfolio-reveal,
.privacy-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-reveal.is-visible,
.contacts-reveal.is-visible,
.individ-reveal.is-visible,
.repair-reveal.is-visible,
.portfolio-reveal.is-visible,
.privacy-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .site-reveal,
  .contacts-reveal,
  .individ-reveal,
  .repair-reveal,
  .portfolio-reveal,
  .privacy-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
