@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --primary: #385e75;
  --primary-dark: #2d4b5e;
  --yellow: #ffcf66;
  --yellow-dark: #f0c050;
  --danger: #b62320;
  --danger-hover: #9a1e1b;
  --text: #212529;
  --text-muted: #6c757d;
  --bg-light: #f4f6f8;
  --card-bg: #fff;
  --footer-bg: #1a2632;
  --footer-text: #c8d4de;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --shadow: 0 8px 32px rgba(56, 94, 117, 0.08);
  --container:  min(1200px, 100% - 2rem);
  --svg-yellow: #ffcf66;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

.link-black {
  color: var(--text);
}

.link-black:hover {
  color: var(--primary);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-danger:hover {
  background: var(--danger-hover);
  color: #fff;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
  padding: 0.625rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-yellow {
  background: var(--yellow-dark);
  color: var(--text);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-yellow:hover {
  background: var(--yellow);
}

.btn-primary-sm {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-top {
  display: block;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.audience-nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  flex: 1;
  justify-content: center;
}

.audience-link {
  position: relative;
  border: 0;
  background: none;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.audience-link:hover {
  color: var(--primary);
}

.audience-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.85rem;
  height: 3px;
  background: var(--danger);
  border-radius: 2px;
}

.header-top-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.header-phone {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  margin-right: 0.5rem;
}

.header-phone:hover {
  color: var(--primary);
}

.header-sep {
  color: #c5c9ce;
  font-weight: 300;
  margin: 0 0.15rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.header-nav-row {
  display: none;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo:hover {
  color: inherit;
}

.logo-mark {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}

.logo-word {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1b1d4c;
  line-height: 1;
}

.logo-word--lg {
  font-size: 2.5rem;
}

.logo-word--footer {
  color: #ffcf66;
  font-size: 1.25rem;
}

.about-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

@media (min-width: 992px) {
  .audience-nav,
  .header-top-actions,
  .header-nav-row {
    display: flex;
  }

  .header-top-inner .burger {
    display: none;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .nav-desktop {
    flex: 1;
  }

  .header-actions {
    margin-left: auto;
  }
}

.header-contacts {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.header-contacts a {
  color: var(--text);
}

.header-contacts a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.nav-desktop a:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: var(--bg-light);
  border-radius: 0.75rem;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu__nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.mobile-menu__contacts {
  margin-top: 2rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.mobile-menu__contacts a {
  color: var(--primary);
  font-weight: 600;
}

/* Hero */
.hero-wrap {
  padding: 1rem 0 2.5rem;
}

.hero-panel {
  position: relative;
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 420px;
}

.hero-panel .zigzag {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-panel .zigzag--left {
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 45%;
  display: none;
}

.hero-panel .zigzag--right {
  right: 0;
  top: 0;
  height: 100%;
  width: auto;
  display: none;
}

.hero-panel .zigzag--mob-top {
  top: 0;
  right: 0;
  width: 120px;
}

.hero-panel .zigzag--mob-bottom {
  bottom: 0;
  right: 0;
  width: 140px;
}

.hero-slider {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  padding: 2rem 1.25rem 3.5rem;
  animation: fadeIn 0.5s ease;
}

.hero-slide.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-text p {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  color: #333;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 85%;
  border-radius: var(--radius-lg);
}

.hero-bullets {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
}

.hero-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c5cdd4;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.hero-bullet.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #444;
}

.wave-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Cards */
.card-custom {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(56, 94, 117, 0.12);
}

.solution-card {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

.solution-card .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0.5rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 1rem;
}

.solution-card .icon-wrap svg {
  width: 48px;
  height: 48px;
  display: block;
}

.solution-card .icon-wrap img {
  width: 40px;
  height: 40px;
}

.solution-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Cases carousel */
.cases-section {
  padding-bottom: 3rem;
}

.cases-carousel-wrap {
  position: relative;
}

.cases-track-outer {
  overflow: hidden;
}

.cases-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.4s ease;
}

.case-card {
  flex: 0 0 calc(100% - 0.5rem);
  min-width: 0;
}

.case-card .card-custom {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card .case-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: var(--bg-light);
}

.case-card .case-body {
  padding: 1.25rem;
  flex: 1;
}

.case-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.case-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--primary);
  z-index: 2;
  transition: background 0.2s;
}

.carousel-arrow:hover {
  background: var(--bg-light);
}

.carousel-arrow--prev {
  left: -0.5rem;
}

.carousel-arrow--next {
  right: -0.5rem;
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Products */
.product-card {
  padding: 1.5rem;
}

.product-card .product-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.product-card .product-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}

.product-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.product-card .desc {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.product-card .more {
  font-size: 0.875rem;
  font-weight: 600;
}

.link-arrow {
  margin-left: 0.25rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.catalog-link {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

/* About */
.about-panel {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.25rem;
  margin-bottom: 3rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-text h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.about-text .tagline {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.about-text p {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #dde3e8;
}

.stat-num {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Ecosystem */
.eco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.eco-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.eco-item:hover {
  transform: translateX(4px);
}

.eco-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.eco-item span {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.link-footer {
  color: var(--footer-text);
  font-size: 0.875rem;
}

.footer-links a:hover,
.link-footer:hover {
  color: var(--yellow);
}

.footer-contacts {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-contacts a {
  color: #fff;
  font-weight: 600;
}

.footer-legal {
  font-size: 0.8125rem;
  line-height: 1.6;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-inner a {
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #fff;
  border-radius: var(--radius-xl);
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-overlay.is-open .modal-dialog {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.modal-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.modal-dialog .hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lead-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.lead-form .checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}

.lead-form .checkbox-row input {
  width: auto;
  margin-top: 0.2rem;
}

.lead-form .btn-danger {
  width: 100%;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-status.is-ok {
  color: var(--primary);
}

.form-status.is-error {
  color: var(--danger);
}

.form-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.form-success.is-shown {
  display: block;
}

.form-success p {
  font-weight: 600;
  color: var(--primary);
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.search-form input {
  flex: 1;
  border: 1px solid #dde3e8;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font: inherit;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-hit {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--bg-light);
  font-weight: 600;
}

.search-hit:hover {
  background: #e8eef2;
}

/* Responsive */
@media (min-width: 576px) {
  .case-card {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

@media (min-width: 768px) {
  .header-contacts {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero-slide {
    padding: 3rem 2.5rem 3.5rem;
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .hero-panel .zigzag--mob-top,
  .hero-panel .zigzag--mob-bottom {
    display: none;
  }

  .hero-panel .zigzag--left,
  .hero-panel .zigzag--right {
    display: block;
  }
}

@media (min-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .case-card {
    flex: 0 0 calc(33.333% - 0.833rem);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .carousel-arrow--prev {
    left: -1.25rem;
  }

  .carousel-arrow--next {
    right: -1.25rem;
  }
}

@media (min-width: 1200px) {
  .hero-slide {
    padding: 4rem 3.5rem 3.5rem;
  }
}