/*
Theme Name: VanichK32Theme
Theme URI: https://medical.k32.cv.ua/
Author: mrVanich
Author URI: https://vanich.cv.ua/
Description: Standalone WordPress theme for K32 clinic. Visual layer is independent from Astra and uses K32 Site Core for editable clinic data.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: vanich-k32
*/

:root {
  --k32-brown: #331e02;
  --k32-ink: #1f2528;
  --k32-muted: #6f7477;
  --k32-line: #e7e1dc;
  --k32-accent: #a8783c;
  --k32-soft: #f6f4f1;
  --k32-white: #fff;
  --k32-font-text: "Merriweather", Georgia, "Times New Roman", serif;
  --k32-font-heading: "Oswald", "Arial Narrow", Arial, sans-serif;
  --k32-font-button: "Roboto", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.k32-native-home {
  margin: 0;
  background: #fff;
  overflow-x: hidden;
}

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

.screen-reader-text:focus,
.k32-skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 16px;
  top: 12px;
  left: 12px;
  z-index: 100000;
  background: #fff;
  color: var(--k32-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  text-decoration: none;
}

.k32-site {
  color: var(--k32-ink);
  font-family: var(--k32-font-text);
  overflow-x: clip;
}

.k32-site * {
  box-sizing: border-box;
}

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

.k32-topbar {
  background: var(--k32-brown);
  color: #fff;
  font-family: var(--k32-font-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.k32-topbar__inner {
  display: grid;
  width: min(965px, calc(100% - 96px));
  grid-template-columns: auto auto auto;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  min-height: 83px;
}

.k32-topbar__inner > div {
  white-space: nowrap;
}

.k32-topbar strong {
  font-weight: 700;
}

.k32-topbar em {
  font-weight: 600;
  font-style: italic;
}

.k32-topbar a {
  color: inherit;
  text-decoration: none;
}

.k32-topbar a:hover,
.k32-topbar a:focus-visible {
  color: #f2d2a8;
}

.k32-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.k32-nav__inner {
  width: min(965px, calc(100% - 96px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 91px;
  gap: 84px;
}

.k32-site--subpage .k32-topbar__inner,
.k32-site--subpage .k32-nav__inner {
  width: min(1200px, calc(100% - 96px));
}

.k32-site--subpage .k32-nav__inner {
  gap: 56px;
}

.k32-logo img {
  width: 132px !important;
  max-width: none !important;
  height: auto !important;
  display: block;
}

.k32-nav__toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--k32-ink);
  cursor: pointer;
  position: relative;
}

.k32-nav__toggle span,
.k32-nav__toggle::before,
.k32-nav__toggle::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
  transition: transform .24s ease, opacity .24s ease;
}

.k32-nav__toggle::before {
  top: 11px;
}

.k32-nav__toggle span {
  top: 18px;
}

.k32-nav__toggle::after {
  top: 25px;
}

.k32-nav.is-open .k32-nav__toggle::before {
  transform: translateY(7px) rotate(45deg);
}

.k32-nav.is-open .k32-nav__toggle span {
  opacity: 0;
}

.k32-nav.is-open .k32-nav__toggle::after {
  transform: translateY(-7px) rotate(-45deg);
}

.k32-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--k32-font-text);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.k32-menu li {
  margin: 0;
}

.k32-menu a,
.k32-footer a {
  color: var(--k32-ink);
  text-decoration: none;
}

.k32-menu a {
  white-space: nowrap;
}

.k32-menu a:hover,
.k32-footer a:hover {
  color: var(--k32-accent);
}

.k32-hero {
  min-height: 650px;
  background-position: 49% 44%;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.k32-hero__inner {
  width: min(965px, calc(100% - 96px));
  display: grid;
  align-items: center;
  justify-items: start;
}

.k32-hero__panel {
  position: relative;
  left: -116px;
  width: min(510px, 100%);
  margin: 0;
  text-align: center;
  color: #fff;
}

.k32-hero__eyebrow,
.k32-hero__title {
  margin: 0;
  font-family: var(--k32-font-text);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.k32-hero__eyebrow {
  font-size: clamp(18px, 1.15vw, 21px);
  line-height: 1.2;
  white-space: nowrap;
}

.k32-hero__title {
  max-width: 455px;
  margin: 0 auto;
  font-size: clamp(18px, 1.15vw, 21px);
  line-height: 1.28;
}

.k32-hero__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 16px 0;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .32);
}

.k32-hero__panel img {
  display: block;
  max-width: min(430px, 88vw);
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: .66;
}

.k32-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 12px 32px;
  border-radius: 999px;
  background: rgba(151, 151, 151, .9);
  color: #fff;
  font-family: var(--k32-font-text);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .28);
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}

.k32-hero__cta:hover,
.k32-hero__cta:focus-visible {
  background: rgba(183, 183, 183, .96);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .34);
}

.k32-features {
  background: #1d1d1b;
  color: #f6f2ee;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.k32-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  text-align: center;
  align-items: center;
}

.k32-features strong,
.k32-features span {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.k32-features strong {
  font-weight: 700;
}

.k32-feature__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .76);
  font-family: var(--k32-font-text);
  font-size: 18px !important;
  line-height: 26px !important;
}

.k32-feature__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.k32-section {
  padding: 88px 0;
}

.k32-about {
  background: #1d1d1b;
  padding: 0 0 44px;
}

.k32-consult__grid,
.k32-contacts__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}

.k32-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 655px;
}

.k32-about img,
.k32-consult img {
  width: 100%;
  display: block;
}

.k32-about img {
  height: 100%;
  min-height: 655px;
  object-fit: cover;
  object-position: center;
}

.k32-about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 6vw, 92px) clamp(54px, 8vw, 142px);
  background: #eef2f3;
}

.k32-about h1,
.k32-heading h2,
.k32-consult h2,
.k32-contacts h2 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 700;
}

.k32-about h1 {
  max-width: 470px;
  margin: 0 auto 32px;
  color: #1e2930;
  font-family: var(--k32-font-heading);
  font-size: clamp(36px, 3.15vw, 56px);
  line-height: 1.08;
  text-align: center;
}

.k32-about p,
.k32-heading p,
.k32-consult p,
.k32-service-card p,
.k32-team-card p {
  color: var(--k32-muted);
  font-size: 18px;
  line-height: 1.65;
}

.k32-about p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: #777;
  font-size: 18px;
  line-height: 1.45;
}

.k32-about__lead {
  color: #6d6d6d !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
}

.k32-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.k32-heading span {
  display: block;
  color: var(--k32-accent);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.k32-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.k32-service-card {
  background: #fff;
  border: 1px solid var(--k32-line);
  overflow: hidden;
  min-height: 100%;
}

.k32-service-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.k32-service-card div {
  padding: 24px;
}

.k32-service-card h3,
.k32-team-card h3,
.k32-contact-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.k32-gallery-teaser {
  background: var(--k32-soft);
}

.k32-gallery-teaser__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}

.k32-gallery-teaser img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  display: block;
}

.k32-gallery-teaser img:first-child {
  grid-row: span 2;
  aspect-ratio: 1 / 1.6;
}

.k32-subpage-hero {
  background: #f4f6f7;
  padding: clamp(72px, 9vw, 132px) 0 clamp(52px, 7vw, 96px);
  text-align: center;
}

.k32-subpage-hero p {
  margin: 0 0 12px;
  color: #767b7f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.k32-subpage-hero h1 {
  margin: 0;
  color: #1e2930;
  font-family: var(--k32-font-heading);
  font-size: clamp(46px, 6vw, 82px);
  line-height: .98;
  text-transform: uppercase;
}

.k32-page-title {
  margin: -12px 0 52px;
  color: #141b20;
  font-family: var(--k32-font-heading);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.k32-gallery-page {
  background: #fff;
  padding-top: 40px;
}

.k32-gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.k32-gallery-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1d1d1b;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.k32-gallery-photo--wide {
  grid-column: span 2;
}

.k32-gallery-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .55s ease;
}

.k32-gallery-photo--wide img {
  aspect-ratio: 1.55 / 1;
}

.k32-gallery-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .64);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .32s ease, transform .32s ease;
}

.k32-gallery-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .58));
  opacity: 0;
  transition: opacity .32s ease;
}

.k32-gallery-photo:hover img {
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.035);
}

.k32-gallery-photo:hover figcaption,
.k32-gallery-photo:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.k32-reviews-page {
  background: #fff;
}

.k32-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.k32-review-card {
  margin: 0;
  padding: 0;
  background: #171a1c;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
  overflow: hidden;
}

.k32-review-card img {
  display: block;
  width: 100%;
  height: auto;
}

.k32-review-card h2,
.k32-review-card div {
  color: #fff;
}

.k32-review-card h2 {
  margin: 0;
  padding: 26px 26px 0;
  font-size: 24px;
  line-height: 1.2;
}

.k32-review-card div {
  padding: 12px 26px 24px;
}

.k32-review-card p {
  margin: 0;
  padding: 12px 18px 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.k32-empty-state {
  max-width: 620px;
  margin: 0 auto;
  color: var(--k32-muted);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

.k32-services {
  background: #1d1d1b;
  color: #fff;
  padding: 70px 0 84px;
}

.k32-services .k32-container {
  width: min(1280px, calc(100% - 96px));
}

.k32-services .k32-heading {
  margin-bottom: 46px;
}

.k32-services .k32-heading h2 {
  margin: 0;
  color: #fff;
  font-family: var(--k32-font-heading);
  font-size: clamp(52px, 5.2vw, 78px);
  line-height: .95;
  letter-spacing: 0;
}

.k32-consult {
  padding: 74px 0;
}

.k32-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--k32-brown);
  color: var(--k32-brown);
  text-decoration: none;
  font-weight: 700;
}

.k32-button:hover {
  background: var(--k32-brown);
  color: #fff;
}

.k32-team {
  background: var(--k32-soft);
}

.k32-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.k32-team-card {
  background: #fff;
  text-align: center;
  border: 1px solid var(--k32-line);
  padding-bottom: 22px;
}

.k32-team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.k32-team-card h3 {
  padding: 0 18px;
}

.k32-team-card p {
  margin: 0;
  padding: 0 18px;
}

.k32-contacts {
  color: #fff;
  background-image:
    linear-gradient(rgba(0, 0, 0, .56), rgba(0, 0, 0, .56)),
    var(--k32-contacts-bg);
  background-position: center;
  background-size: cover;
}

.k32-contacts h2 {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.k32-contact-card {
  background: rgba(255, 255, 255, .75);
  color: var(--k32-ink);
  padding: 28px;
  text-align: center;
}

.k32-contact-card img {
  width: 100%;
  margin-bottom: 24px;
}

.k32-contact-card p {
  margin: 0 0 20px;
  line-height: 1.45;
}

.k32-map-frame {
  border: 0;
}

.k32-footer {
  background: #fff;
}

.k32-footer__inner {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.k32-footer img {
  width: 180px;
  height: auto;
}

.k32-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 700;
}

.k32-footer__menu {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.k32-footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: rgba(146, 146, 146, .5);
  padding: 15px calc((100% - min(1200px, calc(100% - 96px))) / 2);
}

@media (max-width: 991px) {
  .k32-container {
    width: min(100% - 32px, 720px);
  }

  .k32-topbar__inner,
  .k32-nav__inner {
    width: min(100% - 32px, 720px);
  }

  .k32-site--subpage .k32-topbar__inner,
  .k32-site--subpage .k32-nav__inner {
    width: min(100% - 32px, 720px);
  }

  .k32-topbar__inner,
  .k32-features__grid,
  .k32-card-grid,
  .k32-team-grid,
  .k32-consult__grid,
  .k32-contacts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .k32-about__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .k32-about img {
    min-height: 430px;
    max-height: 560px;
  }

  .k32-about__content {
    padding: 56px 32px 66px;
  }

  .k32-nav__inner,
  .k32-footer__inner {
    flex-direction: column;
    padding: 18px 0;
    gap: 22px;
  }

  .k32-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .k32-hero {
    min-height: 520px;
    background-attachment: scroll;
  }

  .k32-hero__inner,
  .k32-gallery-teaser__grid {
    grid-template-columns: 1fr;
  }

  .k32-hero__inner {
    justify-items: center;
  }

  .k32-hero__panel {
    margin: 0 auto;
    left: -24px;
    padding-top: 8vh;
  }

  .k32-gallery-teaser img:first-child {
    grid-row: auto;
    aspect-ratio: 1.4 / 1;
  }

  .k32-gallery-masonry,
  .k32-review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .k32-gallery-photo--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .k32-topbar {
    display: none;
  }

  .k32-topbar__inner,
  .k32-features__grid,
  .k32-card-grid,
  .k32-consult__grid,
  .k32-contacts__grid {
    grid-template-columns: 1fr;
  }

  .k32-topbar {
    font-size: 14px;
  }

  .k32-topbar__inner {
    min-height: auto;
    padding: 18px 0;
    gap: 10px;
    text-align: center;
  }

  .k32-topbar__inner > div {
    white-space: normal;
  }

  .k32-nav {
    position: relative;
    z-index: 30;
  }

  .k32-nav__inner {
    width: min(100% - 48px, 720px);
    min-height: 91px;
    flex-direction: row;
    justify-content: space-between;
    gap: 18px;
    padding: 0;
  }

  .k32-logo img {
    width: 150px !important;
  }

  .k32-nav__toggle {
    display: block;
    flex: 0 0 auto;
  }

  .k32-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 32;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 22px 24px 26px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .15);
    font-size: 15px;
  }

  .k32-nav.is-open .k32-menu {
    display: flex;
  }

  .k32-hero {
    min-height: 420px;
  }

  .k32-features {
    padding: 24px 0;
  }

  .k32-features__grid {
    gap: 22px;
  }

  .k32-features strong,
  .k32-features span {
    font-size: 18px;
  }

  .k32-about {
    padding-bottom: 34px;
  }

  .k32-about img {
    min-height: 300px;
  }

  .k32-about h1 {
    font-size: 34px;
  }

  .k32-about p {
    font-size: 16px;
  }

  .k32-about__lead {
    font-size: 19px !important;
  }

  .k32-subpage-hero {
    padding: 56px 0 42px;
  }

  .k32-page-title {
    margin: -8px 0 36px;
  }

  .k32-gallery-masonry,
  .k32-review-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .k32-gallery-photo--wide {
    grid-column: auto;
  }

  .k32-gallery-photo img,
  .k32-gallery-photo--wide img {
    aspect-ratio: 1 / 1.18;
  }

  .k32-gallery-teaser__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .k32-gallery-teaser img,
  .k32-gallery-teaser img:first-child {
    aspect-ratio: 1 / 1;
  }

  .k32-gallery-teaser img:first-child {
    grid-column: span 2;
    aspect-ratio: 1.35 / 1;
  }

  .k32-team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .k32-team-card {
    padding-bottom: 16px;
  }

  .k32-team-card img {
    aspect-ratio: 1 / 1.12;
    margin-bottom: 14px;
  }

  .k32-team-card h3 {
    padding: 0 10px;
    font-size: 16px;
    line-height: 1.2;
  }

  .k32-team-card p {
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.35;
  }

  .k32-hero__panel {
    width: min(100%, 350px);
    left: 0;
    padding-top: 7vh;
  }

  .k32-hero__rule {
    margin: 16px 0;
  }

  .k32-hero__panel img {
    max-width: min(230px, 58vw);
  }

  .k32-hero__cta {
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 24px;
  }

  .k32-section {
    padding: 60px 0;
  }

  .k32-about h1,
  .k32-heading h2,
  .k32-consult h2,
  .k32-contacts h2 {
    font-size: 28px;
  }

  .k32-footer__bar {
    flex-direction: column;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.k32-enhanced .k32-reveal {
  opacity: 0;
  transform: translate3d(0, 72px, 0);
  transition:
    opacity 1.35s cubic-bezier(.19, 1, .22, 1) var(--k32-delay, 0ms),
    transform 1.35s cubic-bezier(.19, 1, .22, 1) var(--k32-delay, 0ms),
    clip-path 1.35s cubic-bezier(.19, 1, .22, 1) var(--k32-delay, 0ms),
    filter 1.35s cubic-bezier(.19, 1, .22, 1) var(--k32-delay, 0ms);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}

.k32-enhanced .k32-reveal--left {
  transform: translate3d(-86px, 34px, 0);
}

.k32-enhanced .k32-reveal--right {
  transform: translate3d(86px, 34px, 0);
}

.k32-enhanced .k32-reveal--zoom {
  transform: scale(1.02);
}

.k32-enhanced .k32-reveal--panel {
  transform: translate3d(0, 132px, 0) scale(.98);
  clip-path: inset(14% 0 16% 0);
}

.k32-enhanced .k32-hero__panel.k32-reveal {
  transition-duration: 1.55s;
}

.k32-enhanced .k32-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.k32-enhanced .k32-reveal--panel.is-visible {
  clip-path: inset(0 0 0 0);
}

.k32-hero {
  position: relative;
  min-height: calc(100vh - 174px);
  height: calc(100vh - 174px);
  overflow: hidden;
  isolation: isolate;
  background: #1a1b1b;
}

.k32-hero::before,
.k32-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.k32-hero::before {
  inset: -62px;
  z-index: -2;
  background-image: var(--k32-hero-bg);
  background-position: 47% calc(49% + var(--k32-hero-y, 0px));
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(var(--k32-hero-scale, 1));
  transition: transform .12s linear, background-position .12s linear;
}

.k32-hero::after {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 24% 48%, rgba(0, 0, 0, .18), transparent 34%),
    linear-gradient(rgba(22, 33, 41, .55), rgba(22, 33, 41, .55));
}

.k32-hero__inner {
  height: 100%;
  align-items: center;
}

.k32-hero__panel {
  padding: clamp(180px, 33vh, 410px) 0 0;
}

.k32-hero__eyebrow,
.k32-hero__title {
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.k32-hero__panel img {
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .45));
}

.k32-features__grid > div,
.k32-service-card,
.k32-team-card,
.k32-gallery-teaser img,
.k32-contact-card {
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.k32-features__grid > div:hover,
.k32-team-card:hover,
.k32-gallery-teaser img:hover {
  transform: translateY(-6px);
}

.k32-service-book {
  position: relative;
  min-height: 720px;
  margin: 10px auto 0;
  perspective: 1800px;
  outline: none;
}

.k32-book-stage {
  position: relative;
  height: 640px;
  max-width: 1040px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.k32-service-book .k32-service-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(470px, 42vw);
  height: 620px;
  display: block;
  border: 0;
  border-radius: 4px;
  background: #b6b4b6;
  box-shadow: 12px 0 22px rgba(0, 0, 0, .32);
  transform:
    translateX(-50%)
    translateX(var(--k32-page-shift, 0px))
    rotateY(var(--k32-page-rotate, 0deg))
    scale(var(--k32-page-scale, 1));
  opacity: 0;
  z-index: var(--k32-page-z, 1);
  overflow: hidden;
  pointer-events: none;
  transform-origin: center;
  transition:
    transform .65s cubic-bezier(.22, 1, .36, 1),
    opacity .65s cubic-bezier(.22, 1, .36, 1),
    box-shadow .65s cubic-bezier(.22, 1, .36, 1);
}

.k32-service-book .k32-service-card.is-active,
.k32-service-book .k32-service-card.is-next {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 12px 0 22px rgba(0, 0, 0, .34);
}

.k32-service-book .k32-service-card.is-prev {
  opacity: .18;
}

.k32-service-book .k32-service-card.is-hidden-page {
  opacity: 0;
}

.k32-service-book .k32-service-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  background: #b6b4b6;
}

.k32-service-card__text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.k32-book-button {
  position: absolute;
  top: 286px;
  z-index: 24;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(51, 30, 2, .24);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 72px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
}

.k32-book-button:hover,
.k32-book-button:focus-visible {
  background: transparent;
  color: #fff;
}

.k32-book-button--prev {
  left: 2%;
}

.k32-book-button--next {
  right: 2%;
}

.k32-book-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.k32-book-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
}

.k32-book-dots button.is-active {
  width: 11px;
  background: rgba(255, 255, 255, .84);
}

@media (max-width: 991px) {
  .k32-hero {
    min-height: calc(100vh - 150px);
    height: calc(100vh - 150px);
  }

  .k32-hero::before {
    inset: -48px;
    background-position: 47% calc(51% + var(--k32-hero-y, 0px));
  }

  .k32-hero__panel {
    left: -24px;
    width: min(510px, 100%);
    padding-top: 8vh;
  }

  .k32-services .k32-container {
    width: min(100% - 32px, 760px);
  }

  .k32-service-book {
    min-height: 650px;
  }

  .k32-book-stage {
    height: 585px;
    max-width: 720px;
  }

  .k32-service-book .k32-service-card {
    width: min(420px, 70vw);
    height: 565px;
  }

  .k32-service-book .k32-service-card img {
    height: 100%;
  }

  .k32-book-button {
    top: 260px;
  }
}

@media (max-width: 640px) {
  .k32-hero {
    min-height: calc(100vh - 91px);
    height: calc(100vh - 91px);
  }

  .k32-hero__inner {
    width: calc(100% - 16px);
  }

  .k32-hero::before {
    inset: -40px;
    background-position: 45% calc(53% + var(--k32-hero-y, 0px));
  }

  .k32-hero__panel {
    left: 0;
    width: 100%;
    padding-top: clamp(138px, 17vh, 178px);
  }

  .k32-hero__eyebrow {
    font-size: clamp(15px, 3.9vw, 20px);
  }

  .k32-hero__title {
    font-size: clamp(17px, 4.55vw, 21px);
  }

  .k32-hero__title {
    max-width: 430px;
  }

  .k32-hero__rule {
    margin: 16px 0;
  }

  .k32-hero__panel img {
    max-width: min(430px, 100%);
  }

  .k32-hero__cta {
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 28px;
    font-size: clamp(15px, 4vw, 18px);
  }

  .k32-service-book {
    min-height: 600px;
  }

  .k32-book-stage {
    height: 540px;
  }

  .k32-service-book .k32-service-card {
    width: min(336px, 82vw);
    height: 520px;
  }

  .k32-service-book .k32-service-card img {
    height: 100%;
  }

  .k32-book-button {
    top: 238px;
    width: 44px;
    height: 44px;
    font-size: 52px;
  }

  .k32-book-button--prev {
    left: -8px;
  }

  .k32-book-button--next {
    right: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .k32-reveal,
  .k32-service-card,
  .k32-hero::before {
    transition: none !important;
    filter: none !important;
  }

  .k32-reveal,
  .k32-hero::before {
    transform: none !important;
  }
}
