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

:root {
  --ink: #1c2d42;
  --ink-rgb: 28, 45, 66;
  --ink-soft: #3a5168;
  --muted: #5c7289;
  --wine: #8b3d4a;
  --wine-rgb: 139, 61, 74;
  --wine-deep: #6e2f3a;
  --green: #2d6a4f;
  --green-rgb: 45, 106, 79;
  --green-deep: #245a42;
  --green-light: #3d8b5c;
  --gradient-green-chip: linear-gradient(135deg, var(--green-deep) 0%, var(--green-light) 100%);
  --sky: #3d6a9e;
  --sky-rgb: 61, 106, 158;
  --cream: #faf9f7;
  --page: #eef2f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #fff;
  --surface-muted: #e4ecf4;
  --line: rgba(var(--ink-rgb), 0.1);
  --line-strong: rgba(var(--ink-rgb), 0.16);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 20px rgba(var(--ink-rgb), 0.06);
  --shadow-md: 0 10px 28px rgba(var(--ink-rgb), 0.09);
  --shadow-hero: 0 24px 56px rgba(var(--ink-rgb), 0.11);
  --gradient-brand: linear-gradient(145deg, #1a2838 0%, #2a4560 48%, var(--wine-deep) 100%);
  --gradient-cta: linear-gradient(135deg, var(--ink) 0%, #2d4a68 100%);
  --gradient-chip: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  min-height: 100vh;
  background: var(--page);
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.wrap {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Фон: тематика ГИБДД и документов */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--page);
}

.bg__base {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, #e8eef6 0%, #f6f3ee 38%, #faf9f7 52%, #f0f4f8 100%),
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(var(--ink-rgb), 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 88% 75%, rgba(var(--wine-rgb), 0.09) 0%, transparent 50%);
}

.bg__ambient {
  position: absolute;
  inset: -15%;
  background: url("/images/hero/viktor-dokmanager.jpg") center 30% / cover no-repeat;
  opacity: 0.09;
  filter: blur(48px) saturate(1.15);
  transform: scale(1.05);
}

.bg__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: bg-drift 22s ease-in-out infinite alternate;
}

.bg__orb--slate {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(var(--ink-rgb), 0.22) 0%, transparent 70%);
  animation-delay: -4s;
}

.bg__orb--wine {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  bottom: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(var(--wine-rgb), 0.22) 0%, transparent 72%);
  animation-delay: -10s;
}

.bg__orb--sky {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(var(--sky-rgb), 0.16) 0%, transparent 70%);
  animation-delay: -16s;
}

@keyframes bg-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(18px, -14px) scale(1.06);
  }
}

.bg__stripes {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  opacity: 0.35;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 42px,
    rgba(var(--ink-rgb), 0.028) 42px,
    rgba(var(--ink-rgb), 0.028) 44px
  );
  mask-image: linear-gradient(180deg, transparent 0%, #000 85%);
}

.bg__docs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg__doc {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 18px 40px rgba(var(--ink-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    145deg,
    rgba(244, 198, 204, 0.55) 0%,
    rgba(220, 150, 158, 0.4) 45%,
    rgba(180, 110, 120, 0.25) 100%
  );
  animation-duration: 18s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.bg__doc::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 10%;
  right: 10%;
  height: 8%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.bg__doc::after {
  content: "";
  position: absolute;
  top: 28%;
  left: 10%;
  right: 22%;
  bottom: 18%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.bg__doc--1 {
  width: min(168px, 28vw);
  aspect-ratio: 1.58;
  top: 10%;
  right: 6%;
  animation-name: bg-doc-float-1;
}

.bg__doc--2 {
  width: min(140px, 24vw);
  aspect-ratio: 1.58;
  bottom: 14%;
  left: 5%;
  animation-name: bg-doc-float-2;
  animation-delay: -6s;
  opacity: 0.85;
}

.bg__doc--3 {
  width: min(120px, 20vw);
  aspect-ratio: 1.58;
  top: 55%;
  right: 14%;
  animation-name: bg-doc-float-3;
  animation-delay: -12s;
  opacity: 0.7;
}

@keyframes bg-doc-float-1 {
  from {
    transform: rotate(8deg) translateY(0);
  }
  to {
    transform: rotate(8deg) translateY(-10px);
  }
}

@keyframes bg-doc-float-2 {
  from {
    transform: rotate(-11deg) translateY(0);
  }
  to {
    transform: rotate(-11deg) translateY(-10px);
  }
}

@keyframes bg-doc-float-3 {
  from {
    transform: rotate(-4deg) translateY(0);
  }
  to {
    transform: rotate(-4deg) translateY(-10px);
  }
}

.bg__emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(280px, 42vw);
  transform: translate(-50%, -52%);
  opacity: 0.07;
  filter: saturate(0.85);
  pointer-events: none;
}

.bg__typo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg__word {
  position: absolute;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.bg__word--gibdd {
  top: 12%;
  left: 3%;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  color: rgba(var(--ink-rgb), 0.05);
  transform: rotate(-7deg);
}

.bg__word--rf {
  bottom: 16%;
  right: 4%;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: rgba(var(--wine-rgb), 0.07);
  transform: rotate(6deg);
}

.bg__word--vu {
  top: 38%;
  right: 8%;
  font-size: clamp(3rem, 10vw, 6rem);
  color: rgba(var(--sky-rgb), 0.08);
  transform: rotate(12deg);
}

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

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 58% at 50% 42%, rgba(255, 255, 255, 0.72) 0%, transparent 68%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(250, 251, 253, 0.2) 45%,
      rgba(244, 247, 252, 0.45) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
  .bg__orb,
  .bg__doc {
    animation: none;
  }
}

/* Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(var(--sky-rgb), 0.06);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  transition: color 0.2s;
}

.logo:hover {
  color: var(--wine);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s;
}

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

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-cta);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--ink-rgb), 0.2);
  color: #fff;
}

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

  .header__cta {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Главная обложка */

.hero {
  padding: 1.25rem 0 0.5rem;
}

.hero__card {
  display: grid;
  grid-template-columns: minmax(200px, 34%) minmax(0, 66%);
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-hero), 0 0 0 1px var(--line);
  backdrop-filter: blur(14px);
}

.hero__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: min(78vh, 640px);
  overflow: hidden;
  background: var(--gradient-brand);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(var(--wine-rgb), 0.38) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(var(--sky-rgb), 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.hero__showcases {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  height: auto;
  min-height: 0;
  padding: 1rem;
  align-items: center;
}

.hero__showcases--single {
  grid-template-columns: 1fr;
  position: absolute;
  inset: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
}

.hero__showcase {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--ink);
}

.hero__showcase:first-child {
  transform: rotate(-2deg);
}

.hero__showcase:last-child {
  transform: rotate(2deg);
  margin-top: 1.25rem;
}

.hero__showcases--single .hero__showcase,
.hero__showcases--single .hero__showcase:first-child,
.hero__showcases--single .hero__showcase:last-child {
  transform: none;
  margin-top: 0;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero__showcase--banner {
  line-height: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.hero__showcase--cover img,
.hero__showcase--banner img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__showcase img {
  width: 100%;
  height: auto;
  min-height: 10.5rem;
  object-fit: cover;
  object-position: center;
}

.hero__showcase-cap {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem 0.95rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 16, 24, 0.55) 35%,
    rgba(10, 16, 24, 0.92) 100%
  );
  color: #fff;
}

.hero__showcase-cap--top {
  inset: auto auto auto 0.55rem;
  top: 0.55rem;
  right: 4.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(10, 16, 24, 0.72);
  backdrop-filter: blur(6px);
}

.hero__showcase-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 228, 210, 0.96);
}

.hero__showcase-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero__showcase-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero__stamp {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-chip);
  box-shadow: 0 6px 20px rgba(var(--wine-rgb), 0.4);
}

.hero__stamp--prepay {
  top: auto;
  bottom: 0.85rem;
  left: 0.85rem;
  right: auto;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: none;
  background: linear-gradient(135deg, #2d6a4f 0%, #3d8b5c 100%);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.45);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.35rem, 3.5vw, 2.5rem);
}

@media (min-width: 721px) {
  .hero__card {
    grid-template-columns: minmax(220px, 32%) minmax(0, 68%);
  }

  .hero__services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.65rem;
  }

  .hero__stats {
    gap: 0.55rem 0.65rem;
  }

  .hero__lead {
    max-width: 36rem;
  }

  .hero__text {
    max-width: 36rem;
  }
}

.hero__badge {
  margin: 0;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wine);
  background: rgba(var(--wine-rgb), 0.1);
  border: 1px solid rgba(var(--wine-rgb), 0.22);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__services li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(var(--sky-rgb), 0.08);
  border: 1px solid rgba(var(--sky-rgb), 0.14);
}

.hero__services li:first-child {
  color: #fff;
  background: var(--gradient-green-chip);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(var(--green-rgb), 0.32);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-cta);
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--ink-rgb), 0.22);
  filter: brightness(1.05);
}

.hero__cta--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--line-strong);
}

.hero__cta--ghost:hover {
  background: var(--surface-solid);
  border-color: rgba(var(--wine-rgb), 0.35);
  color: var(--wine-deep);
  box-shadow: var(--shadow-sm);
}

.hero__cta--accent {
  color: #fff;
  background: var(--gradient-cta);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(var(--sky-rgb), 0.32);
}

.hero__cta--accent:hover {
  color: #fff;
  filter: brightness(1.07);
  box-shadow: 0 8px 24px rgba(var(--sky-rgb), 0.4);
}

.block--reviews {
  padding-top: 1.5rem;
}

.block--faq {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  scroll-margin-top: 4.5rem;
}

.contacts--wide {
  max-width: 28rem;
}

.contact-cta {
  margin: 1.25rem 0 0;
  text-align: center;
}

@media (min-width: 721px) {
  .contact-cta {
    text-align: left;
  }
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0.25rem;
}

.hero__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: rgba(var(--sky-rgb), 0.08);
  border: 1px solid rgba(var(--sky-rgb), 0.12);
}

.hero__stat strong {
  color: var(--wine);
  font-weight: 800;
  font-size: 0.88rem;
}

.hero__stat:nth-child(1) strong,
.hero__stat:nth-child(2) strong {
  color: var(--green);
}

.hero__stat--prepay {
  background: rgba(var(--green-rgb), 0.12);
  border-color: rgba(var(--green-rgb), 0.28);
}

.hero__stat--prepay strong {
  color: var(--green);
}

.block--steps {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.section-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

/* Статистика */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat__value {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--wine);
  line-height: 1.15;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* Шаги */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-cta);
  flex-shrink: 0;
}

.step__body strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.step__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Цитаты */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.quote {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 3px solid var(--wine);
  box-shadow: var(--shadow-sm);
}

.quote p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.quote footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--wine);
}

.quote footer span {
  color: var(--muted);
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.5rem;
  max-width: 42rem;
}

.faq__item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq__item summary {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--wine);
  font-weight: 700;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Контакты + форма */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.inquiry {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.inquiry label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--surface-solid);
}

.inquiry input:focus,
.inquiry select:focus,
.inquiry textarea:focus {
  outline: none;
  border-color: rgba(var(--sky-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--sky-rgb), 0.12);
}

.inquiry__msg {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.inquiry__msg--ok {
  color: #2d6a4f;
}

.inquiry__msg--err {
  color: var(--wine-deep);
}

.inquiry__msg--pending {
  color: var(--muted);
}

.inquiry__legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.inquiry__legal a {
  color: var(--wine);
  font-weight: 600;
}

/* Плавающая кнопка */

.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: var(--gradient-chip);
  box-shadow: 0 10px 32px rgba(var(--wine-rgb), 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(var(--wine-rgb), 0.45);
  color: #fff;
}

.fab__icon {
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .stats,
  .quotes {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fab__text {
    display: none;
  }

  .fab {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* Блоки */

.block {
  padding: 2.5rem 0;
}

h1,
h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
}

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

/* Вкладки */

.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tabs__btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tabs__btn:hover {
  border-color: rgba(var(--sky-rgb), 0.25);
  color: var(--ink);
}

.tabs__btn.is-active {
  background: var(--gradient-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(var(--ink-rgb), 0.2);
}

.panel[hidden] {
  display: none;
}

/* Карточки отзывов */

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

.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card img,
.card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-muted);
}

.card--photo .card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: none;
  background: linear-gradient(160deg, #1a2838 0%, #243447 100%);
  aspect-ratio: auto;
  min-height: 11rem;
  cursor: zoom-in;
}

.card--photo .card__media img {
  pointer-events: none;
  aspect-ratio: unset;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: contain;
  background: transparent;
}

/* Просмотр фото на весь экран */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(var(--ink-rgb), 0.94);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
  margin: 1rem 0 0;
  max-width: 40rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.lightbox__caption:empty {
  display: none;
}

.card p {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.card--empty .card__placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: rgba(var(--sky-rgb), 0.08);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Контакты */

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.contact {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--wine-rgb), 0.22);
}

.contact span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wine);
}

.contact strong {
  font-size: 1rem;
  color: var(--ink);
}

/* Подвал */

.footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer a {
  color: var(--wine);
  font-weight: 600;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--wine-deep);
}

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

  .hero__visual {
    min-height: auto;
  }

  .hero__showcases {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0.85rem;
  }

  .hero__showcases--single {
    padding: 0;
  }

  .hero__visual {
    max-height: min(72vh, 480px);
    margin-inline: auto;
    width: min(100%, 280px);
  }

  .hero__services {
    display: flex;
    flex-wrap: wrap;
  }

  .hero__stamp--prepay {
    bottom: 0.55rem;
    left: 0.55rem;
    font-size: 0.7rem;
  }

  .hero__showcase:last-child {
    margin-top: 0;
  }

  .hero__showcase:first-child,
  .hero__showcase:last-child {
    transform: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__cta {
    width: 100%;
  }

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

  .bg__doc--3 {
    display: none;
  }

  .bg__word--vu {
    display: none;
  }

  .bg__ambient {
    opacity: 0.06;
  }
}
