:root {
  --bg-main: #000000;
  --bg-elev: #0a0a0a;
  --bg-soft: #0a0a0a;
  --bg-dark: #000000;
  --accent: #ffffff;
  --accent-warm: #a0a0a5;
  --text-heading: #ffffff;
  --text-main: #a0a0a5;
  --text-muted: #636366;
  --line: #222222;
  --line-subtle: #1a1a1a;
  --cream: #ffffff;
  --shadow: none;
  --gloss: none;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 72px;
  --container: 1160px;
  --pattern-image: url("https://ca-va.promo/site-assets/assets/header-pattern.png");
  --pattern-size: 700px;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--calligraphy-pattern, url("https://ca-va.promo/site-assets/assets/pattern-calligraphy.png"));
  background-repeat: repeat;
  background-size: 560px auto;
  opacity: 0.05;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-lead {
  margin: -0.4rem 0 1.5rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.section-lead + .gallery-grid,
.section-lead + .placeholder-block {
  margin-top: 0;
}

.section h2 {
  position: relative;
  padding-bottom: 0.6rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 1px;
  background: var(--line);
  border-radius: 0;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: var(--font-playfair), "Playfair Display", serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text-heading);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.45rem, 4vw, 2rem);
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 64ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--bg-elev);
  color: var(--text-heading);
  border: 1px solid var(--line);
  background-image: var(--gloss);
  box-shadow: none;
}

.btn-accent:hover {
  border-color: #333333;
  color: var(--text-heading);
  background-color: #111111;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  background: #000000;
  overflow: hidden;
  isolation: isolate;
}

.site-header > :not(.header-bg) {
  position: relative;
  z-index: 2;
}

.header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.header-bg-pattern {
  position: absolute;
  inset: 0;
  background-color: #000000;
  background-image: var(--pattern-image);
  background-repeat: repeat;
  background-size: var(--pattern-size) auto;
  background-position: center center;
  opacity: 1;
}

.content-panel {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
}

.hero-content.content-panel {
  background: rgba(0, 0, 0, 0.72);
}

.content-panel--wide {
  padding: 1.75rem 1.35rem 2rem;
}

.content-panel h2::after {
  background: var(--line);
}

.header-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.58) 42%,
    rgba(0, 0, 0, 0.58) 58%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 0;
}

.mobile-menu-top .logo-wrap {
  max-width: calc(100% - 3rem);
}

.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-header .logo-img {
  height: 56px;
}

.mobile-menu-top .logo-img {
  height: 68px;
}

.site-footer .logo-img {
  height: 64px;
}

.site-nav {
  display: none;
  gap: 1.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(34, 34, 34, 0.75);
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.site-nav a:hover {
  color: var(--text-heading);
}

.header-cta {
  min-height: 2.45rem;
  padding-inline: 1.1rem;
  background-color: rgba(10, 10, 10, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.mobile-menu-toggle,
.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.96);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.mobile-menu-toggle:hover,
.mobile-menu-close:hover {
  border-color: #333333;
  background: #111111;
}

.mobile-menu-close {
  border-radius: 50%;
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}

.menu-icon span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-heading);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.close-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--text-heading);
  border-radius: 1px;
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background:
    radial-gradient(135% 90% at 50% -15%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 55%),
    #000000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--calligraphy-pattern, url("https://ca-va.promo/site-assets/assets/pattern-calligraphy.png"));
  background-repeat: repeat;
  background-size: 460px auto;
  opacity: 0.05;
}

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

.mobile-menu-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding: 1.15rem 1.3rem calc(1.6rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.mobile-menu.is-open .mobile-menu-inner {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line-subtle);
}

.mobile-menu-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.mobile-menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.95rem 0.55rem;
  border-bottom: 1px solid var(--line-subtle);
  font-family: var(--font-playfair), "Playfair Display", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-heading);
  transition: color 0.32s ease, background-color 0.32s ease;
}

.mobile-menu-nav a:nth-child(odd) {
  border-right: 1px solid var(--line-subtle);
  padding-left: 0.15rem;
}

.mobile-menu-nav a:nth-child(even) {
  padding-right: 0.15rem;
}

.mobile-menu-nav a:last-child {
  grid-column: 1 / -1;
  justify-content: center;
  border-right: none;
  border-bottom: none;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.mobile-menu-nav .mm-num {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  min-width: 1.35rem;
  transition: color 0.32s ease;
}

.mobile-menu-nav .mm-label {
  line-height: 1.1;
}

.mobile-menu-nav .mm-arrow {
  display: none;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-menu-nav a:hover .mm-num,
.mobile-menu-nav a:active .mm-num {
  color: var(--text-main);
}

.mobile-menu.is-open .mobile-menu-nav a {
  animation: mm-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(2) { animation-delay: 0.16s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(3) { animation-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(4) { animation-delay: 0.28s; }
.mobile-menu.is-open .mobile-menu-nav a:nth-child(5) { animation-delay: 0.34s; }

@keyframes mm-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-footer {
  margin-top: 1.5rem;
}

.mobile-menu-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.mobile-menu-info p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.05rem;
}

.mobile-menu-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.35rem;
  padding-bottom: 0;
}

.mobile-menu-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.mobile-menu-socials a:hover {
  border-color: #444444;
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.mobile-menu-bottom {
  margin-top: auto;
  padding-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.mobile-menu-bottom::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 0.5rem;
  background: var(--line-subtle);
}

.mobile-menu-phone {
  color: var(--text-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

.mobile-menu-bottom .btn {
  min-height: 3.3rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* Белая кнопка «Написать в чат» в мобильном меню */
.btn-light {
  background: #fff !important;
  border: 1px solid #fff !important;
  color: #111 !important;
  text-shadow: none !important;
}
.btn-light:hover {
  background: #f2f2f2 !important;
  border-color: #f2f2f2 !important;
  color: #111 !important;
}

.header-phone {
  display: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
}

.header-phone:hover {
  color: var(--text-heading);
  border-color: var(--line);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--bg-main);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  pointer-events: none;
  z-index: 0;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(92vw, 820px);
  animation: fade-in 1s ease both;
  padding: 1.6rem 1.35rem;
}

.hero-content h1,
.hero-content p,
.hero-content .btn {
  animation: rise-in 0.85s ease both;
}

.hero-content h1 {
  animation-delay: 0.06s;
}

.hero-content p {
  animation-delay: 0.18s;
}

.hero-content .btn {
  animation-delay: 0.3s;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
}

.hero h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(2.8rem, 12vw, 5.5rem);
  color: var(--text-heading);
}

.hero-meta {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
}

.contacts {
  background: transparent;
  border-top: 1px solid var(--line);
}

.hero .btn {
  min-height: 3rem;
  padding-inline: 1.5rem;
  font-size: 0.98rem;
}

.intro {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--line);
}

.intro-text.content-panel {
  padding: 1.5rem 1.35rem;
}

.intro-lead {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-heading);
}

.intro-text p:not(.intro-lead) {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.intro-photo-frame {
  padding: 0.65rem;
  overflow: hidden;
}

.intro-photo-frame .intro-photo {
  border: none;
  box-shadow: none;
}

.intro-grid {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}

.intro-placeholder {
  padding: 1.1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  background-image: var(--gloss);
}

.intro-placeholder p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.02rem;
  line-height: 1.7;
}

.intro-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.intro-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 240px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.placeholder-block {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  background-image: var(--gloss);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.team,
.gallery,
.reviews {
  background: transparent;
  border-top: 1px solid var(--line);
}

.team-grid {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  padding: 4px 0 0.95rem;
  margin-top: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: #333333 transparent;
}

.team-grid::-webkit-scrollbar {
  height: 6px;
}

.team-grid::-webkit-scrollbar-track {
  background: transparent;
}

.team-grid::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 999px;
}

.team-card {
  flex: 0 0 auto;
  width: clamp(200px, 70vw, 262px);
  scroll-snap-align: start;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
}

.team-card:focus-visible .team-card-inner {
  outline: 2px solid var(--text-heading);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.team-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(0deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.team-card.is-flipped .team-card-inner {
  transform: perspective(1200px) rotateY(180deg);
}

.team-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.team-card-front {
  transform: rotateY(0deg) translateZ(1px);
}

.team-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-front-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1rem 0.85rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.team-card-front-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.team-card-front-info p {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-main);
}

.team-card-back {
  transform: rotateY(180deg) translateZ(1px);
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.15rem;
  background-image: var(--gloss);
  overflow-y: auto;
}

.team-card.is-flipped .team-card-front .team-card-flip-hint {
  opacity: 0;
  visibility: hidden;
}

.team-card-back h3 {
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
}

.team-card-role {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.team-card-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.team-card-flip-hint {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.team-card-back .team-card-flip-hint {
  position: static;
  align-self: flex-start;
  margin-top: auto;
  background: var(--bg-soft);
}

.reviews-updated {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  background-image: var(--gloss);
}

.reviews-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
}

.reviews-rating-value {
  font-family: var(--font-playfair), "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1;
}

.reviews-stars {
  color: #ffffff;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
}

.reviews-rating-label {
  width: 100%;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reviews-sources {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.reviews-source {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.reviews-source:hover {
  border-color: #333333;
  transform: translateY(-2px);
}

.reviews-source-name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.reviews-source-score {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
}

.reviews-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.review-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.review-card:hover {
  border-color: #333333;
  transform: translateY(-3px);
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.review-author {
  font-weight: 600;
  color: var(--text-heading);
}

.review-source-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.review-stars {
  color: #ffffff;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.review-card blockquote {
  margin: 0;
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.6;
}

.reviews-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.quick-facts {
  padding-block: 1.2rem 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.quick-facts-grid {
  display: grid;
  gap: 0.65rem;
}

.quick-facts-grid p {
  margin: 0;
  text-align: center;
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  background: var(--bg-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 500;
}

.about-grid {
  display: grid;
  gap: 1.6rem;
}

.about-grid img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 280px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.why-us {
  background: var(--bg-soft);
}

.why-grid {
  display: grid;
  gap: 0.85rem;
}

.why-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  border-color: #333333;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why-card h3 {
  font-size: clamp(1.3rem, 3.2vw, 1.55rem);
  margin-bottom: 0.45rem;
}

.why-card p {
  margin: 0;
}

.top-services-grid {
  display: grid;
  gap: 0.95rem;
}

.top-service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.top-service-card:hover {
  border-color: #333333;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.top-service-card::after {
  display: none;
}

.top-service-card h3 {
  margin-bottom: 0.4rem;
  min-height: 2.7em;
}

.top-service-meta {
  margin-bottom: 0.15rem;
  color: var(--text-muted);
}

.top-service-price {
  margin: 0 0 0.95rem;
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 600;
}

.top-service-card .btn {
  margin-top: auto;
  width: 100%;
}

.services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services .content-panel .section-lead {
  margin-top: -0.2rem;
}

.services .service-group h3 {
  margin-top: 0.25rem;
}

.services-tabs {
  display: flex;
  gap: 0.55rem;
  margin: 1rem 0 1.45rem;
  padding-bottom: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #333333 #000000;
}

.services-tab {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.52rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.services-tab:hover {
  border-color: #333333;
  color: var(--text-heading);
  transform: translateY(-1px);
}

.services-tab.is-active {
  color: var(--text-heading);
  background: #111111;
  border-color: #333333;
  box-shadow: none;
}

.service-group {
  animation: fade-in 0.45s ease;
}

.service-group[hidden] {
  display: none;
}

.service-group + .service-group {
  margin-top: 2rem;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--bg-elev);
  padding-right: 0.35rem;
  box-sizing: border-box;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

tbody tr:hover {
  background: #111111;
}

tbody td:last-child {
  color: var(--text-heading);
  font-weight: 600;
}

th:last-child,
td:last-child {
  padding-right: 1.15rem;
}

.services-cta-wrap {
  margin-top: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.gallery-item {
  cursor: zoom-in;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  border-color: #333333;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.88);
  backdrop-filter: blur(3px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(92vw, 980px);
}

.lightbox-image {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin-top: 0.65rem;
  text-align: center;
  color: #ffffff;
}

.lightbox-hint {
  position: absolute;
  right: 0.6rem;
  bottom: 3.2rem;
  margin: 0;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.visit-flow {
  background: var(--bg-soft);
}

.visit-flow-grid {
  display: grid;
  gap: 0.9rem;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}

.flow-step:hover {
  border-color: #333333;
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.flow-step h3 {
  margin-bottom: 0.45rem;
}

.flow-step p {
  margin: 0;
}

.cta-band {
  padding: 2.2rem 0 2.4rem;
}

.cta-band-inner {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  background-image: var(--gloss);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem;
  display: grid;
  gap: 0.9rem;
  align-items: center;
}

.cta-band-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
}

.cta-band-inner .btn-accent {
  background: var(--bg-main);
  color: var(--text-heading);
  box-shadow: none;
}

.cta-band-inner .btn-accent:hover {
  background: #111111;
  box-shadow: none;
}

.manifest {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.manifest p {
  font-size: 1.04rem;
  color: var(--text-muted);
}

.contacts-grid {
  display: grid;
  gap: 1.4rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0 1.3rem;
}

.socials a {
  color: var(--text-main);
  border-bottom: 1px solid transparent;
}

.socials a:hover {
  color: var(--text-heading);
  border-bottom-color: var(--line);
}

.map-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.contacts-route {
  width: 100%;
  min-height: 3.1rem;
  justify-content: center;
  text-align: center;
  background: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  text-shadow: none !important;
}

.contacts-route:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #fff !important;
  color: #fff !important;
}

.contacts-info strong {
  color: var(--text-heading);
}

.contacts-info a {
  color: var(--text-main);
  border-bottom: 1px solid var(--line);
}

.contacts-info a:hover {
  color: var(--text-heading);
  border-bottom-color: var(--text-heading);
}

.map-wrap iframe,
.map-wrap .cava-map {
  display: block;
  width: 100%;
  height: 360px;
  min-height: 360px;
  border: 0;
  background: #111;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 5.4rem;
  background: transparent;
}

.mobile-sticky-cta {
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-sticky-cta .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  min-height: 3.45rem;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-cta .btn.has-video-bg {
  background: #0a0a0a !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.mobile-sticky-cta .btn.has-video-bg:hover {
  background-color: #0a0a0a !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.mobile-sticky-cta__video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.mobile-sticky-cta__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.52);
  border-radius: inherit;
}

.mobile-sticky-cta__label {
  position: relative;
  z-index: 2;
}

/* sticky-видео не скрываем при prefers-reduced-motion — иначе на Android с «Убрать анимации» кнопка без фона */

body.mobile-menu-open .mobile-sticky-cta {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  gap: 0.7rem;
}

.footer-inner p {
  margin: 0;
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 29;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

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

.reveal.is-visible h2 {
  animation: title-in 0.65s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(8px);
    letter-spacing: 0.05em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.02em;
  }
}

@media (min-width: 768px) {
  .site-header {
    padding-inline: 1.6rem;
  }

  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-card {
    width: 250px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .hero-content {
    width: min(76vw, 860px);
    padding: 1.6rem 2rem;
  }

  .hero-kicker,
  .hero h1,
  .hero-meta {
    text-align: left;
  }

  .hero .btn {
    margin-left: 0;
  }

  .section {
    padding: 4.5rem 0;
  }

  .services-tabs {
    gap: 0.75rem;
    margin-bottom: 1.65rem;
  }

  .services-tab {
    font-size: 1rem;
    padding: 0.58rem 1.15rem;
  }

  .lightbox-hint {
    display: none;
  }
}

@media (max-width: 767px) {
  .lightbox-nav {
    display: none;
  }

  .team-card-inner {
    aspect-ratio: 3 / 4.4;
  }

  .team-card-back {
    padding: 1rem 0.85rem;
    justify-content: center;
  }

  .team-card-back h3 {
    font-size: 1.15rem;
  }

  .team-card-role {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
  }

  .team-card-bio {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .team-card-back .team-card-flip-hint {
    margin-top: 0.7rem;
  }

  .team-card-front-info {
    padding: 1.2rem 0.85rem 0.75rem;
  }

  .team-card-front-info h3 {
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .site-nav {
    display: flex;
    gap: 0.85rem;
  }

  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  .header-phone {
    display: inline-flex;
  }

  .floating-cta {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mobile-sticky-cta {
    display: none;
  }
}

@media (max-width: 991px) {
  .header-cta {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .site-footer {
    padding-bottom: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* === Tilda adaptations === */
.cava-site {
  --pattern-image: url("https://ca-va.promo/site-assets/assets/header-pattern.png");
  --calligraphy-pattern: url("https://ca-va.promo/site-assets/assets/pattern-calligraphy.png");
  --font-playfair: "Playfair Display", Georgia, serif;
  font-family: Inter, system-ui, sans-serif;
  color: #a0a0a5;
  background: transparent;
  position: relative;
  isolation: isolate;
}
.cava-site *,
.cava-site *::before,
.cava-site *::after { box-sizing: border-box; }
html body {
  background-color: #000 !important;
}
.cava-site .site-header {
  position: sticky;
  top: 0;
  z-index: 10050;
}
.cava-site .mobile-sticky-cta {
  z-index: 10040;
}
.cava-site .lightbox,
.cava-site .mobile-menu {
  z-index: 10060;
}
/* Hide default Tilda page paddings when possible */
.t-rec { background-color: #000 !important; }
.t-rec .t-container_100,
.t-rec .t-width_100 { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.t123 { overflow: visible !important; }
#allrecords { background: #000 !important; }
