/* =========================================================
   МедВыкуп24 — стили сайта
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #071a2e;
  --navy-900: #0a2540;
  --navy-800: #123863;
  --navy-700: #1a4a82;
  --blue-600: #1868db;
  --blue-500: #2f80ed;
  --blue-400: #57a6f2;
  --sky-100: #eaf4ff;
  --sky-50: #f4f9ff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e2e7ef;
  --gray-400: #9aa7b8;
  --gray-500: #6b7a8d;
  --gray-700: #3b4a5e;
  --gray-900: #101c2c;
  --white: #ffffff;
  --green-500: #17a866;
  --green-100: #e6f8ef;
  --whatsapp: #25d366;
  --max-brand: #6c5ce7;

  --font-main: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 12px 28px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);
  --shadow-blue: 0 14px 30px rgba(24, 104, 219, 0.28);

  --container-w: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

svg {
  display: block;
}

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 10000;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  color: var(--navy-900);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--sky-100);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.05rem;
  color: var(--gray-500);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(56px, 8vw, 108px);
}

.section--tint {
  background: var(--gray-50);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, 0.85);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(24, 104, 219, 0.36);
}

.btn--primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #2fdc7e, var(--whatsapp));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.32);
}

.btn--whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(37, 211, 102, 0.4);
}

.btn--max {
  background: linear-gradient(135deg, #8478f0, var(--max-brand));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(108, 92, 231, 0.32);
}

.btn--max:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(108, 92, 231, 0.4);
}

.btn--ghost {
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--gray-200);
}

.btn--ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--on-navy {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn--on-navy:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.preloader__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.preloader__ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--blue-400);
  animation: spin 0.9s linear infinite;
}

.preloader__mark span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(10, 37, 64, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
}

.logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.logo__icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-700);
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.25s var(--ease);
}

.nav__list a:hover {
  color: var(--navy-900);
}

.nav__list a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__max-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--max-brand);
  flex-shrink: 0;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.header__max-btn:hover {
  background: rgba(108, 92, 231, 0.16);
  transform: translateY(-2px);
}

.header__max-btn svg {
  width: 20px;
  height: 20px;
}

.nav__cta-row {
  display: none;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__phone svg {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 90px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 78%);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  z-index: 0;
}

.hero__blob--1 {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle, var(--sky-100) 0%, rgba(234, 244, 255, 0) 70%);
}

.hero__blob--2 {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, var(--green-100) 0%, rgba(230, 248, 239, 0) 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__content .eyebrow {
  margin-bottom: 20px;
}

.hero__content h1 {
  margin-bottom: 20px;
}

.hero__content h1 .accent {
  background: linear-gradient(120deg, var(--blue-600), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--gray-500);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.hero__call-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy-900);
}

.hero__call-link .icon-circle {
  width: 44px;
  height: 44px;
}

.hero__call-link small {
  display: block;
  font-weight: 500;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.hero__badges svg {
  width: 20px;
  height: 20px;
  color: var(--green-500);
  flex-shrink: 0;
}

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
}

.hero__stats dt {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--blue-600), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.hero__stats dd {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.hero__media {
  position: relative;
}

.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 37, 64, 0.35), rgba(10, 37, 64, 0) 45%);
}

.hero__float-card {
  position: absolute;
  left: -32px;
  bottom: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatY 5s ease-in-out infinite;
  z-index: 2;
}

.hero__float-card--top {
  left: auto;
  right: -24px;
  top: 40px;
  bottom: auto;
  animation-delay: 1.2s;
}

.hero__float-card strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.05rem;
}

.hero__float-card span {
  font-size: 0.82rem;
  color: var(--gray-500);
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sky-100);
  color: var(--blue-600);
  flex-shrink: 0;
  line-height: 0;
  padding: 0;
}

.icon-circle svg {
  display: block;
  width: 26px;
  height: 26px;
}

.icon-circle--green {
  background: var(--green-100);
  color: var(--green-500);
}

/* ---------- Advantages ---------- */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card .icon-circle {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky-100), var(--white));
  transition: transform 0.35s var(--ease);
}

.card:hover .icon-circle {
  transform: scale(1.08) rotate(-4deg);
}

.card .icon-circle svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--gray-500);
  font-size: 0.96rem;
}

/* ---------- Process ---------- */
.process__track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.process__track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gray-200) 0 10px, transparent 10px 18px);
  z-index: 0;
}

.process__step {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process__num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--sky-100);
  color: var(--blue-600);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.process__step:hover .process__num {
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  color: var(--white);
  transform: scale(1.08);
  border-color: transparent;
}

.process__step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.process__step p {
  font-size: 0.92rem;
  color: var(--gray-500);
}

/* ---------- Categories ---------- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.cat-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cat-card .icon-circle {
  background: linear-gradient(135deg, var(--green-100), var(--sky-100));
  color: var(--green-500);
}

.cat-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.cat-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.categories__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--sky-100);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.categories__note p {
  font-weight: 600;
  color: var(--navy-900);
  max-width: 520px;
}

.categories__note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Why us ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.why__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
}

.why__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why__stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(10, 37, 64, 0.72);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--white);
  display: flex;
  gap: 14px;
  align-items: center;
}

.why__stat .icon-circle {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.why__stat strong {
  display: block;
  font-size: 1rem;
}

.why__stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.why__list {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.why__item {
  display: flex;
  gap: 16px;
}

.why__item .icon-circle {
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  color: var(--white);
}

.why__item h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.why__item p {
  font-size: 0.94rem;
  color: var(--gray-500);
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq__cta {
  max-width: 560px;
  margin: 48px auto 0;
  text-align: center;
  padding: 36px;
  background: var(--sky-100);
  border-radius: var(--radius-lg);
}

.faq__cta h3 {
  margin-bottom: 8px;
}

.faq__cta p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq__item.is-open {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}

.faq__plus {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.faq__plus svg {
  width: 16px;
  height: 16px;
}

.faq__item.is-open .faq__plus {
  transform: rotate(135deg);
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  color: var(--white);
}

.faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq__item.is-open .faq__a-wrap {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a-inner p {
  padding: 0 26px 24px;
  color: var(--gray-500);
  font-size: 0.96rem;
}

/* ---------- Reviews ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  color: #ffb020;
}

.review-card__stars svg {
  width: 17px;
  height: 17px;
}

.review-card__text {
  font-size: 0.96rem;
  color: var(--gray-700);
  flex-grow: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.review-card__author strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.92rem;
}

.review-card__author span {
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* ---------- Contacts ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.contact-card .icon-circle {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--blue-400);
  margin-bottom: 14px;
}

.contact-card .icon-circle svg {
  width: 28px;
  height: 28px;
}

.contact-card span {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.contact-card a,
.contact-card p {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
}

.contacts__cta {
  text-align: center;
}

.contacts__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contacts__cta p {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 18px;
  font-size: 0.92rem;
}

/* ---------- Extra info ---------- */
.extra-info {
  border-top: 1px solid var(--gray-100);
}

.extra-info__box {
  max-width: 820px;
  margin-inline: auto;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  color: var(--gray-700);
  font-size: 0.98rem;
  line-height: 1.7;
}

.extra-info__box h3 {
  margin-bottom: 16px;
}

.extra-info__box h4 {
  margin-top: 30px;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.extra-info__box p {
  color: var(--gray-700);
}

.extra-info__box p + p {
  margin-top: 14px;
}

.extra-info__box ol {
  padding-left: 22px;
  display: grid;
  gap: 14px;
  margin: 4px 0 4px;
}

.extra-info__box ol li::marker {
  color: var(--blue-600);
  font-weight: 700;
}

.extra-info__box strong {
  color: var(--navy-900);
}

/* ---------- Apply form ---------- */
.apply-form {
  max-width: 760px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}

.apply-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-900);
  font-size: 0.96rem;
  resize: vertical;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-400);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.form-field input.is-invalid {
  border-color: #e0455b;
  background: var(--white);
}

.form-field__error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e0455b;
}

.apply-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--gray-500);
  cursor: pointer;
}

.apply-form__consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.apply-form__consent a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
}

.apply-form button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.apply-form__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--green-500);
  font-weight: 600;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  background: var(--navy-950);
  padding: 18px 24px;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__inner {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
  max-width: 720px;
}

.cookie-banner__inner a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-banner .btn {
  padding: 11px 24px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  padding-top: 64px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.92rem;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer__social a:hover {
  background: var(--blue-600);
  transform: translateY(-3px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer__links {
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
}

.footer__links a {
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 20px;
  font-size: 0.82rem;
}

.footer__legal a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  font-size: 0.82rem;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ---------- Fixed action buttons ---------- */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.fab:hover {
  transform: scale(1.08);
}

.fab svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.fab--whatsapp {
  background: var(--whatsapp);
  animation: pulse 2.6s ease-in-out infinite;
}

.fab--call {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  width: 52px;
  height: 52px;
}

.fab--max {
  background: linear-gradient(135deg, #8478f0, var(--max-brand));
  width: 52px;
  height: 52px;
}

.fab--top {
  background: var(--navy-900);
  width: 46px;
  height: 46px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.fab--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab--top svg {
  width: 20px;
  height: 20px;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), var(--shadow-lg);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), var(--shadow-lg);
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.stagger > *:nth-child(1) {
  transition-delay: 0.03s;
}
.stagger > *:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger > *:nth-child(3) {
  transition-delay: 0.17s;
}
.stagger > *:nth-child(4) {
  transition-delay: 0.24s;
}
.stagger > *:nth-child(5) {
  transition-delay: 0.31s;
}
.stagger > *:nth-child(6) {
  transition-delay: 0.38s;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: -1;
    max-width: 440px;
    margin-inline: auto;
  }

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

  .why__photo {
    max-width: 440px;
    margin-inline: auto;
  }

  .advantages__grid,
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .process__track {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

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

@media (max-width: 860px) {
  .nav,
  .header__phone,
  .header__actions .btn--primary,
  .header__max-btn {
    display: none;
  }

  .site-header.nav-open-header .nav {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 36px 24px;
    gap: 28px;
  }

  body.nav-open .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  body.nav-open .nav__list a {
    font-size: 1.15rem;
  }

  body.nav-open .nav__cta-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
  }

  body.nav-open .nav__cta-row .nav__cta {
    flex: 1;
  }

  .process__track {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process__track::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }

  .advantages__grid,
  .categories__grid,
  .reviews__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .hero__media {
    display: none;
  }

  .hero__float-card {
    left: 12px;
    bottom: 16px;
    padding: 14px 16px;
  }

  .hero__float-card--top {
    right: 12px;
    top: 16px;
  }

  .cat-card {
    flex-direction: column;
  }

  .categories__note {
    flex-direction: column;
    align-items: flex-start;
  }

  .fab-stack {
    right: 14px;
    bottom: 14px;
  }

  .fab--whatsapp {
    width: 52px;
    height: 52px;
  }

  .fab--call {
    width: 46px;
    height: 46px;
  }

  .fab--max {
    width: 46px;
    height: 46px;
  }

  .apply-form__grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .hero__badges {
    justify-content: center;
  }
}
