:root {
  --bg: #f3eee6;
  --bg-alt: #e8e0d4;
  --ink: #2a241c;
  --muted: #6d6358;
  --accent: #2f5d50;
  --accent-soft: #d9e5df;
  --line: rgba(42, 36, 28, 0.12);
  --white: #fffaf4;
  --shadow: 0 18px 50px rgba(42, 36, 28, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  background: #f7f2ea;
}

html.is-modal-open,
html.is-nav-open {
  overflow: hidden;
  scrollbar-gutter: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 93, 80, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 40%, #efe7db 100%);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 234, 0.9);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(47, 93, 80, 0.45);
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

/* Plain text links in content that were styled as non-links */
.text-link,
.reviews-pro-link,
.contacts-channel-value,
.footer-links a,
.footer-legal a,
.edu-list-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(47, 93, 80, 0.4);
  background-image: none;
  background-size: auto;
}

.text-link:hover,
.text-link:focus-visible,
.reviews-pro-link:hover,
.reviews-pro-link:focus-visible,
.contacts-channel-value:hover,
.contacts-channel-value:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-legal a:hover,
.footer-legal a:focus-visible,
.edu-list-link:hover,
.edu-list-link:focus-visible {
  color: #244a40;
  text-decoration-color: currentColor;
}

.reviews-pro-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.reviews-pro-link::after {
  content: "↗";
  font-family: var(--font-body);
  font-size: 0.72em;
  opacity: 0.75;
}

.contacts-channel-value {
  display: inline;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
img { max-width: 100%; display: block; }

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-tabs {
  display: flex;
  gap: 0.85rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-drawer-label,
.nav-drawer-cta {
  display: none;
}

.nav-tabs a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.nav-tabs a:hover { color: var(--ink); }

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.7);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

html.is-nav-open .nav-toggle-bars {
  background: transparent;
}

html.is-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

html.is-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    letter-spacing 0.45s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 250, 244, 0.38),
    transparent 52%
  );
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.4s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(255, 250, 244, 0.28) 48%,
    transparent 68%
  );
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  letter-spacing: 0.03em;
  transform: translate3d(0, -2px, 0);
}

.btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.btn:hover::after {
  transform: translateX(130%) skewX(-12deg);
}

.btn:active {
  transform: translate3d(0, 0, 0) scale(0.985);
  transition-duration: 0.12s;
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(247, 242, 234, 0.95),
    0 0 0 5px rgba(47, 93, 80, 0.45);
}

.btn-primary {
  background: linear-gradient(165deg, #3a6f60 0%, var(--accent) 48%, #27493f 100%);
  color: #fffaf4;
  box-shadow:
    0 10px 24px rgba(47, 93, 80, 0.18),
    inset 0 1px 0 rgba(255, 250, 244, 0.18);
}

.btn-primary:hover {
  box-shadow:
    0 16px 34px rgba(47, 93, 80, 0.26),
    0 0 0 4px rgba(47, 93, 80, 0.1),
    inset 0 1px 0 rgba(255, 250, 244, 0.22);
}

.btn-primary:active {
  box-shadow:
    0 6px 16px rgba(47, 93, 80, 0.18),
    inset 0 1px 0 rgba(255, 250, 244, 0.12);
}

.btn-ghost {
  background: rgba(255, 250, 244, 0.45);
  color: var(--ink);
  border: 1px solid rgba(42, 36, 28, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 250, 244, 0.7);
}

.btn-ghost::before {
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(47, 93, 80, 0.16),
    transparent 55%
  );
  mix-blend-mode: multiply;
}

.btn-ghost::after {
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(47, 93, 80, 0.12) 48%,
    transparent 68%
  );
  mix-blend-mode: multiply;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(47, 93, 80, 0.35);
  background: rgba(255, 250, 244, 0.8);
  box-shadow:
    0 12px 28px rgba(42, 36, 28, 0.08),
    0 0 0 4px rgba(47, 93, 80, 0.06);
}

.btn-ghost:focus-visible {
  box-shadow:
    0 0 0 3px rgba(247, 242, 234, 0.95),
    0 0 0 5px rgba(47, 93, 80, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::before,
  .btn::after,
  .blog-btn,
  .blog-btn::before,
  .blog-btn > *,
  .reviews-nav-btn,
  .edu-thumb,
  .edu-thumb::after,
  .review-toggle,
  .review-toggle::after,
  .modal-close,
  .lightbox-close,
  .service-tab,
  .service-tab::before {
    transition: none !important;
  }

  .btn:hover,
  .btn:active,
  .blog-btn:hover,
  .blog-btn:active,
  .reviews-nav-btn:hover,
  .reviews-nav-btn:active,
  .edu-thumb:hover,
  .modal-close:hover,
  .lightbox-close:hover {
    transform: none;
    letter-spacing: inherit;
  }

  .btn:hover::before,
  .btn:hover::after,
  .blog-btn:hover::before {
    opacity: 0;
    transform: none;
  }
}

.hero {
  padding: 3.5rem 0 4rem;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  gap: 0.85rem 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 36rem);
  grid-template-areas:
    "eyebrow"
    "titles"
    "lead"
    "actions";
}

.hero-with-photo .hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 420px);
  grid-template-areas:
    "eyebrow portrait"
    "titles portrait"
    "lead portrait"
    "actions portrait";
}

.hero-inner > .eyebrow {
  grid-area: eyebrow;
  margin: 0;
  max-width: 36rem;
}

.hero-titles {
  grid-area: titles;
  max-width: 36rem;
}

.hero-titles h1 {
  margin: 0;
}

.hero-inner > .lead {
  grid-area: lead;
  max-width: 36rem;
  margin: 0;
}

.hero-actions {
  grid-area: actions;
}

.hero-portrait {
  grid-area: portrait;
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
  aspect-ratio: 4 / 5;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center 20%);
  display: block;
}

.hero-with-photo {
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 93, 80, 0.07), transparent 42%),
    linear-gradient(180deg, #f7f2ea 0%, var(--bg) 100%);
}

.about-layout {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-layout.has-photo {
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: start;
}

.about-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center 20%);
  aspect-ratio: 3 / 4;
}

.photo-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0.15rem 0;
  overflow: visible;
}

.gallery-slider {
  margin: 2rem 0;
}

.gallery-slider-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.gallery-slider.is-scrollable .gallery-slider-toolbar {
  display: flex;
}

.gallery-slider-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.gallery-slider-nav {
  display: flex;
  gap: 0.4rem;
}

.gallery-nav-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.8);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.gallery-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf4;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 93, 80, 0.18);
}

.gallery-nav-btn[data-gallery-prev]:hover {
  transform: translateY(-2px) rotate(-8deg);
}

.gallery-nav-btn[data-gallery-next]:hover {
  transform: translateY(-2px) rotate(8deg);
}

.gallery-nav-btn:active {
  transform: scale(0.96);
}

.gallery-slider.is-scrollable .photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 200px);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  margin: 0 -0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 93, 80, 0.35) transparent;
}

.photo-strip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.photo-strip-item,
.photo-strip a {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}

.gallery-slider.is-scrollable .photo-strip-item,
.gallery-slider.is-scrollable .photo-strip a {
  flex: none;
  width: auto;
  scroll-snap-align: start;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center center);
}

.edu-block {
  margin: 1.6rem 0 1.4rem;
}

.edu-block h3 {
  margin: 0 0 0.25rem;
}

.edu-hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.edu-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.28rem;
  font-size: 0.94rem;
  line-height: 1.35;
}

.edu-list li::marker {
  color: var(--accent);
  font-weight: 600;
}

.edu-list-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(47, 93, 80, 0.28);
  text-underline-offset: 2px;
}

.edu-list-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.edu-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.45rem;
}

.edu-thumb {
  appearance: none;
  position: relative;
  border: 1px solid var(--line);
  background: #efe7db;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.edu-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(47, 93, 80, 0.22));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.edu-thumb:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(47, 93, 80, 0.4);
  box-shadow: 0 12px 24px rgba(42, 36, 28, 0.14);
}

.edu-thumb:hover::after {
  opacity: 1;
}

.edu-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.edu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.edu-num {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.edu-badge {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.28rem;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.92);
  color: #fff;
}

.edu-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 16, 0.62);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100dvh - 2rem - var(--safe-top) - var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.lightbox.is-open .lightbox-stage {
  transform: none;
  opacity: 1;
}

.lightbox-title {
  margin: 0;
  color: #fffaf4;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.25;
  padding-right: 2.5rem;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 8rem - var(--safe-top) - var(--safe-bottom));
  margin: 0 auto;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-frame {
  width: 100%;
  height: min(78dvh, 820px);
  border: 0;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-download {
  align-self: flex-start;
  color: #fffaf4;
  font-size: 0.9rem;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s ease, opacity 0.25s ease;
  opacity: 0.85;
}

.lightbox-download:hover {
  background-size: 100% 1px;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    background 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-backdrop,
  .lightbox-stage {
    transition: none !important;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero h1, .section h2, .service-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 0.4rem 0 0.8rem;
  max-width: 12ch;
}

.lead, .section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-actions, .format-box {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.section { padding: 4.5rem 0; }
.section-alt { background: rgba(255, 250, 244, 0.55); }
.section h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 1.2rem; }
.section h3 { font-family: var(--font-display); font-size: 1.7rem; }
.note { background: var(--accent-soft); padding: 1rem 1.1rem; border-radius: 14px; }
.muted { color: var(--muted); }

.section-divider {
  display: block;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  width: min(1120px, calc(100% - 2rem));
  height: 0;
  background: none;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.4rem + var(--safe-bottom));
  z-index: 70;
  width: min(420px, calc(100% - 2rem));
  padding: 1.15rem 2.4rem 1.2rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf4 0%, #f4ebe0 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(42, 36, 28, 0.16);
  transform: translate(-50%, 18px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.site-toast.is-open {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.site-toast[data-tone="ok"] {
  box-shadow:
    0 18px 50px rgba(42, 36, 28, 0.14),
    0 0 0 1px rgba(47, 93, 80, 0.08);
}

.site-toast[data-tone="error"] {
  box-shadow:
    0 18px 50px rgba(42, 36, 28, 0.14),
    0 0 0 1px rgba(140, 70, 50, 0.1);
}

.site-toast-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--accent);
}

.site-toast[data-tone="error"] .site-toast-title {
  color: #8c4632;
}

.site-toast-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-toast-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.site-toast-close:hover,
.site-toast-close:focus-visible {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .site-toast {
    transition: none !important;
  }
}

.check-list, .two-col { padding-left: 1.1rem; }
.two-col { columns: 2; gap: 2rem; }
.blog-promo, .format-box, .post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.format-box {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  justify-content: space-between;
  font-weight: 600;
}

#blog.section {
  overflow: visible;
}

#blog > .container {
  overflow: visible;
}

.blog-promo {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.75fr);
  overflow: hidden;
  border-radius: 22px;
}

.blog-promo.has-photo {
  position: relative;
  grid-template-columns:
    minmax(180px, 0.72fr)
    minmax(0, 1.2fr)
    minmax(200px, 0.7fr);
  overflow: visible;
  container-type: inline-size;
  container-name: blog;
  align-items: stretch;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.blog-promo.has-photo .blog-promo-main,
.blog-promo.has-photo .blog-promo-aside {
  box-shadow: var(--shadow);
}

.blog-promo.has-photo .blog-promo-main {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  border-right: 0;
}

.blog-promo.has-photo .blog-promo-aside {
  border-radius: 0 22px 22px 0;
}

/* Photo starts in the left column and extends to the viewport's left edge */
.blog-promo-photo {
  margin: 0;
  position: relative;
  min-height: 100%;
  align-self: stretch;
  width: calc(100% + max(0px, (100vw - 100cqw) / 2));
  margin-left: calc(-1 * max(0px, (100vw - 100cqw) / 2));
  max-width: none;
  border-radius: 0;
  overflow: hidden;
  background: rgba(47, 93, 80, 0.08);
  box-shadow: var(--shadow);
  z-index: 1;
}

.blog-promo-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center 20%);
  min-height: 100%;
}

@media (max-width: 1100px) {
  .blog-promo.has-photo {
    grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.35fr);
  }

  .blog-promo.has-photo .blog-promo-aside {
    grid-column: 1 / -1;
    border-radius: 0 0 22px 22px;
  }

  .blog-promo.has-photo .blog-promo-main {
    border-radius: 0;
    border-right: 1px solid var(--line);
  }
}

.blog-section-head {
  margin-bottom: 1rem;
}

.blog-section-head h2 {
  margin: 0.25rem 0 0;
}

.blog-posts-block {
  margin-top: 2rem;
}

.blog-posts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.blog-posts-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.blog-posts-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-promo-main {
  padding: 1.6rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.blog-promo-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.blog-promo-main h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.15;
}

.blog-promo-lead,
.blog-promo-intro {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.blog-promo-intro {
  color: var(--muted);
}

.blog-topics {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.blog-topics li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.85rem;
  border-radius: 12px;
  background: rgba(47, 93, 80, 0.06);
  border: 1px solid rgba(47, 93, 80, 0.08);
  font-size: 0.92rem;
  line-height: 1.4;
}

.blog-topics li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.9rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.blog-promo-why {
  margin: 0.4rem 0 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(47, 93, 80, 0.08), transparent 80%);
  border-radius: 0 14px 14px 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.blog-promo-aside {
  padding: 1.6rem 1.3rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 250, 244, 0.14), transparent 50%),
    linear-gradient(165deg, #2f5d50 0%, #244a40 100%);
  color: #fffaf4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.blog-promo-aside-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
}

.blog-promo-aside-text {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
  line-height: 1.45;
}

.blog-promo-actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.blog-btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    letter-spacing 0.45s ease;
}

.blog-btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.35),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-btn > * {
  position: relative;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-btn:hover {
  transform: translate3d(0, -2px, 0);
  letter-spacing: 0.02em;
}

.blog-btn:hover::before {
  opacity: 1;
}

.blog-btn:hover > svg {
  transform: translateX(2px);
}

.blog-btn:active {
  transform: translate3d(0, 0, 0) scale(0.985);
}

.blog-btn-tg {
  background: #fffaf4;
  color: #229ED9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.blog-btn-tg:hover {
  background: #fff;
  box-shadow:
    0 16px 32px rgba(34, 158, 217, 0.18),
    0 0 0 4px rgba(34, 158, 217, 0.1);
}

.blog-btn-vk {
  background: rgba(255, 250, 244, 0.12);
  color: #fffaf4;
  border: 1px solid rgba(255, 250, 244, 0.35);
}

.blog-btn-vk:hover {
  background: rgba(255, 250, 244, 0.22);
  border-color: rgba(255, 250, 244, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 250, 244, 0.08);
}

.section-services {
  background: transparent;
  overflow: visible;
}

.section-services > .container {
  overflow: visible;
}

.services-head {
  margin-bottom: 1.2rem;
}

.services-head h2 {
  margin: 0;
}

.services-layout {
  display: grid;
  gap: 1.6rem;
}

.services-layout.has-photo {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: stretch;
  gap: 2rem 2.4rem;
  overflow: visible;
  container-type: inline-size;
  container-name: services;
}

.services-shell {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}

/* Starts in the right column, extends to the viewport's right edge */
.services-photos {
  display: none;
  position: relative;
  min-height: 100%;
  align-self: stretch;
  width: calc(100% + max(0px, (100vw - 100cqw) / 2));
  max-width: none;
  z-index: 2;
}

.services-layout.has-photo .services-photos {
  display: block;
}

.services-photo {
  margin: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px 0 0 22px;
  box-shadow: var(--shadow);
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s ease;
}

.services-photo.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.services-photo[hidden] {
  display: block;
}

.services-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--img-pos, center 20%);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.service-tabs-glider {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--accent) 82%, transparent);
  border-radius: 999px;
  pointer-events: none;
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
  opacity: 0;
}

.service-tabs-glider.is-ready {
  opacity: 1;
}

.service-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.1rem 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  color: var(--muted);
  position: relative;
  transition:
    color 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.4s ease;
}

.service-tab::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-tab:hover {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.service-tab:hover::before {
  opacity: 0.35;
  transform: translateX(-50%) scale(1);
}

.service-tab.is-active {
  color: var(--accent);
  font-weight: 600;
}

.service-tab.is-active::before {
  opacity: 0;
}

.service-tab.is-active::after {
  display: none;
}

.service-tab.is-pressed {
  transform: translateY(1px) scale(0.98);
}

.service-tab:focus-visible {
  outline: none;
  color: var(--accent);
}

.service-panels {
  min-width: 0;
  position: relative;
  overflow: visible;
  transition: none;
}

.service-panels.is-switching {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.service-panels::before {
  display: none;
}

.service-panel {
  display: none;
  will-change: opacity, transform, filter;
}

.service-panel.is-active {
  display: block;
}

.service-panel.is-leaving,
.service-panel.is-entering {
  display: block;
}

.service-panel.is-leaving {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.service-panel h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.2;
}

.service-panel.is-entering > * {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .service-tabs-glider,
  .service-tab {
    transition: none !important;
    animation: none !important;
  }
}

.service-quote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  color: var(--accent);
  font-weight: 500;
}

.service-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.service-intro {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
}

.service-block {
  margin: 0 0 1.25rem;
}

.service-block h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.service-block p {
  margin: 0;
  line-height: 1.65;
}

.service-list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.35rem;
  line-height: 1.5;
}

.service-list--methods li {
  margin-bottom: 0.15rem;
}

.service-list--methods strong {
  color: var(--accent);
  font-weight: 600;
}

.service-list--cols {
  columns: 2;
  column-gap: 2rem;
}

.service-note {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
}

.service-format {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: none;
}

.service-format-line {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 2.5rem;
}

.reviews-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.2) 0%, transparent 30%),
    radial-gradient(ellipse at 0% 20%, rgba(47, 93, 80, 0.05), transparent 42%);
}

.reviews-stage {
  position: relative;
}

.reviews-intro {
  margin-bottom: 1.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.reviews-intro-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

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

.reviews-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.05;
}

.reviews-disclaimer {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.reviews-highlight-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.reviews-highlight-line li {
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(47, 93, 80, 0.07);
}

.reviews-slider {
  margin: 0 0 1.8rem;
}

.reviews-slider-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.reviews-slider.is-scrollable .reviews-slider-toolbar {
  display: flex;
}

.reviews-slider-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.reviews-slider-nav {
  display: flex;
  gap: 0.4rem;
}

.reviews-nav-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.8);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.reviews-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf4;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 93, 80, 0.18);
}

.reviews-nav-btn[data-reviews-prev]:hover {
  transform: translateY(-2px) rotate(-8deg);
}

.reviews-nav-btn[data-reviews-next]:hover {
  transform: translateY(-2px) rotate(8deg);
}

.reviews-nav-btn:active {
  transform: scale(0.96);
}

.reviews-track {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.15rem 0;
  overflow: visible;
}

.reviews-slider.is-scrollable .reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 300px);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  margin: 0 -0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 93, 80, 0.35) transparent;
}

.reviews-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.review-entry {
  position: relative;
  flex: 1 1 280px;
  max-width: 340px;
  min-height: 0;
  padding: 1.15rem 1.15rem 1rem 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 250, 244, 0.95) 0%, rgba(247, 241, 232, 0.88) 100%);
  border: 0;
  border-radius: 4px 20px 20px 4px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.reviews-slider.is-scrollable .review-entry {
  flex: none;
  max-width: none;
  scroll-snap-align: start;
}

.review-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.55;
}

.review-entry--text {
  max-width: 340px;
}

.reviews-slider.is-scrollable .review-entry--text {
  max-width: none;
}

.review-index {
  position: absolute;
  top: 0.55rem;
  right: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  color: rgba(47, 93, 80, 0.18);
  user-select: none;
}

.review-text {
  margin: 0;
  padding: 0.15rem 0 0;
  border: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ink);
}

.review-text::before {
  content: "“";
  display: block;
  font-size: 2.4rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.45;
  margin-bottom: 0.35rem;
}

.review-text p {
  margin: 0;
}

.review-text-preview {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-toggle {
  position: relative;
  margin-top: 0.55rem;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s ease, letter-spacing 0.45s ease;
}

.review-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.55;
}

.review-toggle:hover {
  letter-spacing: 0.05em;
}

.review-toggle:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.review-toggle:active {
  letter-spacing: 0.02em;
}

.review-toggle:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.2);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(42, 36, 28, 0.1);
  margin-top: auto;
}

.review-author {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--accent);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.review-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.review-entry--image {
  padding: 0.75rem 0.75rem 0.85rem;
  border-radius: 18px;
}

.review-entry--image::before {
  display: none;
}

.review-shot {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ebe3d7;
  transform: none;
  box-shadow: none;
  transition: transform 0.25s ease;
}

.review-shot:hover {
  transform: translateY(-2px);
}

.review-shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 200px;
  object-fit: cover;
  object-position: top;
}

.reviews-empty {
  text-align: center;
  padding: 1.2rem 0;
}

.review-invite {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 1.8rem;
  align-items: start;
  margin-top: 1.4rem;
  padding: 1.45rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(47, 93, 80, 0.06), transparent 42%),
    var(--white);
  box-shadow: var(--shadow);
}

.review-invite-copy {
  padding: 0.15rem 0 0;
  background: none;
  color: var(--ink);
}

.review-invite-copy::after {
  display: none;
}

.review-invite-eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 1;
}

.review-invite-copy h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--ink);
  line-height: 1.15;
}

.review-invite-text {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  opacity: 1;
}

.review-form {
  margin: 0;
  padding: 1.15rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.9rem;
  background: rgba(243, 238, 230, 0.45);
  border: 1px solid rgba(42, 36, 28, 0.08);
  border-radius: 18px;
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.review-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.review-form label span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: rgba(255, 250, 244, 0.95);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.review-form input:hover,
.review-form textarea:hover {
  border-color: rgba(47, 93, 80, 0.28);
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: rgba(47, 93, 80, 0.55);
  background: #fffaf4;
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.12);
}

.review-form textarea {
  resize: vertical;
  min-height: 110px;
}

.review-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.review-form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-card { padding: 1.1rem; margin: 0; }
.post-card time { color: var(--muted); font-size: 0.9rem; }


.simple-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
}

.simple-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.simple-form input,
.simple-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

.site-footer {
  position: relative;
  margin-top: 1rem;
  padding: 4.5rem 0 2rem;
  border-top: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(47, 93, 80, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(239, 231, 219, 0.35) 0%, #e6ddd0 100%);
}

.footer-stage {
  position: relative;
}

.footer-ornament {
  position: absolute;
  left: -0.2rem;
  top: -1.6rem;
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 14vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(47, 93, 80, 0.07);
  pointer-events: none;
  user-select: none;
  text-transform: lowercase;
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand-name {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.footer-brand-role {
  margin: 0 0 0.85rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-brand-note {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
}

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

.footer-col-label {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s ease, color 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
}

.footer-legal-name {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
}

.footer-legal-inn {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-email {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s ease, color 0.25s ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--accent);
  background-size: 100% 1px;
}

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-admin {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  opacity: 0.72;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-admin:hover,
.footer-admin:focus-visible {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-ornament {
    top: -0.8rem;
    opacity: 0.9;
  }
}
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 16, 0.45);
}

.modal-dialog {
  position: relative;
  width: min(520px, calc(100% - 2rem));
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);
  background: rgba(42, 36, 28, 0.06);
  transform: rotate(90deg);
}

.soft-modal {
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

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

.soft-modal .modal-backdrop {
  background: rgba(36, 30, 24, 0.42);
}

.soft-modal .modal-dialog {
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.soft-modal.is-open .modal-dialog {
  transform: none;
  opacity: 1;
}

.appointment-modal-dialog,
.review-modal-dialog {
  width: min(560px, calc(100% - 2rem));
  padding: 2rem 1.6rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffaf4 0%, #f4ebe0 100%);
  box-shadow: 0 24px 60px rgba(42, 36, 28, 0.14);
}

.appointment-modal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.appointment-modal-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.appointment-modal-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 28rem;
}

.appointment-form {
  display: grid;
  gap: 0.9rem;
}

.appointment-form label {
  display: grid;
  gap: 0.35rem;
}

.appointment-form label span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.appointment-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 250, 244, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.appointment-form input:hover {
  border-color: rgba(47, 93, 80, 0.28);
}

.appointment-form input:focus {
  outline: none;
  border-color: rgba(47, 93, 80, 0.55);
  background: #fffaf4;
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.12);
}

.appointment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.appointment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.appointment-form-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}

.appointment-form-footer .btn {
  flex-shrink: 0;
}

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

  .appointment-form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .appointment-form-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

.contacts-section {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 8% 20%, rgba(47, 93, 80, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 80%, rgba(42, 36, 28, 0.05), transparent 50%),
    linear-gradient(180deg, rgba(232, 224, 212, 0.55) 0%, transparent 42%);
  overflow: hidden;
}

.contacts-stage {
  position: relative;
}

.contacts-ornament {
  position: absolute;
  right: -0.1rem;
  top: -1.4rem;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 16vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(47, 93, 80, 0.08);
  pointer-events: none;
  user-select: none;
  text-transform: lowercase;
}

.contacts-head {
  position: relative;
  max-width: 36rem;
  margin-bottom: 2.8rem;
}

.contacts-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.contacts-title-line {
  display: block;
}

.contacts-title-line--soft {
  font-style: italic;
  color: var(--accent);
}

.contacts-lead {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contacts-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contacts-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contacts-channel {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.9rem 1.1rem;
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--line);
}

.contacts-channel-index {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.55;
  padding-top: 0.15rem;
}

.contacts-channel-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts-channel-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.contacts-door {
  position: relative;
  padding: 1.7rem 0 0 1.5rem;
  border-left: 1px solid var(--line);
}

.contacts-door-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.contacts-door-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 500;
}

.contacts-door-text {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contacts-door-cta {
  width: 100%;
  justify-content: center;
}

.contacts-quiet {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.55rem;
}

.contacts-quiet li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.contacts-quiet li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

@media (max-width: 860px) {
  .contacts-body {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .contacts-door {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contacts-ornament {
    top: -0.6rem;
    right: -0.4rem;
    opacity: 0.85;
  }
}

.review-modal-dialog {
  padding: 2rem 1.6rem 1.4rem;
}

.review-modal-mark {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.4;
}

.review-modal-body {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  max-height: min(58vh, 420px);
  overflow: auto;
  padding-right: 0.2rem;
}

.review-modal-body p {
  margin: 0 0 0.7rem;
}

.review-modal-body p:last-child {
  margin-bottom: 0;
}

.review-modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.review-modal-author {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--accent);
}

.review-modal-date {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .soft-modal,
  .soft-modal .modal-backdrop,
  .soft-modal .modal-dialog {
    transition: none !important;
  }
}

/* ——— Tablet & phone: convenience over desktop parity ——— */
@media (max-width: 960px) {
  :root {
    --header-h: 60px;
  }

  .site-header {
    backdrop-filter: none;
    background: rgba(247, 242, 234, 0.98);
  }

  html.is-nav-open .site-header {
    z-index: 50;
  }

  .container {
    width: min(1120px, calc(100% - 1.35rem));
  }

  .header-inner {
    gap: 0.65rem;
    min-height: var(--header-h);
  }

  .logo {
    font-size: 1.15rem;
    flex: 1;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-cta {
    order: 2;
    padding: 0.65rem 1.05rem;
    font-size: 0.92rem;
  }

  .nav-tabs {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    width: min(22rem, 88vw);
    margin: 0;
    padding:
      calc(1.2rem + var(--safe-top))
      calc(1.15rem + var(--safe-right))
      calc(1.4rem + var(--safe-bottom))
      1.15rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.2rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #fffaf4 0%, #f4ebe0 100%);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 50px rgba(42, 36, 28, 0.16);
    transform: translateX(104%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-overflow-scrolling: touch;
  }

  html.is-nav-open .nav-tabs {
    transform: none;
  }

  .nav-drawer-label {
    display: block;
    margin: 0 0 0.7rem;
    padding: 0 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .nav-tabs a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 1.05rem;
    color: var(--ink);
    white-space: normal;
  }

  .nav-tabs a:active,
  .nav-tabs a:hover {
    background: rgba(47, 93, 80, 0.08);
    color: var(--accent);
  }

  /* Header already has Записаться — don't duplicate it inside the drawer */
  .nav-drawer-cta {
    display: none;
  }

  .section {
    scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 0.75rem);
  }

  .reviews-pro-link::after {
    content: none;
  }

  .reviews-intro-top {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
  }

  .reviews-intro-top > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .reviews-pro-link {
    flex: 0 0 auto;
    font-size: 1.05rem;
  }

  .hero {
    padding: 1.35rem 0 2rem;
  }

  .hero-with-photo .hero-inner {
    grid-template-columns: minmax(0, 1fr) 7.25rem;
    grid-template-areas:
      "eyebrow eyebrow"
      "titles portrait"
      "lead lead"
      "actions actions";
    gap: 0.7rem 1rem;
    align-items: start;
  }

  .hero-portrait {
    justify-self: end;
    align-self: start;
    width: 7.25rem;
    max-width: 7.25rem;
    order: 0;
    aspect-ratio: 3 / 4;
    max-height: none;
    border-radius: 1.15rem;
    border: 0;
    box-shadow:
      0 0 0 1px rgba(42, 36, 28, 0.06),
      0 14px 28px rgba(42, 36, 28, 0.12);
  }

  .hero-titles {
    align-self: center;
    padding-right: 0.15rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6.8vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
  }

  .hero-inner > .eyebrow {
    margin-bottom: 0.1rem;
  }

  .hero-inner > .lead {
    margin-top: 0.15rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero-actions {
    display: grid;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .about-layout.has-photo {
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 22px;
    overflow: hidden;
  }

  .about-layout.has-photo .about-photo {
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .about-layout.has-photo .about-photo img {
    aspect-ratio: 4 / 3;
    max-height: none;
    display: block;
  }

  .about-layout.has-photo .about-copy {
    padding: 1.15rem;
  }

  .service-tabs {
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0 0.95rem;
    margin: 0 -0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--line);
  }

  .service-tabs::-webkit-scrollbar { display: none; }

  .service-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.7);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    min-height: 2.6rem;
  }

  .service-tab.is-active {
    color: #fffaf4;
    background: linear-gradient(165deg, #3a6f60 0%, var(--accent) 55%, #27493f 100%);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(47, 93, 80, 0.18);
  }

  .service-tab::before {
    display: none;
  }

  .service-tabs-glider {
    display: none;
  }

  .service-list--cols {
    columns: 1;
  }

  .service-format {
    align-items: stretch;
  }

  .service-format .btn {
    width: 100%;
    min-height: 3rem;
  }

  .two-col { columns: 1; }

  .review-invite {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.2rem 1.05rem 1.25rem;
  }

  .review-form {
    padding: 1rem 0.9rem;
  }

  .review-form-row {
    grid-template-columns: 1fr;
  }

  .review-form-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
  }

  .reviews-slider.is-scrollable .reviews-track {
    grid-auto-columns: minmax(240px, 84vw);
  }

  .review-entry {
    flex: 1 1 100%;
    max-width: none;
  }

  .services-layout.has-photo {
    grid-template-columns: 1fr;
  }

  .services-layout.has-photo .services-photos,
  .services-layout.has-photo .services-photo {
    display: none;
  }

  .gallery-slider.is-scrollable .photo-strip {
    grid-auto-columns: minmax(180px, 72vw);
  }

  .blog-promo {
    grid-template-columns: 1fr;
  }

  .blog-promo.has-photo {
    grid-template-columns: 1fr;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 22px;
    overflow: hidden;
  }

  .blog-promo.has-photo .blog-promo-main {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  /* Keep the green aside so VK (light-on-dark) stays visible */
  .blog-promo.has-photo .blog-promo-aside {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .blog-promo-main {
    padding: 1.15rem 1.15rem 0.85rem;
  }

  .blog-promo-aside {
    padding: 1rem 1.15rem 1.15rem;
    gap: 0.45rem;
    justify-content: flex-start;
  }

  .blog-promo-actions {
    margin-top: 0.15rem;
  }

  .blog-promo-photo {
    width: 100%;
    margin-left: 0;
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    position: relative;
  }

  .blog-promo-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

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

  .footer-top,
  .footer-cols,
  .contacts-body {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-ornament {
    top: -0.8rem;
    opacity: 0.85;
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .contacts-door {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  /* Bottom sheets for forms / reviews */
  .modal {
    place-items: end center;
    padding: 0;
  }

  .soft-modal .modal-dialog {
    width: 100%;
    max-width: none;
    max-height: min(92dvh, 100%);
    overflow: auto;
    margin: 0;
    border-radius: 22px 22px 0 0;
    padding:
      1.35rem 1.15rem
      calc(1.25rem + var(--safe-bottom));
    transform: translateY(24px);
  }

  .soft-modal.is-open .modal-dialog {
    transform: none;
  }

  .appointment-modal-dialog,
  .review-modal-dialog {
    width: 100%;
  }

  .appointment-form input,
  .review-form input,
  .review-form textarea {
    font-size: 16px;
    min-height: 3rem;
  }

  .appointment-form-row {
    grid-template-columns: 1fr;
  }

  .appointment-form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .appointment-form-footer .btn {
    width: 100%;
    min-height: 3.1rem;
  }

  .lightbox {
    padding:
      calc(0.75rem + var(--safe-top))
      0.75rem
      calc(0.75rem + var(--safe-bottom));
    align-items: end;
  }

  .lightbox-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.16);
    border: 1px solid rgba(255, 250, 244, 0.28);
    background-image: none;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .hero-with-photo .hero-inner {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
    gap: 0.65rem 0.85rem;
  }

  .hero-portrait {
    width: 6.5rem;
    max-width: 6.5rem;
    border-radius: 1rem;
  }

  .hero-actions .btn-ghost {
    order: 1;
  }

  .edu-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }

  .section {
    padding-top: 1.65rem;
    padding-bottom: 1.65rem;
  }

  .section-divider {
    width: min(1120px, calc(100% - 1.35rem));
    margin: 0 auto;
  }

  .contacts-section {
    padding-top: 2.1rem;
    padding-bottom: 2.4rem;
  }

  .blog-posts-block {
    margin-top: 1.35rem;
  }

  .review-meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
  }

  .review-date {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 1.05rem;
  }

  .service-tab {
    font-size: 0.88rem;
    padding: 0.5rem 0.8rem;
  }
}
