*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-text: #2b3038;
  --color-muted: #6b7280;
  --color-brand: #1a1d22;
  --color-accent: #e85d04;
  --color-accent-hover: #f48c06;
  --color-topbar: #111418;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgb(15 23 42 / 0.08);
  --radius: 3px;
  --header-h: 88px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgb(232 93 4 / 0.12);
}

body.nav-open-fixed {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-hover);
}

.icon-S {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px))
    max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* ─── HEADER SKELETON (3 tiers: мета лента · бранд лента · навигация) ─── */

.site-head {
  position: relative;
  z-index: 1;
}

/* Tier 1 */
.site-head__tier--meta {
  background: #e8eaef;
  color: #4b5260;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
}

.site-head__meta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  padding: 0.52rem 0;
}

.site-head__address {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  max-width: min(72ch, 100%);
}

.site-head__address .icon-S {
  color: var(--color-accent);
}

.site-head__follow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-head__follow span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7585;
}

.site-head__soc-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.42rem;
  align-items: center;
}

.site-head__soc-mini a.site-head__soc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #cbd2dd;
  color: #596275;
  text-decoration: none;
}

.site-head__soc-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.site-head__soc-mini a.site-head__soc-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.site-head .site-head__phone-strong {
  text-decoration: none;
}

/* Tier 2 */
.site-head__tier--ribbon {
  background: #fff;
  border-bottom: 1px solid #dfe4ec;
}

.site-head__ribbon-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 2.65fr) auto;
  gap: clamp(0.85rem, 2vw, 1.65rem);
  align-items: center;
  padding: clamp(0.95rem, 2.2vw, 1.35rem) 0;
}

/* Две равни колони: телефон и работно време, центрирани спрямо колоните */
.site-head__ribbon-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 2.2vw, 1.85rem);
  align-items: stretch;
  min-width: 0;
}

@media (max-width: 560px) {
  .site-head__ribbon-cols {
    grid-template-columns: 1fr;
  }
}

.logo--ribbon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  justify-self: start;
}

.logo--ribbon-link:hover .logo__mark--ribbon {
  color: var(--color-accent);
}

.logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  color: var(--color-accent);
  border: 2px solid rgb(232 93 4 / 0.7);
  border-radius: calc(var(--radius) + 1px);
  background: radial-gradient(circle at 30% 20%, rgb(232 93 4 / 0.2), rgb(245 246 249));
  box-shadow: inset 0 1px rgb(255 255 255 / 0.8);
}

.logo__badge svg {
  width: 30px;
  height: 30px;
}

.logo__badge--sm {
  width: 42px;
  height: 42px;
}

.logo__badge--sm svg {
  width: 24px;
  height: 24px;
}

.logo__stack--ribbon .logo__mark--ribbon {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 1.82rem);
  letter-spacing: 0.12em;
  color: #1c212b;
}

.logo__ribbon-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1f2835;
}

.logo__ribbon-tag-accent {
  color: var(--color-accent);
}

.logo__ribbon-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.588rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f97a8;
}

.site-head__cell {
  display: flex;
  gap: 0.62rem;
  align-items: flex-start;
}

.site-head__cell--ribbon {
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.site-head__cell-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.22rem;
  min-width: 0;
}

/* Компактно подравняване без изкуствен голям интервал между редовете */
.site-head__ribbon-cols .site-head__cell--ribbon .site-head__cell-text {
  flex: 1 1 auto;
  align-self: stretch;
  justify-content: flex-start;
  gap: 0.22rem;
}

.site-head__cell--ribbon .site-head__phone-strong {
  line-height: 1.22;
}

.site-head__cell-text .site-head__soft {
  display: block;
  font-size: 0.7825rem;
  color: #6b7585;
  line-height: 1.3;
}

.site-head__cell-icon {
  width: 41px;
  height: 41px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #dfe4ec;
  background: linear-gradient(180deg, #fafbfc, #eef1f7);
  color: var(--color-accent);
}

.site-head__phone-strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--color-accent);
  text-decoration: none;
}

.site-head__strong--time {
  display: block;
}

.btn--ribbon-outline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.9rem 1.15rem;
  border: 2px solid #c5ccd6;
  background: #fff;
  color: #2b3340;
  text-decoration: none;
  justify-self: end;
}

.btn--ribbon-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Tier 3 — само менюто остава закрепено при вертикален скрол (извън <header>) */
.site-head__tier--nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 110;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(180deg, #2c3645 0%, #222b38 56%, #1c2430 100%);
  border-bottom: 4px solid var(--color-accent);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.28);
}

.site-head__tier--nav.tier-nav--scrolled {
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.42);
}

#top,
#about,
#services,
#gallery,
#appointment,
#contact {
  scroll-margin-top: calc(52px + env(safe-area-inset-top, 0px));
}

.site-head__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 50px;
}

.nav--accentbar .nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav--accentbar .nav__list a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 0.92rem;
  color: rgb(239 243 247 / 0.88);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav--accentbar .nav__list a:hover,
.nav--accentbar .nav__list a.is-active {
  color: #fff;
  background: rgb(232 93 4 / 0.18);
}

.nav--accentbar .nav__list a.is-active {
  box-shadow: inset 0 -3px 0 0 var(--color-accent-hover);
}

.site-head__toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.site-head__toolbar-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.05);
  color: rgb(239 243 247);
  cursor: pointer;
}

.site-head__toolbar-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.burger--nav {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.05);
  cursor: pointer;
}

.burger--nav span {
  display: block;
  height: 2px;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}

.burger--nav[aria-expanded="true"] {
  border-color: var(--color-accent);
}

.burger--nav[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--nav[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger--nav[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  flex-shrink: 0;
}

.logo__stack {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.06;
}

@media (max-width: 991px) {
  .site-head__ribbon-inner {
    grid-template-columns: 1fr 1fr;
  }

  .logo--ribbon-link {
    grid-column: 1 / -1;
  }

  .site-head__ribbon-cols {
    grid-column: 1 / -1;
    max-width: min(560px, 100%);
    margin-inline: auto;
  }

  .btn--ribbon-outline {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-head__follow span {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-head__ribbon-inner {
    grid-template-columns: 1fr;
  }

  .site-head__ribbon-cols {
    max-width: none;
    margin-inline: 0;
  }

  .site-head__cell {
    justify-content: flex-start;
  }

  .site-head__cell--ribbon {
    justify-content: flex-start;
  }

  .site-head__cell-text {
    align-items: flex-start;
    text-align: left;
  }

  .site-head__ribbon-cols .site-head__cell--ribbon .site-head__cell-text {
    min-height: 0;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 880px) {
  .burger--nav {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  .nav--accentbar.nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--nav-dropdown-top, 54px);
    background: linear-gradient(180deg, #222b38 0%, #171e28 100%);
    margin: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform var(--transition),
      opacity var(--transition),
      visibility var(--transition);
    border-bottom: 3px solid var(--color-accent);
    z-index: 105;
    max-height: calc(100vh - var(--nav-dropdown-top, 54px));
    max-height: calc(100dvh - var(--nav-dropdown-top, 54px));
    overflow-y: auto;
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.45);
  }

  .nav--accentbar.nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav--accentbar .nav__list {
    flex-direction: column;
    width: 100%;
  }

  .nav--accentbar .nav__list li {
    border-bottom: 1px solid rgb(255 255 255 / 0.07);
  }

  .nav--accentbar .nav__list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.92rem 1.25rem;
  }
}

@media (max-width: 400px) {
  .logo__badge {
    width: 46px;
    height: 46px;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite ease-in-out;
}

.hero__slide--1 {
  background-image: linear-gradient(rgb(17 19 21 / 0.45), rgb(17 19 21 / 0.7)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1920&q=85");
}

.hero__slide--2 {
  background-image: linear-gradient(rgb(17 19 21 / 0.45), rgb(17 19 21 / 0.7)),
    url("https://images.unsplash.com/photo-1489824904134-891ab64532f1?w=1920&q=85");
  animation-delay: 6s;
}

.hero__slide--3 {
  background-image: linear-gradient(rgb(17 19 21 / 0.45), rgb(17 19 21 / 0.7)),
    url("https://images.unsplash.com/photo-1493238792000-8113da705763?w=1920&q=85");
  animation-delay: 12s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  36% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgb(10 11 13 / 0.85), transparent 42%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 10vw, 5rem);
  text-align: left;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero__title .accent {
  color: var(--color-accent);
}

.hero__lead {
  max-width: 46ch;
  color: rgb(229 231 235);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px;
  height: 56px;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: wheel 1.8s infinite ease-in-out;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

.hero__scroll:hover {
  border-color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
    opacity: 1;
  }

  .hero__slide--2,
  .hero__slide--3 {
    display: none;
  }

  .hero__scroll::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #111;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #111;
}

.btn--outline {
  background: transparent;
  border-color: rgb(255 255 255 / 0.5);
  color: #fff;
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.btn--small {
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
}

.btn--inverse {
  background: #fff;
  color: var(--color-brand);
  border-color: #fff;
}

.btn--inverse:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Sections */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin: 0 0 0.35rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.section__blurb {
  margin: 0.75rem auto 0;
  max-width: 52ch;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Features */

.features__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  position: relative;
  cursor: pointer;
  background: var(--color-surface);
  padding: 1.75rem;
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.32s ease,
    border-left-color 0.28s ease;
}

.section--alt .feature-card {
  background: var(--color-bg);
}

.feature-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: rgb(176 178 182);
  display: block;
  line-height: 1;
  margin-bottom: 0.75rem;
  position: relative;
  width: fit-content;
  transition:
    color 0.26s ease,
    transform 0.28s ease,
    letter-spacing 0.28s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% -8%, rgb(232 93 4 / 0.11), transparent 52%);
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 -30% -20%;
  height: 60%;
  background: radial-gradient(ellipse closest-side at 55% 0%, rgb(232 93 4 / 0.07), transparent 72%);
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow:
      0 4px 14px rgb(15 23 42 / 0.07),
      0 22px 48px rgb(232 93 4 / 0.1);
  }

  .feature-card:hover::before {
    opacity: 1;
  }

  .feature-card:hover::after {
    opacity: 1;
  }

  .feature-card:hover .feature-card__num {
    color: var(--color-accent);
    transform: translateX(4px);
    letter-spacing: 0.02em;
    text-shadow: 0 0 42px rgb(232 93 4 / 0.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-card__num,
  .feature-card::before,
  .feature-card::after {
    transition-duration: 0.01ms;
  }

  .feature-card:hover {
    transform: none;
  }

  .feature-card:hover .feature-card__num {
    transform: none;
  }
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Service cards grid */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: var(--color-bg);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgb(0 0 0 / 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgb(232 93 4 / 0.45);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.925rem;
}

.service-card__icon {
  width: 50px;
  height: 50px;
  padding: 0.45rem;
  box-sizing: border-box;
  color: var(--color-accent);
  margin-bottom: 0.95rem;
  background: radial-gradient(circle at 30% 25%, rgb(232 93 4 / 0.15), rgb(244 245 247 / 0.85));
  border: 1px solid rgb(232 93 4 / 0.22);
  border-radius: calc(var(--radius) + 2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:hover .service-card__icon {
  background: radial-gradient(circle at 30% 25%, rgb(232 93 4 / 0.24), rgb(255 251 246 / 0.95));
  border-color: rgb(232 93 4 / 0.4);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* CTA strip */

.cta-strip {
  background: linear-gradient(110deg, #c94800 0%, #e85d04 45%, #f7931e 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-strip__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.cta-strip h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.2;
}

.cta-strip__rotating {
  margin: 0;
  max-width: 52ch;
  min-height: 2.75em;
  opacity: 0.95;
}

.cta-strip__rotating-line {
  display: inline-block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cta-strip__rotating-line.is-dim {
  opacity: 0;
  transform: translateY(4px);
}

/* Appointment */

.appointment__layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .appointment__layout {
    grid-template-columns: 1fr;
  }
}

.appointment__info h2 {
  font-family: var(--font-display);
  margin-top: 0;
}

.appointment__list {
  padding-left: 1.2rem;
  color: var(--color-muted);
}

.form__row {
  margin-bottom: 1rem;
}

.form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form__input,
.form__textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgb(0 0 0 / 0.14);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.form__input:focus,
.form__textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
  border-color: transparent;
}

.form__textarea {
  resize: vertical;
  min-height: 88px;
}

.form__submit {
  margin-top: 0.5rem;
  width: 100%;
  border: none;
}

.form__submit:hover {
  background: var(--color-accent-hover);
}

.form__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.form__note[data-state="success"] {
  color: #15803d;
}

.form__note[data-state="error"] {
  color: #b91c1c;
}

/* Testimonials */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section--testimonials {
  padding-bottom: clamp(3rem, 8vw, 4.5rem);
  background:
    linear-gradient(180deg, rgb(250 251 252) 0%, var(--color-bg) 38%, rgb(239 241 246 / 0.92) 100%);
  border-block: 1px solid rgb(0 0 0 / 0.05);
}

.section--testimonials .section__head {
  margin-bottom: clamp(2rem, 4vw, 2.85rem);
}

.testimonials__lead {
  max-width: min(54ch, 100%);
}

.testimonials__grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 1.65rem 1.5rem 1.85rem;
  background: linear-gradient(165deg, #ffffff 0%, rgb(251 251 253) 100%);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgb(0 0 0 / 0.07);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 12px 36px rgb(15 23 42 / 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgb(15 23 42 / 0.05),
    0 18px 44px rgb(15 23 42 / 0.09);
  border-color: rgb(232 93 4 / 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card:hover {
    transform: none;
  }
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.95rem;
  right: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: rgb(232 93 4 / 0.11);
  pointer-events: none;
}

.testimonial-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(226 229 237 / 0.95);
}

.testimonial-card__identity-wrap {
  flex: 1;
  min-width: 0;
}

.testimonial-card__identity {
  margin-bottom: 0.42rem;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  padding: 0;
  border: 2px solid rgb(255 255 255);
  box-shadow:
    0 2px 8px rgb(15 23 42 / 0.1),
    0 4px 16px rgb(232 93 4 / 0.12);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.testimonial-card__avatar--alt {
  border-color: rgb(232 93 4 / 0.45);
  box-shadow:
    0 2px 8px rgb(15 23 42 / 0.1),
    0 6px 20px rgb(232 93 4 / 0.2);
}

.testimonial-card:hover .testimonial-card__avatar {
  border-color: rgb(232 93 4 / 0.55);
}

.testimonial-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.28;
}

.testimonial-card__role {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(118 126 143);
}

.testimonial-card__stars {
  margin: 0;
  font-size: 0;
  letter-spacing: 0.06em;
  line-height: 1;
}

.testimonial-card__star {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  color: #e8a839;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.5);
}

.testimonial-card__quote {
  margin: 0;
  padding: 0;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.72;
  color: rgb(53 61 71);
  font-style: normal;
  font-feature-settings: "kern" 1;
}

.footer {
  position: relative;
  margin-top: 0;
  color: #c9d0dc;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgb(232 93 4 / 0.12), transparent 40%),
    linear-gradient(180deg, #0f1319 0%, #090c10 100%);
}

.footer__ribbon {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #872d00, var(--color-accent), rgb(247 173 107), var(--color-accent-hover), #872d00);
}

/* ─── FOOTER skeleton (brand · навигация · услуги · контакт) ─── */
.footer__body.footer__body--skel {
  padding: 3rem 0 clamp(2.25rem, 4vw, 3rem);
  background-image:
    radial-gradient(circle at 12% -10%, rgb(255 255 255 / 0.035), transparent 42%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgb(255 255 255 / 0.02) 1px, rgb(255 255 255 / 0.02) 2px);
}

.footer__body--skel .footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(255 251 246);
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-accent);
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.footer__cols.footer__cols--skel {
  display: grid;
  gap: clamp(1.25rem, 2.8vw, 2.25rem);
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
}

.footer__cols.footer__cols--skel > * {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.footer__cols.footer__cols--skel .logo--footer-sk,
.footer__cols.footer__cols--skel .footer__square-social,
.footer__cols.footer__cols--skel .footer__sq-list,
.footer__cols.footer__cols--skel .footer__dot-lines {
  align-self: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer__brand-text {
  font-size: 0.9175rem;
  line-height: 1.6;
  margin: 0 auto 1rem;
  max-width: 36ch;
  color: rgb(185 191 206 / 0.95);
}

.logo--footer-sk {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 0.95rem;
  text-decoration: none;
  align-self: center;
}

.logo__stack--footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo__mark--footer-wh {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.38rem;
  letter-spacing: 0.08em;
  color: rgb(246 246 246);
}

.footer__mini-tag span {
  color: var(--color-accent);
}

.footer__mini-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer__square-social.footer__soc-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer__soc-mini a.footer__soc-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.055);
  color: rgb(198 206 218);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.footer__soc-mini a.footer__soc-link:hover {
  border-color: var(--color-accent);
  background: rgb(232 93 4 / 0.16);
  color: rgb(254 232 212);
}

.footer__soc-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.footer__nav-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.footer__nav-block .footer__title {
  margin-top: 0;
}

.footer__sq-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  font-size: 0.9rem;
  display: inline-block;
  text-align: left;
}

.footer__cols.footer__cols--skel .footer__dot-lines {
  display: inline-block;
  text-align: left;
  margin-inline: auto;
  width: 100%;
  max-width: 22rem;
}

.footer__sq-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.55rem;
  color: rgb(215 223 237 / 0.9);
}

.footer__sq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 1px;
}

.footer__sq-list a:hover {
  color: rgb(255 199 157);
}

.footer__thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 76px));
  gap: 5px;
}

.footer__thumb-grid a {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) + 1px);
  border: 1px solid rgb(255 255 255 / 0.06);
  aspect-ratio: 1;
}

.footer__thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.footer__thumb-grid a:hover img {
  transform: scale(1.08);
}

.footer__feed-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

.footer__dot-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__dot-lines li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  color: rgb(210 217 229 / 0.92);
}

.footer__sq-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  background: var(--color-accent);
  border-radius: 1px;
}

.footer__dot-lines a {
  color: rgb(255 220 178);
}

.footer__dot-lines a:hover {
  color: #fff;
}

.footer__demo-tip {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer__subbar {
  border-top: 1px solid rgb(255 255 255 / 0.07);
  background: rgb(6 8 11 / 0.92);
}

.footer__subbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.85rem, 2.5vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.25rem) 0;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgb(152 164 178);
  flex: 1 1 200px;
  margin: 0;
}

.footer__subbar-tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.footer__credit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4rem 0.55rem;
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.06);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.04) 0%, rgb(232 93 4 / 0.05) 100%);
}

.footer__credit-kicker {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(154 164 177);
}

.footer__credit-link {
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.65vw, 0.752rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgb(232 239 246);
  text-decoration: none;
  background-image: linear-gradient(90deg, rgb(247 206 169), rgb(247 227 207));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer__credit-link:hover {
  filter: brightness(1.12);
}

@supports not (background-clip: text) {
  .footer__credit-link {
    color: rgb(247 217 188);
    -webkit-text-fill-color: unset;
    background-image: none;
  }
}

.footer__credit:focus-within {
  border-color: rgb(232 93 4 / 0.28);
}

.footer__credit-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__totop {
  width: 40px;
  height: 40px;
  border-radius: calc(var(--radius) + 1px);
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  color: rgb(239 239 239);
  font-size: 1.05rem;
  cursor: pointer;
}

.footer__totop:hover {
  background: rgb(232 93 4 / 0.3);
  border-color: var(--color-accent);
}

@media (max-width: 992px) {
  .footer__cols.footer__cols--skel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand-col {
    grid-column: 1 / -1;
  }

  .footer__info-listed {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer__cols.footer__cols--skel {
    grid-template-columns: 1fr;
  }

  .footer__subbar-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer__copy {
    flex-basis: auto;
  }

  .footer__subbar-tail {
    justify-content: center;
  }

  .footer__credit {
    justify-content: center;
  }
}

/* ─── Touch & narrow screens ─── */

@media (max-width: 640px) {
  .hero {
    min-height: min(92vh, 720px);
    min-height: min(92svh, 720px);
  }

  .hero__title {
    max-width: none;
    font-size: clamp(1.72rem, 8.8vw, 2.85rem);
  }

  .hero__lead {
    max-width: none;
    font-size: clamp(0.975rem, 3.9vw, 1.065rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
    padding-top: min(1.05rem, 4vw);
    padding-bottom: min(1.05rem, 4vw);
  }

  .section__head--row {
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .section__head--row > div:first-child {
    width: 100%;
    text-align: center;
  }

  .section__head--row .btn {
    align-self: center;
  }

  .cta-strip__inner {
    justify-content: center;
  }

  .cta-strip .btn {
    width: 100%;
    max-width: 22rem;
  }

  .footer__totop {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .form__input,
  .form__textarea {
    font-size: 16px;
  }

  .map-embed iframe {
    min-height: 260px;
  }
}

/* Inner pages */

.page-hero {
  background: linear-gradient(165deg, #22262c 0%, #171a1f 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.page-hero__breadcrumb {
  font-size: 0.8125rem;
  margin: 0 0 0.75rem;
}

.page-hero__breadcrumb a {
  color: #d1d5db;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-hero__lead {
  margin: 0;
  max-width: 62ch;
  color: rgb(216 217 219);
}

.inner-page {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section--flush-top.inner-page {
  padding-top: 0;
}

.inner-text h2 {
  font-family: var(--font-display);
  margin-top: 0;
}

.inner-text ul {
  color: var(--color-muted);
}

.inner-text.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.about-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-split__photo {
  min-height: 320px;
  border-radius: var(--radius);
  background-image: linear-gradient(rgb(26 29 34 / 0.15), rgb(26 29 34 / 0.35)),
    url("https://images.unsplash.com/photo-1504222490343-c852b458704e?w=1200&q=80");
  background-size: cover;
  background-position: center;
}

/* Gallery */

.gallery-section {
  padding-bottom: 4rem;
}

.gallery--home .gallery__trigger {
  aspect-ratio: 3 / 2;
  min-height: 200px;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery__item--lg {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .gallery__item--lg {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .gallery__item--lg,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: auto;
  }
}

.gallery__trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery__trigger:hover img {
  transform: scale(1.04);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgb(10 11 13 / 0.94);
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: max(1.15rem, env(safe-area-inset-top), 12px)
    max(1.15rem, env(safe-area-inset-right), 12px)
    max(1.15rem, env(safe-area-inset-bottom), 12px)
    max(1.15rem, env(safe-area-inset-left), 12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: min(82vh, 800px);
  margin-inline: auto;
  border-radius: var(--radius);
}

.lightbox__caption {
  color: #e5e7eb;
  text-align: center;
  margin: 0;
}

.lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 16px));
  right: max(1rem, env(safe-area-inset-right, 16px));
  width: 48px;
  height: 48px;
  border: none;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox__close:hover {
  background: var(--color-accent);
  color: #111;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 340px) 1fr;
  align-items: stretch;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-surface);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.contact-card address {
  font-style: normal;
  margin: 1rem 0;
  color: var(--color-muted);
}

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: none;
  border-radius: var(--radius);
}

.section--narrow-bottom.appointment {
  padding-bottom: 3rem;
}
