:root {
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mobile-menu-max-height: 300px;
  --z-nav: 1001;
  --mobile-menu-width: 280px;
  --primary-green: #009c72;
  --dark-green: #003527;
  --border-color: #a9bac8;
  --spacing-xs: 1rem;
  --spacing-sm: 1.25rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 0;
}

.header-outer {
  width: 100%;
  background-color: #ffffff;
  /* position: fixed; */
  top: 0; /* ✅ top: 0 */
  position: sticky;
  z-index: 1000;
}

.header_container {
  width: 100%;
  background-color: #ffffff;

  padding: 0 16px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 68px;
}

/* Логотип слева */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-width: 148px;
}

/* Desktop Nav - ПРАВАЯ граница */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 60px);
}

.nav a {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #003527;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus {
  color: #009c72;
}
/* burger */
.menu-toggle {
  display: none; /* Скрываем на десктопе */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  cursor: pointer;
  gap: 4px;
  z-index: 1001;
  background: transparent;
  border: none;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #003527; /* Цвет иконки */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  position: absolute;
}

.menu-toggle span:nth-child(1) {
  top: 8px;
  width: 100%;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.menu-toggle span:nth-child(3) {
  bottom: 8px;
  width: 100%;
}

/* Анимация в крестик */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
  top: 50%;
  margin-top: -1px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
  bottom: 50%;
  margin-bottom: -1px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: var(--mobile-menu-width);
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 6vw, 32px);
}

.mobile-nav a {
  font-size: clamp(18px, 5vw, 24px);
  color: #000000;
  padding: 12px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #009c72;
  padding-left: 8px;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 246, 250, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1;
}

.menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* ➕ НОВАЯ HERO SECTION */
.hero {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
  padding: 40px 16px 20px;
  width: 100%;
  min-height: 600px;
}

.hero-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 80px;
  height: 100%;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw + 12px, 64px);
  color: #334155;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-title-line,
.hero-title-line-break {
  display: block;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 0.6vw + 8px, 15px);
  color: #64748b;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
}

.hero-subtitle-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-subtitle-item--strong {
  font-weight: 600;
  border-color: #009c72;
  background: #009c72;
  color: #ffffff;
}

@supports (text-wrap: balance) {
  .hero-title {
    text-wrap: balance;
  }
  .hero-subtitle {
    text-wrap: pretty;
  }
}

.hero-image {
  flex: 0 1 60%;
  display: flex;
  position: relative;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-top: -40px;
}

.hero-image img {
  width: 120%;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

/* Partners-section */

.partners-section {
  padding: 0;
  background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
  overflow: hidden;
  margin-top: 0;
}

.partners-container {
  padding: 0px 16px;
  padding-bottom: 0px;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: scroll-left 110s linear infinite;
}

.partner-logo {
  flex: 0 0 220px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ✅ Анимация карусели */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* <!-- ➕ About Section -- >  */

.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 16px;
  background-color: #f6f6fb;
  margin: 0 auto;
}

.about-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;

  gap: 180px;
}

.about-block {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 170px;
}
.about-block:last-child {
  margin-bottom: 0;
}
.about-block-left {
  flex-direction: row;
}
/* Зеркальное отображение для второго блока */
.about-block-right {
  flex-direction: row-reverse;
}

.about-block-right .about-content {
  order: 2;
}

.about-block-right .about-image {
  order: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  order: 2;
}

.about-icon-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 1rem;
}

.checkmark-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkmark-icon::after {
  content: "✓";
  color: white;
  font-size: 25px;
  font-weight: 900;
}

.about-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--dark-green);
  margin: 0;
  line-height: 1.2;
}

.about-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.about-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 245px;
  height: 43px;
  background: #5359e8;
  color: white;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  border-radius: 33px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.about-button:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

.about-image {
  width: 100%;
  order: 1;
  overflow: hidden;
}

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

/* <!-- ➕ Преимущества Section --> */
.advantages-section {
  padding: 120px 16px;
  background-color: #009c72;
  width: 100vw;
  margin: 0 auto;
}

.advantages-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.advantages-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: white;
  text-align: center;
  margin: 0 0 40px 0;
  line-height: 1.2;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;

  justify-content: center;
  max-width: 1200px;
}

.advantage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 322px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-family: "Inter", sans-serif;
  min-height: 0;
  font-weight: 700;
  font-size: 24px;
  color: #003527;
  margin: 0;
  text-align: left;
  line-height: 1.3;
  order: 2;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
  order: 1;
  align-self: center;
}

.card-icon img {
  max-width: 50px;
  object-fit: contain;
}

.card-text {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  order: 3;
}

/* <!-- ➕ Form Section --> */

.form-section {
  padding: 80px 16px 120px;
  background-color: #f6f6fb;
  width: 100vw;

  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.form-header {
  text-align: center;
}

.form-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: #003527;
  margin: 0 0 18px 0;
  line-height: 1.2;
}

.form-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: rgba(0, 53, 39, 0.79);
  margin: 0 0 18px 0;
  line-height: 1.4;
}

.form-main {
  width: 100%;
  max-width: 613px;
  padding: 34px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 53, 39, 0.8);
  margin-bottom: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 20px 160px 20px 30px;
  border: 2px solid #d9d9d9;
  border-radius: 29px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #003527;
  background: white;
  transition: border-color 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(0, 53, 39, 0.43);
}
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 24px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.form-group select:invalid {
  color: rgba(0, 53, 39, 0.8);
}

.form-group select option[value=""] {
  color: rgba(0, 53, 39, 0.8);
}

.form-group select:focus {
  outline: none;
  border-color: #009c72;
  box-shadow: 0 0 0 3px rgba(0, 156, 114, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 156, 114, 0.1);
}

.form-group textarea {
  height: 118px;
  resize: vertical;
  padding: 18px;
}
.form-group {
  position: relative;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border: 1px solid #ff4d4d;
}
.field-error {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff4d4d;
  font-size: 12px;
  padding-top: 30px;
  pointer-events: none;
  white-space: nowrap;
}
.form-group.has-error .field-error {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease;
}
.form-checkbox.error {
  border: 1px solid #ff4d4d;
  border-radius: 8px;
  padding: 8px 10px;
}
.checkbox-error {
  display: none;
  color: #ff4d4d;
  font-size: 12px;
  margin-left: 8px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary-green);
}

.form-checkbox label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(0, 53, 39, 0.43);
  line-height: 1.5;
}
.form-checkbox a {
  color: rgba(0, 53, 39, 0.43);
  text-decoration: underline;
}

.form-button {
  width: 241px;
  height: 43px;
  background: #009c72;
  color: white;
  border: none;
  border-radius: 33px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}
.form-button:disabled {
  background: #6cbfa8;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.form-button-error {
  display: none;
  margin-top: 8px;
  color: #ff4d4d;
  font-size: 12px;
  text-align: center;
}
.form-button-error.is-visible {
  display: block;
}

.form-button:hover {
  background: #007955;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 156, 114, 0.3);
}

.form-button:active {
  transform: translateY(0);
}

/* <!-- ➕ Форма Section -- >  */
.footer {
  background: #009c72;
  padding: 80px 16px 40px 16px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cols {
  display: flex;
  gap: 110px;
  margin-bottom: 40px;
}

.footer-col {
  color: white;
  font-family: "Inter", sans-serif;
  flex: 1;
}

.footer-logo {
  margin: 0 0 12px;
}

.footer-col h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.footer-col p {
  font-size: 16px;
  margin: 0 0 12px 0;
  color: white;
  opacity: 0.9;
}
.footer-legal-policy,
.footer-legal-terms {
  display: block;
  font-size: 16px;
  margin: 0 0 12px 0;
  color: white;
  opacity: 0.9;
  text-decoration: none;
}
.footer-legal-policy:hover,
.footer-legal-terms:hover {
  text-decoration: underline;
}

.footer-address-line-1,
.footer-address-line-2,
.footer-address-line-3,
.footer-address-line-4 {
  margin-top: 12px;
}
.footer-address-line-4 a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
}
.footer-address-line-4 a:hover {
  text-decoration: underline;
}
.comment {
  padding: 45px 0;
}

.footer-comment {
  font-size: 16px;
  margin: 0 0 12px 0;
  color: white;
  opacity: 0.9;
}

.footer-bottom {
  background: #009c72;
  padding: 20px 0;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-line {
  height: 1px;
  background: #dddddd;
  margin-bottom: 20px;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #dddddd;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding-right: 120px;
}

.footer-legal-copy,
.footer-legal-policy,
.footer-legal-terms {
  margin-top: 12px;
}

.footer-links a {
  color: #dddddd;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}
.copyright {
  margin-top: 0;
  height: 32px;
  margin-bottom: 20px;
}
.copyright-text {
  display: flex;
  justify-content: flex-start;
  padding-left: 94px;
}
.copyright-text2 {
  display: flex;
  justify-content: flex-end;
  padding-right: 180px;
}
@media (max-width: 1025px) {
  .header-inner {
    max-width: none;
    width: 100%;
    padding-left: 30px;
    padding-right: 20px;
  }
  .hero {
    padding: 30px 30px 20px 30px;
  }
  .hero-container {
    gap: 60px;
  }
  .hero-content {
    gap: 24px;
  }
  .hero-title {
    font-size: clamp(32px, 3.5vw + 10px, 52px);
  }
  .hero-subtitle {
    font-size: clamp(13px, 1.2vw + 10px, 16px);
    flex-wrap: wrap;
  }
  .hero-image {
    margin-top: -20px;
  }
  .hero-image img {
    width: 110%;
  }
  .header_container {
    width: 100%;
    padding: 0;
  }
  .header-inner {
    max-width: none;
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }
  .partner-logo {
    height: 70px;
  }
  .about-section {
    padding: 80px 30px;
  }
  .about-container {
    gap: 120px;
  }
  .advantages-section {
    padding: 80px 30px;
  }
  .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
  .card-title {
    font-size: 22px;
  }
  .advantage-card {
    grid-template-rows: auto 120px auto 1fr;
    gap: 15px 0;
  }
  .card-text {
    font-size: 16px;
  }
  .footer {
    padding: 80px 50px 40px 80px;
  }

  .copyright-text2 {
    display: flex;
    justify-content: flex-end;
    padding-right: 19px;
  }
}
@media (max-width: 769px) {
  .hero {
    padding: 30px 40px 20px 40px;
  }

  .hero-title {
    font-size: clamp(28px, 3.6vw + 6px, 42px);
  }

  .hero-content {
    gap: 20px;
  }
  
  .hero-subtitle {
    flex-wrap: wrap;
    font-size: clamp(12px, 1vw + 8px, 15px);
  }

  .hero-image {
    flex: 0 0 350px;
    height: 100%;
    display: flex;
    position: relative;
    bottom: 40px;
    right: -18px;
    z-index: 1;
    margin-top: 0;
    transform: rotate(90deg);
    object-fit: cover;
  }

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

  .partners-section {
    padding: 0;
  }

  .partner-logo {
    flex: 0 0 200px;
    height: 58px;
  }
  .partners-container {
    padding: 0 16px;
    padding-bottom: 0px;
  }

  .about-section {
    padding: 80px 40px;
  }
  .about-container {
    gap: 80px;
  }
  .about-title {
    font-size: 25px;
  }

  /* advantages */
  .advantages-section {
    padding: 40px 40px;
  }
  .advantages-title {
    margin: 0 0 30px 0;
    font-size: 25px;
  }
  .advantage-card {
    grid-template-rows: auto 50px auto 1fr;
    padding: 20px;
    gap: 10px 0;
  }
  .card-title {
    font-size: 18px;
  }
  .card-text {
    font-size: 14px;
  }

  .form-section {
    padding: 40px 40px 80px;
  }
  .form-title {
    font-size: 25px;
  }
  .form-subtitle {
    font-size: 18px;
  }
  .form-main {
    max-width: 500px;
  }

  .footer {
    padding: 40px 30px 30px 40px;
    display: flex;
  }

  .footer-cols {
    gap: 84px;
  }
  .footer-col p {
    font-size: 14px;
  }
  .comment {
    padding: 45px 0;
  }
  .footer-comment {
    font-size: 14px;
  }
  .comment {
    padding: 45px 0 10px;
  }
  .footer-bottom-content {
    padding-right: 0;
  }
  .copyright-text {
    display: flex;
    justify-content: flex-end;
    padding-right: 25px;
  }
  .footer-comment {
    font-size: 12px;
  }
  .footer-links a {
    color: #dddddd;
    text-decoration: none;
    margin: 0 10px;
    font-size: 12px;
  }
  .copyright-text {
    padding-left: 0;
    justify-content: flex-start;
  }
}

/* .................................... */
@media (max-width: 426px) {
  .nav {
    display: none;
  }
  /* Показываем бургер на мобилке */
  .menu-toggle {
    display: flex;
    width: 26px;
    height: 26px;
    outline: none;
  }

  .menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background-color: #003527;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 5px;
    transform-origin: center;
  }

  /* Позиции полосок */
  .menu-toggle span:nth-child(1) {
    top: 6px;
  }
  .menu-toggle span:nth-child(2) {
    top: 12px;
  }
  .menu-toggle span:nth-child(3) {
    top: 18px;
  }

  /* Анимация в состояние "крестик" */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
    top: 12px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
    top: 12px;
  }

  /* Исправляем мобильное меню */
  .mobile-menu {
    position: fixed;
    top: 66px;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 200px;
    background-color: #f1ecff;

    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 40px;
    overflow-y: auto;
  }

  .mobile-menu[aria-hidden="false"] {
    transform: translateX(0);
  }

  body:has(.mobile-menu[aria-hidden="false"]) .header-outer,
  body:has(.mobile-menu[aria-hidden="false"]) .header_container {
    background-color: #f5f1ff;
  }

  .mobile-nav a {
    font-size: 18px;
    color: #003527;
    padding: 12px 0;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    color: #009c72;
  }

  /* Hero */
  .hero {
    padding: 20px 0 20px 0;
    min-height: auto;
    overflow-x: hidden;
  }
  .hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 16px 0 16px;
    min-height: auto;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(28px, 5.2vw + 2px, 36px);
  }
  
  .hero-content {
    gap: 20px;
    width: 100%;
    padding-right: 0;
  }
  
  .hero-subtitle {
    font-size: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .hero-subtitle-item {
    padding: 8px 14px;
  }
  
  .hero-image {
    flex: 0 0 auto;
    width: 100vw;
    height: auto;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    align-self: stretch;
    overflow: hidden;
    height: 39vh;
  }
  .hero-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    margin-left: 0;
    transform: scale(1.18);
    transform-origin: center top;
  }

  /* About — ключевая секция */

  .about-section {
    padding: 10px 30px 40px 30px;
  }
  .about-container {
    gap: 70px;
  }
  .about-block,
  .about-block-right {
    flex-direction: column;
    gap: 24px;
  }
  .about-content,
  .about-image {
    width: 100%;
  }
  .about-content {
    gap: 1.5rem;
  }
  .about-image {
    max-width: 162px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .checkmark-icon {
    width: 20px;
    height: 20px;
  }
  .checkmark-icon::after {
    content: "✓";
    color: white;
    font-size: 10px;
    font-weight: 900;
  }
  .about-title {
    font-size: 24px;
  }
  .about-subtitle {
    font-size: 16px;
  }
  .about-button {
    width: 100%;
    max-width: 245px;
    align-self: center;
  }
  .advantages-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }
  .advantages-grid {
    gap: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
  }
  .advantage-card {
    gap: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 239px;
  }

  .card-title {
    margin: 0;
  }
  .card-icon {
    display: flex;
    justify-self: center;
    margin: 0 auto;
    flex-shrink: 0;
  }
  .form-title {
    font-size: 20px;
  }
  .form-subtitle {
    font-size: 16px;
  }
  .form-group input,
  .form-group select {
    padding: 20px 30px;
  }
  .form-group.has-error {
    padding-bottom: 0;
  }
  .form-group .field-error {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 11px;
  }

  .footer {
    padding: 40px 30px 60px 30px;
  }
  .footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "policy"
      "terms"
      "addr1"
      "addr2"
      "addr3"
      "copy";
    row-gap: 10px;
    align-items: flex-start;
    justify-items: flex-start;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-cols > * {
    width: 100%;
  }
  .footer-col {
    display: contents;
  }
  .copyright {
    display: none;
  }
  .footer-logo {
    grid-area: logo;
    margin: 0 0 16px;
    justify-self: flex-start;
  }
  .footer-col h3 {
    font-size: 16px;
    text-align: left;
  }
  .footer-col p,
  .footer-comment {
    font-size: 14px;
    text-align: left;
    margin: 0;
    line-height: 1.5;
  }
  .footer-logo img {
    max-width: 218px;
    filter: brightness(0) invert(1);
  }
  .footer-address-title {
    display: none;
  }
  .footer-address-line-1 {
    grid-area: addr1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .footer-address-line-2 {
    grid-area: addr2;
  }
  .footer-address-line-3 {
    grid-area: addr3;
  }
  .footer-legal-copy {
    grid-area: copy;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
  }
  .footer-legal-policy {
    grid-area: policy;
  }
  .footer-legal-terms {
    grid-area: terms;
    padding-bottom: 0;
  }
  .copyright-text {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    white-space: nowrap;
  }
  .footer-comment {
    display: block;
    text-align: center;
  }
  .footer-line {
    margin: 12px 0;
    display: none;
  }
  .footer-bottom-content {
    padding-right: 0;
  }
  .footer-links a {
    color: #dddddd;
    text-decoration: none;
    margin: 0;
    font-size: 11px;
  }

  /* Partners */
  .partner-logo {
    flex: 0 0 140px;
    height: 80px;
  }
}
@media (max-width: 376px) {
  .hero-subtitle-item {
    padding: 7px 12px;
    font-size: 11px;
  }
  
  .form-section {
    padding: 40px 30px 40px;
  }
  .form-title {
    font-size: 18px;
  }
  .form-group .field-error {
    top: 40%;
    transform: translateY(-50%);
  }

  .checkbox-error {
    display: block !important;
    width: 100%;
    margin-left: -270px;
    margin-top: 42px;
  }
}

@media (max-width: 321px) {
  .hero {
    padding: 20px 0 20px 0;
    min-height: auto;
    overflow-x: hidden;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 16px 0 16px;
    min-height: auto;
    width: 100%;
  }
  .hero-content {
    max-width: 100%;
    width: 100%;
    padding-right: 0;
  }
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  
  .hero-subtitle-item {
    padding: 6px 12px;
  }

  .hero-image {
    width: 100vw;
    height: auto;
    align-self: center;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    bottom: 0;
    transform: rotate(0deg);
    transform-origin: center;
    overflow: hidden;
    height: 39vh;
  }

  .hero-image img {
    display: block;
    max-width: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-left: 0;
    transform: scale(1.18);
    transform-origin: center top;
  }
  .partner-logo {
    flex: 0 0 92px;
    /* height: 30px; */
  }
  .about-section {
    padding: 40px 20px;
  }
  .about-content {
    gap: 1.5rem;
  }
  .about-container {
    gap: 40px;
  }
  .advantages-section {
    padding: 40px 20px;
  }
  .form-section {
    padding: 26px 20px 40px;
  }
  .form-main {
    padding: 22px 12px;
  }
  .form-button {
    width: 190px;
    height: 38px;
    font-size: 14px;
  }
  .form-group input,
  .form-group select {
    padding: 10px 15px;
  }
  .form-group .field-error {
    top: 56%;
  }
  .footer-cols > .footer-col:nth-child(3) {
    padding-right: 20px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    color: #a9bac8;
  }
  .footer-col p,
  .footer-comment {
    font-size: 13px;
  }
  .form-group.has-error select ~ .field-error {
    display: none !important;
  }
}

@media (min-width: 2560px) {
  .hero-title-line,
  .hero-title-line-break {
    display: block;
  }
}

.doc-page {
  background: #ffffff;
  color: #0f172a;
  min-height: 100vh;
  padding: 60px 16px;
}
.doc-container {
  max-width: 920px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}
.doc-container h1 {
  font-size: 36px;
  margin: 0 0 20px 0;
}
.doc-container h2 {
  font-size: 20px;
  margin: 24px 0 10px 0;
}
.doc-container p,
.doc-container li {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}
.doc-container ul {
  padding-left: 18px;
  margin: 0 0 12px 0;
}
