*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Layout */

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: 1.9rem;
  margin: 0 0 16px;
}

.section p {
  line-height: 1.6;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Navigation */

.main-nav {
  margin-left: 32px;
}

.main-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: #111827;
}

.nav-link.is-active,
.nav-link:hover {
  border-bottom-color: #2563eb;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  font-size: 0.9rem;
}

.lang {
  font-weight: 500;
}

.lang.is-active {
  color: #2563eb;
}

.lang-separator {
  margin: 0 4px;
  color: #9ca3af;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #111827;
}

/* Hero */

.hero {
  position: relative;
  color: #ffffff;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Фон с картинкой */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/slider.webp");
  background-size: cover;
  background-position: center right;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

  .hero-bg {
    background-position: center 80%;
  }

/* Затемнение поверх картинки */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* плотный градиент слева направо */
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.85) 35%,
    rgba(15, 23, 42, 0.55) 65%,
    rgba(15, 23, 42, 0.15) 100%
  );
}

/* Контент всегда поверх */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 80px;
  max-width: 640px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 10px;
  opacity: 0.85;
}

.hero h1 {
  font-size: 2.4rem;
  max-width: 580px;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 20px;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.95rem;
}

.hero-benefits li::before {
  content: "• ";
  color: #f59e0b;
}

.hero-actions .btn {
  margin-right: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.42);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* About, Why, Services */

.section-about {
  background-color: #ffffff;
}

.section-about p {
  max-width: 720px;
}

.section-why {
  background-color: #f9fafb;
}

.section-services {
  background-color: #ffffff;
}

.feature-grid,
.service-grid,
.numbers-grid,
.testimonials-grid,
.contact-layout {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.feature-card,
.service-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

.feature-card h3,
.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

/* Steps */

.section-steps {
  background-color: #f9fafb;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
}

.steps-list li {
  position: relative;
  padding-left: 42px;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Numbers */

.section-numbers {
  background-color: #ffffff;
}

.numbers-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.number-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.number-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.number-label {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Testimonials */

.section-testimonials {
  background-color: #f9fafb;
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.testimonial-logo {
  margin-bottom: 12px;
  height: 40px;
  display: flex;
  align-items: center;
}

.testimonial-logo img {
  max-height: 32px;
  width: auto;
}

.testimonial-text {
  font-style: italic;
  margin: 0 0 10px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact */

.section-contact {
  background: #0f172a;
  color: #e5e7eb;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: flex-start;
}

.contact-intro p {
  max-width: 460px;
}

.contact-email a {
  color: #ffffff;
}

.contact-map {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1020;      /* на тёмном фоне не будет белой вспышки при загрузке */
  height: 260px;            /* высота карты на десктопе */
}

.contact-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 992px) {
  .contact-map {
    margin-top: 20px;
    height: 220px;
  }
}

.contact-form {
  background: #111827;
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.form-note {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 6px;
}

.field-hint {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.field-error {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #f97316; /* можно заменить на #ef4444 */
}

.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}

/* Honeypot */

.hp-row {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Form message */

.form-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

/* Footer */

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-left p {
  margin: 0 0 4px;
}

.footer-left a {
  color: #e5e7eb;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right a {
  color: #e5e7eb;
}

/* Responsive */

@media (max-width: 992px) {
  .header-inner {
    padding: 8px 16px;
  }

  .main-nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.15s ease, opacity 0.15s ease, visibility 0.15s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 8px 16px 12px;
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .header-right {
    gap: 12px;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: 56px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1.1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-benefits {
    font-size: 0.9rem;
  }

  .section {
    padding: 48px 0;
  }
}

/* Desktop-specific adjustments */
@media (min-width: 992px) {
  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  
  .grecaptcha-badge { 
    visibility: hidden; 
  }
}
