body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #111;
  color: #fff;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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

img, video, canvas, svg {
  max-width: 100%;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  background: #181818;
}
.logo, .footer-logo {
  font-weight: bold;
  font-size: 2.5em;
  color: #fff;
}
.logo span, .footer-logo span {
  color: #ffb800;
}
nav a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a.order-btn {
  color: #ffb800;
  border: 1px solid #ffb800;
  padding: 8px 16px;
  border-radius: 20px;
}
nav a:hover {
  color: #ffb800;
}

.auth-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.auth-btn {
  border: 1px solid #ffb800;
  border-radius: 20px;
  padding: 8px 16px;
  background: transparent;
  color: #ffb800;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-btn:hover {
  background: #ffb800;
  color: #111;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('img/gl_img.jpg') center/cover no-repeat;
  min-height: 500px;
  position: relative;
  gap: 48px;
}
.hero-logo {
  width: 80vh;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.3));
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin-right: 240px;
  text-align: center;
}
.hero-text h1 {
  color: #ffb800;
  font-size: 4.5em;
  margin: 0 0 16px 0;
}
#order-btn_header_div{
  display: none;
}

.hero-text h1 span{
  color: #ffffff;
}
.hero-text p {
  font-size: 1.2em;
  margin-bottom: 24px;
}
.hero-text button {
  background: #ffb800;
  color: #111;
  border: none;
  padding: 12px 42px;
  border-radius: 24px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
}
.hero-img {
  display: none;
}
.mobile-menu-header h3 {
  display: none;
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.mobile-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffb800;
  border-radius: 18px;
  padding: 7px 12px;
  color: #ffb800;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

.portfolio {
  padding: 0 180px;
  margin: 0;   
}
.portfolio .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* padding: 40px; */
  justify-content: center;
}
.portfolio .gallery img {
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.about, .advantages, .stats, .reviews, .order {
  padding: 40px;
  text-align: center;
}
.about h2{
  font-size: 3.5em;
  margin-bottom: 40px;
 
}
.about h2 span { color: #ffb800;}


.about ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  justify-content: center;
  padding: 0;
  margin: 32px 0 0 0;
  list-style: none;
}
.about li {
  flex: 1 1 45%;
  max-width: 48%;
  min-width: 320px;
  background: rgba(255,255,255,0.07);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin: 0;
  padding: 28px 32px;
  font-size: 1.15em;
  color: #fff;
  opacity: 0;
  transform: translateY(60px) scale(0.92) rotateZ(-2deg);
  filter: blur(6px) brightness(0.8);
  transition:
    opacity 0.7s cubic-bezier(.4,2,.6,1),
    transform 0.7s cubic-bezier(.4,2,.6,1),
    filter 0.7s cubic-bezier(.4,2,.6,1),
    box-shadow 0.7s cubic-bezier(.4,2,.6,1);
  position: relative;
}
.about li.about-appear {
  opacity: 1;
  transform: translateY(0) scale(1) rotateZ(0);
  filter: blur(0) brightness(1);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
}
.about li {
  transition-delay: 0s;
}
.about li:nth-child(1).about-appear { transition-delay: 0.05s; }
.about li:nth-child(2).about-appear { transition-delay: 0.12s; }
.about li:nth-child(3).about-appear { transition-delay: 0.19s; }
.about li:nth-child(4).about-appear { transition-delay: 0.26s; }
.about li:nth-child(5).about-appear { transition-delay: 0.33s; }
.about li:nth-child(6).about-appear { transition-delay: 0.40s; }
.about li:nth-child(7).about-appear { transition-delay: 0.47s; }
.about li:nth-child(8).about-appear { transition-delay: 0.54s; }
.advantages ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
}
.advantages ul li {
  margin-bottom: 40px;
  font-size: 1.8em;
}
.advantages ul li span {
  color: #ffb800;
  font-weight: bold;
}
.about li, .advantages li {
  margin-bottom: 12px;
  font-size: 1.1em;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}
.stats div {
  background: #222;
  border-radius: 16px;
  padding: 32px 48px;
}
.stats p {
  margin: 50px 0;
  padding: 0;
  font-size: 6.5em;
  font-weight: bold;
}
.stats span {
  color: #ffb800;
  font-size: 10.5em;
  font-weight: bold;
}
.reviews .review-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.review {
  background: #222;
  padding: 24px;
  border-radius: 12px;
  min-width: 180px;
}
.order button {
  background: #ffb800;
  color: #111;
  border: none;
  padding: 20px 60px;
  border-radius: 32px;
  font-size: 1.3em;
  cursor: pointer;
  font-weight: bold;
}
footer {
  background: #181818;
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.socials a {
  color: #ffb800;
  margin-left: 16px;
  text-decoration: none;
}
.gallery.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  height: auto;
  max-width: 100vw;
  margin: 40px 0;
}
.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-overlay {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(12px, env(safe-area-inset-top, 0px))
    max(12px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(12px, env(safe-area-inset-left, 0px));
}
.container_form{
  display: flex;
  flex-direction: column;
}
.container_form div{
  display: flex;
  flex-direction: column;
}
.container_form .or{
 font-size: 5vh;
}
.modal-form {
  background: #181818;
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.25);
  padding: 40px 32px 32px 32px;
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.modal-form h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2em;
  text-align: center;
}

/* Форма заявки (лендинг) */
.lead-modal-form {
  width: min(440px, calc(100vw - 24px));
  max-width: 100%;
  flex-shrink: 0;
  margin: auto;
  padding: 36px 28px 28px;
  border: 1px solid rgba(255, 184, 0, 0.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  max-height: min(720px, calc(100vh - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lead-modal-form h3 {
  margin-bottom: 8px;
  color: #fff;
}

.lead-modal-form h3::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #ffb800;
  border-radius: 2px;
  margin: 12px auto 0;
}

.lead-modal-lead {
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 0.95em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.lead-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.lead-field label {
  margin: 0;
  font-size: 0.95em;
  font-weight: 600;
  color: #f0f0f0;
}

.lead-optional {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88em;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #3c3c3c;
  background: #1f1f1f;
  color: #fff;
  font-size: 1em;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.4;
}

/* Блок «Комментарий» — визуально отделён от контактов */
.lead-field--comment {
  margin-top: 6px;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-left: 4px solid #ffb800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.2);
  gap: 10px;
}

.lead-field--comment label {
  color: #ffb800;
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

.lead-field--comment .lead-optional {
  color: rgba(255, 184, 0, 0.55);
  font-weight: 500;
}

.lead-field--comment textarea {
  min-height: 108px;
  padding: 14px 16px;
  line-height: 1.55;
  font-size: 0.96em;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f5f5f5;
}

.lead-field--comment textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-style: italic;
}

.lead-field--comment textarea:focus {
  border-color: #ffb800;
  background: rgba(8, 8, 8, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.18);
}

.lead-field--comment textarea::-webkit-scrollbar {
  width: 8px;
}

.lead-field--comment textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.lead-field--comment textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 184, 0, 0.35);
  border-radius: 4px;
}

.lead-field--comment textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 184, 0, 0.55);
}

.lead-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.lead-field input:focus {
  border-color: #ffb800;
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2);
}

.lead-or {
  text-align: center;
  margin: 2px 0;
  font-size: 0.9em;
  font-weight: 700;
  color: #ffb800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.lead-submit {
  width: 100%;
  margin-top: 6px;
  background: #ffb800 !important;
  color: #111 !important;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.lead-submit:hover:not(:disabled) {
  background: #ffd157 !important;
}

.lead-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Форма заявки — планшеты и телефоны */
@media (max-width: 900px) {
  .lead-modal-form {
    width: min(440px, calc(100vw - 20px));
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .lead-modal-form h3 {
    font-size: 1.65em;
    padding-inline: 8px;
  }

  .lead-form-stack {
    gap: 12px;
  }
}

.form-message {
  min-height: 22px;
  margin-top: 14px;
  text-align: center;
  font-size: 0.95em;
  line-height: 1.35;
}

.form-message--ok {
  color: #7dd87a;
}

.form-message--err {
  color: #ff6b6b;
}
.modal-form label {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 1.1em;
}
.modal-form input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 8px;
  outline: none;
}
.modal-form .or {
  text-align: center;
  color: #ffb800;
  margin: 8px 0 8px 0;
  font-weight: bold;
}
.modal-form button[type="submit"] {
  background: #ffb800;
  color: #181818;
  border: none;
  border-radius: 16px;
  padding: 12px 40px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.auth-modal-form {
  width: min(520px, 92vw);
  padding: 34px 28px 24px;
}

.auth-form-stack {
  gap: 12px;
}

.auth-modal-form h3 {
  margin-bottom: 18px;
  font-size: 1.8em;
}

.auth-modal-form .container_form > div {
  gap: 6px;
}

.auth-modal-form label {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

.auth-modal-form input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 12px 14px;
  font-size: 1em;
  border-radius: 12px;
  border: 1px solid #3c3c3c;
  background: #1f1f1f;
}

.auth-modal-form input:focus {
  border-color: #ffb800;
}

.auth-modal-form button[type="button"] {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#auth-login-submit,
#auth-register-submit {
  background: #ffb800;
  color: #111;
}

#auth-login-submit:hover,
#auth-register-submit:hover {
  background: #ffd157;
}

.auth-captcha-wrap {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha-img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid #444;
  background: #111;
}

.auth-refresh-btn {
  width: auto !important;
  align-self: flex-start;
  background: #222;
  color: #ffb800;
  border: 1px solid #ffb800;
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
}

#auth-message {
  min-height: 22px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.95em;
}
.modal-form button[type="submit"]:hover {
  background: #ffd966;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:focus-visible {
  outline: 2px solid #ffb800;
  outline-offset: 2px;
}
.form-error {
  color: #ff4d4f;
  margin-top: 10px;
  min-height: 22px;
  text-align: center;
  font-size: 1em;
}


/* --- Адаптивность для планшетов и мобильных устройств --- */
@media (max-width: 1300px) {
  .connectForm {
    display: flex;
    flex-direction: column;
  }
}

/* --- Адаптивность для планшетов и мобильных устройств --- */
@media (max-width: 1200px) {
  .portfolio {
    padding: 0 40px;
  }
}

@media (max-width: 900px) {
  .gallery.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 24px 0;
  }
  .about ul {
    gap: 18px 0;
  }
  .about li {
    max-width: 100%;
    min-width: 0;
    padding: 18px 10px;
    font-size: 1em;
  }
  .mobile-menu-header h3 {
  display: block;
  }
}
@media (max-width: 600px) {
  .gallery.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 12px 0;
  }
}
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 40px 16px;
    min-height: 320px;
    gap: 24px;
  }
  .hero-logo {
    width: 70vw;
    margin-bottom: 12px;
  }
  .hero-text {
    max-width: 100%;
    margin-right: 0;
    text-align: center;
  }
  .hero-img {
    width: 100%;
    height: 250px;
    margin-top: 24px;
  }
  .stats {
    flex-direction: column;
    gap: 24px;
  }
  footer {
    flex-direction: column;
    gap: 16px;
  }
  #order-btn_header{
    width: 80%;
  }
} 

@media (max-width: 900px) {
  .logo, .footer-logo {
    font-size: 2em;
  }
  .portfolio {
    padding: 0 8px;
  }
  .about, .advantages, .stats, .reviews, .order {
    padding: 24px 8px;
  }
  .about h2 {
    font-size: 2em;
  }
  .advantages ul li {
    font-size: 1.1em;
  }
  .stats div {
    padding: 18px 8px;
  }
  .stats p {
    font-size: 2.5em;
    margin: 20px 0;
  }
  .stats span {
    font-size: 4em;
  }
  .gallery.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 4px;
    margin: 16px 0;
  }
}

@media (max-width: 600px) {
  .logo, .footer-logo {
    font-size: 1.3em;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 18px 2px;
    min-height: 180px;
    gap: 10px;
  }
  .hero-logo {
    width: 60vw;
    min-width: 90px;
    max-width: 180px;
    margin-bottom: 8px;
  }
  .hero-text {
    max-width: 100%;
    margin-right: 0;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2em;
  }
  .hero-text p {
    font-size: 1em;
  }
  .hero-text button {
    padding: 10px 18px;
    font-size: 0.95em;
  }
  .portfolio {
    padding: 0 2px;
  }
  .gallery.gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: 8px 0;
  }
  .about ul {
    flex-direction: column;
    gap: 10px 0;
  }
  .about li {
    max-width: 100%;
    min-width: 0;
    padding: 10px 4px;
    font-size: 0.98em;
  }
  .about h2 {
    font-size: 1.2em;
    margin-bottom: 18px;
  }
  .advantages ul li {
    font-size: 1em;
    margin-bottom: 18px;
  }
  .stats {
    flex-direction: column;
    gap: 10px;
  }
  .stats div {
    padding: 10px 2px;
  }
  .stats p {
    font-size: 1.2em;
    margin: 10px 0;
  }
  .stats span {
    font-size: 2em;
  }
  .order button {
    padding: 12px 18px;
    font-size: 1em;
    border-radius: 18px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 4px;
    font-size: 0.95em;
  }
  .modal-form {
    min-width: 90vw;
    padding: 18px 4px 18px 4px;
    font-size: 1em;
  }
  .modal-form h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
  }
  .modal-form label {
    font-size: 1em;
  }
  .modal-form input {
    font-size: 1em;
    padding: 8px 8px;
  }
  .modal-form button[type="submit"] {
    font-size: 1em;
    padding: 10px 18px;
    border-radius: 12px;
  }
  .modal-close {
    font-size: 1.5em;
    top: 6px;
    right: 10px;
  }

  .auth-modal-form {
    min-width: 92vw;
    padding: 20px 14px 16px;
  }

  .auth-modal-form h3 {
    font-size: 1.25em;
  }

  .auth-modal-form input {
    padding: 10px 12px;
  }

  .auth-modal-form button[type="button"] {
    padding: 10px 14px;
    font-size: 0.96em;
  }

  /* Заявка: компактная (~½ прежнего размера), поля 16px — без зума iOS */
  .modal-overlay .modal-form.lead-modal-form {
    min-width: 0;
    width: min(220px, calc(100vw - 24px));
    max-width: 100%;
    padding: 11px 8px 10px;
    border-radius: 10px;
    max-height: min(90vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px));
  }

  .modal-overlay .modal-form.lead-modal-form .lead-form-stack {
    gap: 7px;
  }

  .modal-overlay .modal-form.lead-modal-form .lead-or {
    font-size: 0.72em;
    margin: 0;
  }

  .modal-form.lead-modal-form h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 3px;
  }

  .modal-form.lead-modal-form h3::after {
    width: 24px;
    height: 2px;
    margin-top: 5px;
  }

  .modal-form.lead-modal-form .lead-modal-lead {
    font-size: 0.72em;
    line-height: 1.3;
    margin-bottom: 8px;
    padding-inline: 0;
  }

  .modal-form.lead-modal-form .lead-field {
    gap: 3px;
  }

  .modal-form.lead-modal-form .lead-field label {
    font-size: 0.76em;
  }

  .modal-form.lead-modal-form .lead-optional {
    font-size: 0.8em;
  }

  .modal-form.lead-modal-form .lead-field input,
  .modal-form.lead-modal-form .lead-field textarea {
    padding: 6px 8px;
    font-size: 16px;
    border-radius: 8px;
  }

  .modal-form.lead-modal-form .lead-field--comment {
    padding: 6px 6px 7px;
    border-radius: 8px;
    border-left-width: 2px;
    margin-top: 2px;
    gap: 5px;
  }

  .modal-form.lead-modal-form .lead-field--comment label {
    font-size: 0.72em;
  }

  .modal-form.lead-modal-form .lead-field--comment textarea {
    min-height: 48px;
    padding: 6px 8px;
    font-size: 16px;
    border-radius: 8px;
    line-height: 1.35;
  }

  .modal-form.lead-modal-form .lead-submit {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
    margin-top: 2px;
  }

  .modal-form.lead-modal-form .form-message {
    font-size: 0.72em;
    margin-top: 6px;
    min-height: 14px;
  }
}

@media (max-width: 380px) {
  .modal-overlay .modal-form.lead-modal-form {
    width: min(200px, calc(100vw - 16px));
    padding: 9px 6px 8px;
  }
}

/* --- Бургер-меню --- */
.burger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Мобильные стили для навигации */
@media (max-width: 900px) {
  header {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
  }
  
  .burger-menu {
    display: flex;
  }

  .mobile-header-actions {
    display: flex;
  }

  .auth-topbar {
    gap: 6px;
    margin-left: 8px;
  }

  .auth-btn {
    padding: 6px 10px;
    font-size: 0.86em;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -200%;
    width: 40%;
    height: 100vh;
    background: #181818;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }

  #order-btn_header_div{
    display: block;
  }
  #order-btn_header{
    display: none;
  }
  
  .mobile-menu-header {
    background: #222;
    padding: 20px 30px;
    border-bottom: 2px solid #ffb800;
  }

  .mobile-menu-header h3 {
    margin: 0;
    color: #ffb800;
    font-size: 1.3em;
    text-align: center;
  }
  
  .nav-menu a {
    margin: 0;
    font-size: 1.1em;
    padding: 20px 0px;
    padding-left: 2vw;
    border-bottom: 1px solid #333;
    width: 90%;
    text-align: left;
    display: block;
    transition: background 0.2s, color 0.2s;

  }
  
  .nav-menu a:hover {
    background: rgba(255, 184, 0, 0.1);
  }
  
  .nav-menu a.order-btn {
    width: 80%;
    text-align: center;
    border: 1px solid #ffb800;
    border-radius: 20px;
    padding: 15px 20px;
    background: rgba(255, 184, 0, 0.1);


    /* display: none; */
  }
  
  .nav-menu a.order-btn:hover {
    background: rgba(255, 184, 0, 0.2);
  }
  .box_btn{
    /* background-color: #ff4d4f; */
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .mobile-auth-btn {
    padding: 6px 10px;
    font-size: 0.82em;
  }

  .nav-menu {
    width: 100%;
    right: -100%;
  }
  
  .mobile-menu-header {
    padding: 15px 25px;
  }
  
  .mobile-menu-header h3 {
    font-size: 1.1em;
  }
  
  .nav-menu a {
    font-size: 1em;
    padding: 18px 25px;
  }
  
  .nav-menu a.order-btn {
    margin: 15px 25px;
    padding: 12px 15px;
  }
}

@media (max-width: 600px) {
  .about, .advantages, .stats, .reviews, .order {
    padding: 18px 14px;
  }

  .about h2 {
    font-size: 2.2em;
    margin-bottom: 18px;
  }

  .about ul {
    gap: 14px;
  }

  .about li {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px 16px;
  }

  .advantages ul li {
    font-size: 1.25em;
  }

  .modal-form {
    min-width: 0;
    width: min(440px, calc(100vw - 24px));
    padding: 26px 18px 18px;
  }
}