/* Mir Upakovki — premium edition */
:root {
  --navy: #0c2340;
  --navy-mid: #153a66;
  --navy-soft: #1e4d7a;
  --beige: #f5f0e8;
  --beige-dark: #e8dfd0;
  --cream: #faf8f4;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --gold-dark: #9a7b1a;
  --text: #1c2836;
  --text-muted: #5a6573;
  --white: #ffffff;
  --shadow: 0 8px 40px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 24px 64px rgba(12, 35, 64, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
  --section-y: clamp(4rem, 10vw, 7rem);
  --section-head-gap: clamp(2rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.page-top-anchor {
  display: block;
  height: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

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

a { color: var(--navy-soft); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid rgba(12, 35, 64, 0.08);
  box-shadow: 0 2px 16px rgba(12, 35, 64, 0.04);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
}

.site-header .container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  width: 100%;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-link:hover { text-decoration: none; }

.logo-mark {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  /* JPG с белым фоном: белое сливается с шапкой */
  mix-blend-mode: multiply;
}

.logo-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.logo-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem 2rem;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.35s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.main-nav a:hover,
.main-nav a.active { color: var(--navy); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ——— Buttons: navy default, gold on hover ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.22);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  position: relative;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
  transform: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 22px rgba(201, 162, 39, 0.42);
}

.btn-gold,
.btn-blue,
.btn-outline,
.btn-outline-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn,
.cta-banner .btn {
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.cta-banner .btn {
  background: var(--navy-mid);
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.header-actions .btn-gold {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ——— Modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

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

body.modal-open {
  overflow: hidden;
}

/* ——— Visit consent (bottom sheet, once per user in this browser) ——— */
.visit-consent {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 1rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

html.visit-consent-pending .visit-consent {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

html.visit-consent-pending body {
  overflow: hidden;
}

.visit-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.5);
  backdrop-filter: blur(3px);
}

.visit-consent__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -12px 48px rgba(12, 35, 64, 0.18);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}

html.visit-consent-pending .visit-consent__panel {
  transform: translateY(0);
}

.visit-consent__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.visit-consent__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.visit-consent__text a {
  color: var(--navy-mid);
  font-weight: 500;
}

.visit-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.visit-consent__actions .btn {
  flex: 1 1 140px;
  text-align: center;
  justify-content: center;
}

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

  .visit-consent__actions .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--beige);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
}

.modal__close:hover {
  background: var(--beige-dark);
}

.modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  color: var(--navy);
}

.modal__sub {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal__success p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold-dark);
}

.form-check a {
  color: var(--navy);
  text-decoration: underline;
}

.form-check a:hover {
  color: var(--gold-dark);
}

.callback-form {
  margin: 0;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

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

.hero-bg--slider .hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease);
}

.hero-bg--slider .hero-bg-slide.is-active {
  opacity: 1;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1) translate(-0.5%, -0.5%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 20, 38, 0.94) 0%, rgba(12, 35, 64, 0.82) 42%, rgba(12, 35, 64, 0.55) 100%),
    linear-gradient(to top, rgba(8, 20, 38, 0.7) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(201, 162, 39, 0.18) 0%, transparent 45%);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 4rem 0 5rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  max-width: 16ch;
  line-height: 1.08;
}

.hero-title-line {
  display: block;
  color: var(--white);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.15em;
}

.hero-actions .btn {
  min-width: 12rem;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-orb--1 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  top: 10%;
  right: 5%;
}

.hero-orb--2 {
  width: 300px;
  height: 300px;
  background: var(--navy-soft);
  bottom: 10%;
  left: -5%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 520px;
  opacity: 0.9;
  margin: 0 0 2.25rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  color: var(--white);
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ——— Stats ——— */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2.75rem, 6vw, 3.75rem) 0;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item span {
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.35;
}

.stat-item--wide strong {
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  white-space: normal;
}

/* Audience tags */
.audience-section {
  border-bottom: 1px solid rgba(12, 35, 64, 0.06);
}

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
}

.audience-tag {
  display: inline-flex;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--beige);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.3s var(--ease), border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.audience-tag:hover {
  text-decoration: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.08);
  color: var(--navy);
}

.audience-tag.is-active {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}

/* ——— Sections ——— */
.section {
  padding: var(--section-y) 0;
}

.section--beige { background: var(--beige); }
.section--white { background: var(--white); }

body[data-page]:not([data-page="home"]) main {
  background: var(--beige);
}

.catalog-more {
  text-align: center;
  margin: 2.5rem 0 0;
}

.catalog-more .btn {
  min-width: min(100%, 320px);
}

.hub-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hub-point {
  background: var(--white);
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 35, 64, 0.05);
}

.hub-point h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 700;
}

.hub-point p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.audience-tags--static {
  justify-content: center;
}

.audience-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.audience-pick {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 35, 64, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-pick:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.audience-pick-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--beige);
}

.audience-pick-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-pick:hover .audience-pick-media img {
  transform: scale3d(1.03, 1.03, 1);
}

.audience-pick-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
}

.audience-pick-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.audience-pick-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy);
  font-family: var(--font-serif);
}

.audience-pick-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.catalog-chip {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--beige);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid rgba(12, 35, 64, 0.08);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.catalog-chip:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-color: var(--navy);
}

.catalog-chip--all {
  background: var(--gold);
  border-color: transparent;
  color: var(--navy);
  font-weight: 600;
}

.catalog-chip--all:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
}

.content-meta {
  padding: 0.75rem 1rem;
  background: var(--beige);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.stats-grid--page {
  margin: 0;
}

.stats-grid--page .stat-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1rem;
}

.stats-grid--page .stat-item strong {
  color: var(--navy);
}

.stats-grid--page .stat-item span {
  color: var(--text-muted);
  opacity: 1;
}

.features-grid--compact .feature-card {
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .hub-points {
    grid-template-columns: 1fr;
  }
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--section-head-gap);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ——— Reveal animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ——— Category cards ——— */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.cat-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 35, 64, 0.96) 0%,
    rgba(12, 35, 64, 0.88) 28%,
    rgba(12, 35, 64, 0.45) 52%,
    rgba(12, 35, 64, 0.08) 72%,
    transparent 100%
  );
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.cat-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(12, 35, 64, 0.98) 0%,
    rgba(12, 35, 64, 0.92) 32%,
    rgba(12, 35, 64, 0.5) 55%,
    transparent 100%
  );
}

.cat-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-card:hover .cat-card-media img {
  transform: scale3d(1.04, 1.04, 1);
}

.cat-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--beige-dark), var(--beige));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  line-height: 1;
}

.cat-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.35rem 1.5rem 1.5rem;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.cat-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--white);
}

.cat-card p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.cat-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .cat-card:hover {
    transform: none;
  }

  .cat-card:hover .cat-card-media img {
    transform: none;
  }
}

/* ——— Features ——— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 35, 64, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.feature-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ——— Testimonials ——— */
.testimonials-slider {
  width: 100%;
}

.testimonials-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.testimonials-viewport {
  flex: 1;
  min-width: 0;
  height: var(--testimonial-h, 228px);
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
}

.testimonials-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s var(--ease);
}

.stars,
.testimonial-stars .stars {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
}

.testimonial-stars {
  flex-shrink: 0;
  padding-bottom: 0.5rem;
}

.star {
  font-size: 0.95rem;
  color: var(--beige-dark);
}

.star.is-filled {
  color: var(--gold);
}

.testimonial-slide {
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
}

.testimonial-card {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-radius: var(--radius);
  padding: 1rem 1.5rem 0.85rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.15);
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.testimonial-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-style: italic;
  color: var(--navy);
  margin: 0;
  line-height: 1.45;
  text-align: center;
  max-width: 52em;
}

.testimonial-quote-text {
  display: inline;
}

.testimonial-quote::before,
.testimonial-quote::after {
  color: var(--gold);
  font-style: normal;
  font-size: 1.35em;
  line-height: 0;
  vertical-align: -0.12em;
}

.testimonial-quote::before {
  content: "«";
  margin-right: 0.12em;
}

.testimonial-quote::after {
  content: "»";
  margin-left: 0.08em;
}

.testimonial-author {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 0.65rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-meta strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.testimonial-meta span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.testimonials-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--beige-dark);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.testimonials-dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}

.test-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(12, 35, 64, 0.08);
  background: var(--white);
  cursor: pointer;
  color: var(--navy);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.test-arrow:hover {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
  transform: scale(1.06);
}

/* ——— CTA banner ——— */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
}

.cta-banner h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--white);
  position: relative;
}

.cta-banner p {
  margin: 0 0 1.75rem;
  opacity: 0.9;
  position: relative;
}

.cta-banner .btn { position: relative; margin: 0.25rem; }

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.seo-content {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.seo-content h2,
.seo-content h3 {
  color: var(--navy);
  font-family: var(--font-serif);
}

.seo-content h2 { font-size: 1.65rem; margin-top: 0; }
.seo-content h3 { font-size: 1.2rem; margin-top: 2rem; }
.seo-content p { margin: 0 0 1rem; }
.seo-content ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }

.section-title--left,
.section-sub--left { text-align: left; margin-left: 0; margin-right: 0; }

.contact-phones a:first-child { font-size: 1.25rem; font-weight: 600; }
.phone-lg { font-size: 1.2rem; }
.map-link { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.content-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ——— Contact form ——— */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 35, 64, 0.06);
}

.form-field {
  position: relative;
  margin-bottom: 1.35rem;
}

.form-label-float {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: top 0.25s var(--ease), font-size 0.25s, color 0.25s, transform 0.25s;
  background: transparent;
  padding: 0 0.2rem;
}

.form-field:has(.form-textarea) .form-label-float {
  top: 1.1rem;
  transform: none;
}

.form-input {
  width: 100%;
  padding: 1.1rem 1rem 0.65rem;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input::placeholder { color: transparent; }

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
  background: var(--white);
}

.form-input:focus + .form-label-float,
.form-input:not(:placeholder-shown) + .form-label-float,
.form-input.has-value + .form-label-float,
.form-field.is-filled .form-label-float {
  top: 0.45rem;
  transform: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy-soft);
  letter-spacing: 0.03em;
}

.form-field:has(.form-textarea) .form-input:focus + .form-label-float,
.form-field:has(.form-textarea) .form-input:not(:placeholder-shown) + .form-label-float {
  top: 0.5rem;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1.35rem;
}

.btn-submit span { position: relative; z-index: 1; }

.form-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.form-alert--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-alert--error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* ——— Inner pages ——— */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 70%);
  color: var(--white);
  padding: clamp(3rem, 8vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
}

.page-hero p { margin: 0; opacity: 0.9; max-width: 600px; }

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.breadcrumb a { color: var(--gold-light); }

.content-block {
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(12, 35, 64, 0.05);
}

.content-block h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--navy);
}

.content-block ul { padding-left: 1.25rem; }
.content-block li { margin-bottom: 0.4rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.06); }

.category-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
}

.placeholder-hero {
  min-height: 280px;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  color: var(--navy-soft);
}

.placeholder-hero .placeholder-emoji {
  font-size: 5rem;
  line-height: 1;
  opacity: 0.85;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(12, 35, 64, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 230px;
}

.contact-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--navy);
}

.map-wrap {
  overflow: hidden;
}

.contact-card--map iframe {
  width: 100%;
  height: 205px;
  border: 0;
  border-radius: var(--radius-sm);
  margin-top: auto;
}

.cta-strip {
  background: var(--beige);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}

.cta-strip h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.5rem; }
.cta-strip p { margin: 0 0 1.25rem; color: var(--text-muted); }

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 5px;
  margin-bottom: 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  line-height: 0;
}

.footer-brand .footer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--white); }

.footer-address { font-size: 0.92rem; line-height: 1.6; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.footer-credit a {
  color: #f0d583;
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(232, 201, 106, 0.3);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.footer-credit a:hover {
  color: var(--white);
  background: rgba(201, 162, 39, 0.28);
  border-color: rgba(232, 201, 106, 0.5);
}

.back-to-top {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s, opacity 0.25s;
}

.back-to-top:hover {
  color: var(--gold-light);
  opacity: 1;
  text-decoration: none;
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .header-inner {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .logo-link {
    min-width: 0;
    flex: 1 1 auto;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex: none;
    display: block;
    justify-content: flex-start;
    background: var(--white);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
    z-index: 190;
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(12, 35, 64, 0.08);
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0;
  }

  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  .header-actions .btn-gold { display: none; }

  .testimonials-row { gap: 0; }

  .test-arrow { display: none; }

  .testimonials-viewport {
    --testimonial-h: 240px;
  }

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

  .contact-card--map iframe {
    height: 240px;
  }

  .hero-scroll { display: none; }
}

@media (max-width: 600px) {
  .categories-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
