:root {
  --color-bg: #050816;
  --color-surface: #0f172a;
  --color-surface-soft: #111827;
  --color-primary: #f97316;
  --color-primary-soft: rgba(249, 115, 22, 0.15);
  --color-accent: #22c55e;
  --color-accent-soft: rgba(34, 197, 94, 0.18);
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-border: #1f2933;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 40%, #020617 100%);
  color: var(--color-text);
  line-height: 1.6;
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  max-width: 520px;
}

.section-header h2 {
  font-size: 2.1rem;
  margin: 0 0 0.6rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Section label badge */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--color-text-muted);
  margin-bottom: 0.7rem;
}

.section-why .section-label {
  border-color: rgba(249, 115, 22, 0.95);
  color: var(--color-primary);
}

.section-focus .section-label {
  border-color: rgba(56, 189, 248, 0.85);
  color: #7dd3fc;
}

.section-for-whom .section-label {
  border-color: rgba(196, 181, 253, 0.9);
  color: #c4b5fd;
}

.section-testimonials .section-label {
  border-color: rgba(251, 191, 36, 0.8);
  color: #facc15;
}

.section-highlights .section-label {
  border-color: rgba(34, 197, 94, 0.8);
  color: var(--color-accent);
}

.section-how .section-label {
  border-color: rgba(248, 113, 22, 0.7);
}

.section-contact .section-label {
  border-color: rgba(59, 130, 246, 0.7);
  color: #93c5fd;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.92));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 10%, #f97316, #7c2d12);
  color: #fff;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.7);
}

.nav-cta {
  padding-inline: 1rem;
  border-radius: 999px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: radial-gradient(circle at 30% 0, #f97316, #ea580c);
  color: #0b1120;
  box-shadow: 0 14px 35px rgba(248, 113, 22, 0.6);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(248, 113, 22, 0.75);
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: rgba(15, 23, 42, 1);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: rgba(249, 115, 22, 0.7);
  color: #f9fafb;
}

/* Hero */

.hero {
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.95;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(248, 113, 22, 0.16), transparent 60%);
  top: -80px;
  right: -120px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 60%);
  bottom: -140px;
  left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
}

.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 1.7rem;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta-item a {
  color: inherit;
  text-decoration: none;
}

.hero-meta-item a:hover {
  text-decoration: underline;
}

/* Hero media */

.hero-media {
  position: relative;
}

.hero-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-image-main img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image-secondary {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 55%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-subtle);
}

.hero-image-secondary img {
  width: 100%;
  display: block;
}

.hero-badge {
  position: absolute;
  top: -8%;
  left: -5%;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-badge i {
  color: #facc15;
}

/* Grid helpers */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, rgba(248, 113, 22, 0.13), var(--color-surface));
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.section-why .card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(to right, rgba(248, 113, 22, 0.9), rgba(56, 189, 248, 0.8));
}

.card-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.6rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Focus section – с фоновым изображением */

.section-focus {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98)),
    url("./images/bg-focus.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-focus::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%);
  pointer-events: none;
}

.section-focus > .container {
  position: relative;
  z-index: 1;
}

.focus-item {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.4);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.focus-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.focus-content {
  padding: 1.3rem 1.4rem 1.4rem;
}

.focus-content h3 {
  margin: 0 0 0.5rem;
}

.focus-content p {
  margin: 0 0 0.7rem;
  color: var(--color-text-muted);
}

.focus-content ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* For whom */

.section-for-whom .tag-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  position: relative;
  overflow: hidden;
}

.section-for-whom .tag-card::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  top: 1.1rem;
  left: 1.1rem;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(248, 113, 22, 0.9);
}

.section-for-whom .tag-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  padding-left: 1.1rem;
}

.section-for-whom .tag-card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Testimonials – с фоновым изображением */

.section-testimonials {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 1)),
    url("images/bg-testimonials.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-testimonials > .container {
  position: relative;
  z-index: 1;
}

.section-testimonials .section-header::after {
  content: "“";
  position: absolute;
  right: -0.2rem;
  top: -0.9rem;
  font-size: 3.2rem;
  color: rgba(148, 163, 184, 0.18);
  font-family: Georgia, "Times New Roman", serif;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.94);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset-inline: 0.8rem;
  bottom: 0.6rem;
  height: 1px;
  background: linear-gradient(to right, rgba(248, 113, 22, 0.4), rgba(34, 197, 94, 0.5));
  opacity: 0.7;
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial-name {
  display: block;
  font-weight: 600;
}

.testimonial-role {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* NEW: Highlights section */

.section-highlights {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), #020617 70%);
}

.highlights-grid {
  align-items: stretch;
}

.highlight-card {
  position: relative;
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(248, 113, 22, 0.16), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.highlight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.highlight-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
}

.highlight-tag {
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text-muted);
}

.highlight-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.6rem;
}

.highlight-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.highlight-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Steps */

.section-how .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
}

.section-how .steps::before {
  content: "";
  position: absolute;
  top: 1.9rem;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: linear-gradient(to right, rgba(248, 113, 22, 0.6), rgba(34, 197, 94, 0.6));
  opacity: 0.6;
  z-index: 0;
}

.step {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: relative;
  z-index: 1;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Contact */

.section-contact {
  padding-bottom: 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  position: relative;
}

.section-contact .contact-grid::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(248, 113, 22, 0.85), rgba(34, 197, 94, 0.8));
  opacity: 0.95;
}

.contact-info h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.contact-info p {
  margin-top: 0;
  margin-bottom: 1.3rem;
  color: var(--color-text-muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  font-size: 1.2rem;
}

.social-links a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-links a:hover {
  border-color: var(--color-primary);
  color: #f9fafb;
}

/* Contact form */

.contact-form-wrapper {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.7rem 1.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.3rem;
}

label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

input,
select,
textarea {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.65rem 0.9rem;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  border-radius: 1rem;
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(248, 113, 22, 0.4);
  background: rgba(15, 23, 42, 1);
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.form-note a {
  color: var(--color-primary);
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

.form-success {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
  margin-top: 1rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 2.3rem 0 1.3rem;
}

.footer-col h3,
.footer-col h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.footer-col p {
  margin: 0;
  color: var(--color-text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 0.8rem 0 1.2rem;
}

.footer-bottom-inner {
  font-size: 0.83rem;
  color: var(--color-text-muted);
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 60;
  max-width: 540px;
  margin-inline: auto;
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-banner--visible {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner__content {
  padding: 1.35rem 1.4rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__text h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr);
  }
  .hero-media {
    order: -1;
  }
  .hero {
    padding-top: 3.3rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-how .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-how .steps::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-contact .contact-grid::before {
    display: none;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.nav-open {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 0.8rem;
  }

  .nav-link {
    padding: 0.5rem 0.75rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-how .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-banner__content {
    padding: 1.1rem 1.1rem 1.15rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 2rem, 100%);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === БАЗОВОЕ ОФОРМЛЕНИЕ ХЕДЕРА (десктоп) === */
/* Если что-то похожее уже есть — можешь оставить своё, главное не трогать @media ниже */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #020617; /* тёмный фон хедера */
  color: #f9fafb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  position: relative; /* чтобы навигация в моб.режиме позиционировалась относительно этого блока */
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #022c22;
}

.logo-text {
  letter-spacing: 0.03em;
}

/* бургер-кнопка по умолчанию (десктоп) */
.menu-toggle {
  display: none; /* на десктопе скрыта */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.2rem;
}

/* можно чуть визуально нажимаемым сделать */
.menu-toggle--active {
  background: rgba(148, 163, 184, 0.15);
}

/* десктопная навигация */
.main-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 0.98rem;
  color: #e5e7eb;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: #bbf7d0;
}

/* кнопка в меню */
.nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
}

.nav-cta:hover {
  background: #16a34a;
  color: #e5e7eb;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ МЕНЮ === */
@media (max-width: 960px) {
  .header-inner {
    gap: 0.75rem;
  }

  /* показываем бургер на мобилке */
  .menu-toggle {
    display: inline-flex;
  }

  /* навигацию прячем и превращаем в выпадающую панель */
  .main-nav {
    position: absolute;
    top: 100%;      /* сразу под хедером */
    right: 0;
    left: 0;
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.75rem 1.25rem 1rem;
    display: none;  /* стартово скрыта — скрипт будет менять display */
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.4rem 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
}
/* Бургер полностью выключаем на всех экранах */
.menu-toggle {
  display: none !important;
}

/* Десктоп: меню справа, как обычно */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* горизонтальное меню на больших экранах */
.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Мобильная версия: логотип сверху, меню — колонкой ниже */
@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    width: 100%;
    display: block !important; /* всегда видно, без скриптов */
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-link {
    width: 100%;
    padding: 0.35rem 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
}
/* === Попап успешной отправки формы === */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.popup-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  max-width: 420px;
  width: 90%;
  background: #020617;
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  color: #e5e7eb;
}

.popup-box h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.popup-box p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.4rem;
  cursor: pointer;
}

.popup-close:hover {
  color: #f9fafb;
}
