:root {
  color-scheme: dark;
  --bg: #0c2f2a; /* deep green from logo */
  --bg-soft: #123a33; /* softer green for panels */
  --text: #efe7d9; /* warm ivory for readable text */
  --muted: #b8ae98; /* muted warm beige for secondary text */
  --primary: #c9b174; /* gold accent from logo */
  --primary-strong: #a8843f; /* stronger gold */
  --accent: #6fbf9a; /* supporting mint/green */
  --border: rgba(255, 238, 210, 0.06);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(201, 177, 116, 0.06), transparent 26%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 5vw;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.brand-text {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.83rem;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(201, 177, 116, 0.42);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(201, 177, 116, 0.15), rgba(201, 177, 116, 0.06));
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(201, 177, 116, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(201, 177, 116, 0.24), rgba(201, 177, 116, 0.1));
  border-color: rgba(201, 177, 116, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 22px rgba(201, 177, 116, 0.14);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #04111b;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
}

.full {
  width: 100%;
}

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 238, 210, 0.12);
  border-radius: 50%;
  background: rgba(12, 47, 42, 0.9);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: rgba(201, 177, 116, 0.5);
}

.scroll-top span {
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-2px);
}

.hero {
   position: relative;
   display: grid;
   grid-template-columns: 1.3fr 0.9fr;
   gap: 36px;
   align-items: center;
   padding: 80px 5vw 60px;
   max-width: 1280px;
   margin: 0 auto;
   background-image: linear-gradient(rgba(12, 47, 42, 0.52), rgba(12, 47, 42, 0.7)), url('/hero-bg.jpg');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
   background-color: #0d2d2d;
   border-radius: 32px;
   overflow: hidden;
   border: 1px solid rgba(255, 238, 210, 0.1);
 }
 
 .hero::before {
   content: '';
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at top left, rgba(201, 177, 116, 0.18), transparent 35%);
   pointer-events: none;
 }
 
 .hero-content,
 .hero-card {
   position: relative;
 }
 
 .hero-content {
   z-index: 1;
 }
 
 .hero-card {
   z-index: 1;
 }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0 0 16px;
  line-height: 1.12;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-text {
   color: var(--text);
   font-size: 1rem;
}

.card p,
.steps p,
.faq-list p,
.contact-card p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-badges li {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.hero-card,
.contact-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.field span {
  color: var(--muted);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(6, 15, 28, 0.8);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(49, 196, 141, 0.35);
  border-color: var(--primary);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 5vw;
}

.stats article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.stats strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 5vw;
}

.section-alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reviews-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 5vw 40px;
}

.reviews-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover,
.section-link:focus-visible {
  text-decoration: underline;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.reviews-carousel::-webkit-scrollbar {
  height: 8px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: rgba(201, 177, 116, 0.38);
  border-radius: 999px;
}

.review-card {
  flex: 0 0 320px;
  display: block;
  padding: 22px 20px 18px;
  border: 1px solid rgba(201, 177, 116, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  scroll-snap-align: start;
}

.review-card:hover,
.review-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 177, 116, 0.42);
  box-shadow: 0 18px 35px rgba(201, 177, 116, 0.08);
}

.review-topline,
.review-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-topline {
  margin-bottom: 16px;
}

.review-source,
.review-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.review-date {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.review-stars {
  color: #f4c95d;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.review-author-row {
  margin-bottom: 12px;
  align-items: flex-start;
}

.review-author-row strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.review-author-row span {
  color: #f4c95d;
  font-size: 0.84rem;
  white-space: nowrap;
}

.review-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.review-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .reviews-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-card {
    flex-basis: 280px;
  }
}

.cards,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Tariffs section styles */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tariff-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.tariff-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 6px 0 4px;
}

.avg {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.includes {
  margin: 0 0 14px 18px;
  color: var(--muted);
}

.includes li {
  margin-bottom: 8px;
}

.apply-btn {
  width: 100%;
}

.card,
.steps article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.card h3,
.steps h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.steps article span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(49, 196, 141, 0.16);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  background: rgba(201, 177, 116, 0.08);
  box-shadow: 0 12px 28px rgba(201, 177, 116, 0.12);
}

.cert-preview {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 238, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card-landscape .cert-preview {
  aspect-ratio: 11 / 8.5;
}

.cert-card-landscape .cert-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: rotate(90deg) scale(1.08);
  transform-origin: center;
}

.cert-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cert-card p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
}

.case-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.case-number {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111, 191, 154, 0.12);
  border: 1px solid rgba(111, 191, 154, 0.2);
  color: #dff7ed;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-details {
  display: grid;
  gap: 12px;
}

.case-details p {
  margin: 0;
  color: var(--muted);
}

.case-details strong {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 10px 0 0;
}

.form-section {
  padding: 32px 0 88px;
  border-radius: 28px;
  overflow: hidden;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(201, 177, 116, 0.22);
  border-radius: 24px;
  background: rgba(10, 16, 24, 0.72);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.contact-copy {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(201, 177, 116, 0.18);
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(rgba(8, 12, 18, 0.52), rgba(8, 12, 18, 0.72)),
    url('/foto.png') center center / cover no-repeat;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.contact-copy > * {
  position: relative;
  z-index: 1;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, transform 180ms ease;
}

.contact-item:hover {
  border-color: rgba(201, 177, 116, 0.5);
  transform: translateY(-1px);
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.contact-value {
  color: var(--text);
  word-break: break-word;
  line-height: 1.45;
}

footer {
  margin-top: 60px;
  padding: 44px 5vw 32px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-section h4 {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 177, 116, 0.5);
  box-shadow: 0 8px 18px rgba(201, 177, 116, 0.12);
  filter: brightness(1.08);
}

.social-link.vk {
  background: linear-gradient(135deg, #1f5eff, #2d7bf9);
  color: #fff;
}

.social-link.yandex {
  background: linear-gradient(135deg, #ff5a36, #f5ab00);
  color: #fff;
}

.social-link.phone {
  background: rgba(201, 177, 116, 0.12);
  color: var(--primary);
}

.social-link.max {
  background: linear-gradient(135deg, #121826, #2d3645);
  color: #fff;
}

.brand-mark {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
}

.social-link.yandex .brand-mark {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.social-link.max .brand-mark {
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.social-link.phone svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link.max svg {
  width: 19px;
  height: 19px;
}

.footer-privacy {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-privacy__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-privacy__list li {
  display: inline-flex;
  align-items: center;
}

.footer-privacy__list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  font-size: 0.72rem;
  line-height: 1.5;
}

.footer-privacy__list a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.footer-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-disclaimer {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-disclaimer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  line-height: 1.7;
  text-align: justify;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 177, 116, 0.25);
  border-radius: 20px;
  background: rgba(12, 20, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-banner__button {
  flex-shrink: 0;
  min-width: 160px;
}

@media (max-width: 900px) {
  .hero,
  .contact-card,
  .cards,
  .tariffs,
  .steps,
  .stats,
  .practice-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 5vw 40px;
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar-inner {
    padding: 14px 5vw;
  }

  .nav {
    gap: 14px;
    font-size: 0.85rem;
  }

  .case-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-copy {
    min-height: 320px;
    background-position: center center;
    background-size: cover;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .cookie-banner__button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .desktop-cta {
    display: none;
  }

  .topbar-inner {
    gap: 8px;
    padding: 12px 16px;
  }

  .brand {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .brand-text {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .header-phone {
    width: 36px;
    height: 36px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
    background: rgba(10, 18, 17, 0.98);
    border-top: 1px solid var(--border);
  }

  .mobile-menu.is-open {
    max-height: 460px;
    opacity: 1;
    padding: 16px 0 18px;
  }

  .mobile-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-nav a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
  }

  .mobile-btn {
    width: 100%;
    margin-top: 6px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .topbar {
    justify-content: center;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .nav {
    gap: 10px 14px;
    font-size: 0.76rem;
  }

  .btn {
    width: 100%;
  }

  .topbar .btn {
    width: auto;
  }

  .hero {
    padding: 46px 16px 28px;
    border-radius: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges li {
    width: 100%;
    text-align: center;
  }

  .stats,
  .cards,
  .steps,
  .tariffs,
  .practice-grid,
  .certificates-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 16px;
  }

  .card,
  .steps article,
  .tariff-card,
  .case-card {
    padding: 18px;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-copy {
    min-height: 260px;
    padding: 18px;
    background-size: cover;
    background-position: center center;
  }

  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-item {
    padding: 12px 14px;
  }

  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-disclaimer p {
    text-align: left;
    font-size: 0.7rem;
  }
}
