@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
  --green: #2f8f4b;
  --green-dark: #1f6134;
  --green-light: #eaf8ee;
  --text: #1f2a24;
  --muted: #6a7d6f;
  --border: #dbe9df;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  --touch-target: 48px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
  background: #f4fbf6;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  padding: 16px 24px;
}

.white-topbar {
  background: white;
  color: var(--text);
  border-bottom: 1px solid #e6eef0;
}

.white-topbar .topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.white-topbar .brand {
  color: var(--text);
}

.topbar-center {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-contacts {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.topbar-phone {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid #e6eef0;
  background: #f8fbfa;
  color: var(--text);
  min-width: 220px;
}

.topbar-phone-number {
  font-weight: 700;
}

.topbar-phone-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.white-topbar .nav-links a:hover,
.white-topbar .nav-links a:focus {
  color: var(--green-dark);
}

.language-switcher {
  display: flex;
  align-items: center;
}

.lang-buttons {
  display: flex;
  gap: 10px;
}

.lang-btn {
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 143, 75, 0.12);
}

.lang-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: auto;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  padding: 24px 24px 0;
}

.hero-compact {
  padding-bottom: 0;
}

.hero-small {
  min-height: auto;
  padding-bottom: 40px;
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.header-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
  align-items: center;
}

.nav-button,
.active-link {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
}

.hero-content {
  max-width: 1160px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero-content-small {
  margin: 40px auto 0;
  grid-template-columns: 1fr;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-description {
  font-size: 1.05rem;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.92);
}

.btn,
.nav-button,
.active-link {
  border-radius: 999px;
}

.btn {
  display: inline-block;
  border: none;
  background: var(--green);
  color: white;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-square {
  min-width: 160px;
  min-height: 56px;
  padding: 0 18px;
}

.btn-secondary {
  background: #f4f7f6;
  color: var(--text);
}

.btn-secondary:hover {
  background: #e9f2ec;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-light {
  background: white;
  color: var(--green-dark);
  margin-top: 16px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 24px;
}

.hero-card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.home-hero {
  padding-top: 40px;
}

.banner-hero {
  position: relative;
  min-height: 700px;
  background: url("photo1.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.banner-content {
  position: relative;
  max-width: 980px;
  width: 100%;
  text-align: center;
  color: white;
  z-index: 1;
}

.banner-title {
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1.5;
  margin: 0 auto 224px;
  max-width: 840px;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.btn-banner {
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: 16px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-description {
  max-width: 600px;
  color: var(--muted);
  margin: 18px 0 0;
}

.home-actions {
  margin-top: 24px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.phone-card {
  background: #ffffff;
  border: 1px solid #e6eef0;
  border-radius: 20px;
  padding: 18px 20px;
}

.phone-label {
  font-weight: 700;
  margin-bottom: 10px;
}

.phone-number {
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.phone-note {
  color: var(--muted);
  margin: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal {
  width: 100%;
  max-width: 430px;
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-description {
  color: var(--muted);
  margin: 12px 0 20px;
}

.modal-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.modal-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 8px;
}

.modal-form input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 24px;
}

.about-section {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}

.about-section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
}

.choose-section {
  padding-top: 56px;
  padding-bottom: 80px;
  text-align: center;
}

.choose-section h2 {
  margin: 0 0 48px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: flex-start;
  text-align: center;
}

.feature-image {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
  place-self: center;
  order: -1;
}

.feature-card-1::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('time.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-card-2::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('partners.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-card-3::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('certificate.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-card-4::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('commerce.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-card-5::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('consultant-whyarewe.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-card-6::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('pdv.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-card-7::before {
  content: '';
  display: inline-block;
  width: 100px;
  height: 100px;
  background: url('premium.png') center/cover no-repeat;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-right: -20px;
}

.feature-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 500;
  text-align: center;
}

.choose-text {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.partners-section {
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 28px;
  justify-items: center;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.partner-card {
  width: 100%;
  max-width: 240px;
  padding: 22px;
  border-radius: 24px;
  background: white;
  border: 1px solid #e9f2f1;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 1080px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

.steps-section {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e5ecea;
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 28px 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.step-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .steps-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width: 1080px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 560px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.map-contact-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.map-contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
}

.map-frame {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-details h2 {
  margin: 0;
  font-size: 2rem;
}

.contact-details p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.contact-details a {
  color: var(--green);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-block {
  display: grid;
  gap: 6px;
}

.contact-block-title {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 900px) {
  .map-contact-grid {
    grid-template-columns: 1fr;
  }
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  color: #3b473f;
}

.contact-section {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px 0;
  background: url("rangerover.png") center/cover no-repeat;
  border-radius: 0;
  overflow: hidden;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.contact-grid {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.3fr) 420px;
  gap: 32px;
  align-items: center;
  z-index: 1;
  padding: 0 24px;
}

.contact-preview {
  display: grid;
  gap: 18px;
  justify-items: start;
  text-align: left;
  color: white;
}

.section-title {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.1;
  color: white;
}

.contact-copy-small {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.contact-copy-text {
  margin: 0;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.contact-form-header h3 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  color: white;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: white;
}

.contact-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  min-height: 44px;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 8px;
}

.contact-form input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.contact-form input::placeholder {
  color: #8a9590;
}

.contact-form button {
  margin-top: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.section-heading {
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 860px) {
  .premium-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .premium-text {
    text-align: center;
  }
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 8px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-image {
  min-height: 140px;
  background: linear-gradient(135deg, var(--green-light), #fefefe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1rem;
}

.product-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.product-content {
  padding: 18px;
}

.product-content h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.product-content p {
  margin: 6px 0;
  color: var(--muted);
}

.price-block {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.price {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
}

.installation {
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-page {
  margin-top: -20px;
  background: none;
  color: inherit;
  padding: 24px 0 40px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(320px, 420px);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  justify-content: center;
}

.admin-form,
.admin-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.admin-panel {
  display: flex;
  flex-direction: column;
  max-height: 640px;
  min-height: 320px;
}

.admin-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  max-height: 460px;
  padding-right: 8px;
}

.admin-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  width: 100%;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-section {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.login-box h2 {
  margin: 0 0 12px;
}

.hidden {
  display: none !important;
}

.form-message {
  min-height: 24px;
  color: var(--green-dark);
  font-weight: 600;
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fafdfb;
}

.admin-item p {
  margin: 4px 0;
  color: var(--muted);
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--border);
  border-radius: 20px;
}

@media (max-width: 840px) {
  .hero-content,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .topbar-contacts,
  .topbar-actions {
    justify-content: center;
  }

  .topbar-phone {
    min-width: 200px;
  }

  .hero {
    padding-bottom: 60px;
  }
}

/* Адаптивность для планшетов и больших телефонов (768px и меньше) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .topbar {
    padding: 12px 16px;
  }

  .white-topbar .topbar-inner {
    gap: 12px;
  }

  .topbar-phone {
    min-width: 180px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .topbar-phone-number {
    font-size: 0.9rem;
  }

  .topbar-phone-note {
    font-size: 0.85rem;
  }

  .section {
    padding: 40px 20px;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .banner-hero {
    min-height: 300px;
  }

  .banner-content {
    text-align: center;
  }

  .banner-title {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 20px 18px;
  }

  .contact-form-header h3 {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .feature-card {
    padding: 20px 16px;
    gap: 12px;
  }

  .feature-card-1::before,
  .feature-card-2::before,
  .feature-card-3::before,
  .feature-card-4::before,
  .feature-card-5::before,
  .feature-card-6::before,
  .feature-card-7::before {
    width: 80px;
    height: 80px;
    margin-right: -15px;
  }

  .feature-text {
    font-size: 0.95rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
  }

  .step-card {
    padding: 20px 16px;
    min-height: 180px;
    gap: 8px;
  }

  .step-title {
    font-size: 0.95rem;
  }

  .step-description {
    font-size: 0.85rem;
  }

  .map-contact-grid {
    gap: 20px;
  }

  .map-frame {
    min-height: 300px;
  }

  .contact-details {
    padding: 20px 18px;
    gap: 16px;
  }

  .contact-details h2 {
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Адаптивность для малых телефонов (480px и меньше) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .white-topbar .topbar-inner {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .topbar-center {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 8px;
  }

  .topbar-right {
    gap: 8px;
  }

  .topbar-contacts {
    gap: 8px;
    flex-direction: column;
    width: 100%;
  }

  .topbar-phone {
    min-width: 100%;
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .topbar-phone-number {
    font-size: 0.85rem;
  }

  .topbar-phone-note {
    font-size: 0.75rem;
    display: none;
  }

  .lang-buttons {
    display: flex;
    gap: 4px;
  }

  .lang-btn {
    width: 32px;
    height: 32px;
  }

  .lang-btn img {
    width: 100%;
    height: 100%;
  }

  .section {
    padding: 30px 16px;
  }

  .section h2 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
  }

  .section-label {
    font-size: 0.85rem;
  }

  .banner-hero {
    min-height: 250px;
  }

  .banner-content {
    padding: 20px 16px;
    text-align: center;
  }

  .banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
  }

  .btn {
    padding: 11px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .btn-banner {
    display: inline-block;
    margin-top: 12px;
  }

  .contact-form {
    padding: 16px 14px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .contact-form-header h3 {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
  }

  .contact-form label {
    font-size: 0.85rem;
    gap: 6px;
  }

  .contact-form input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 16px 12px;
    gap: 10px;
    min-height: auto;
  }

  .feature-card-1::before,
  .feature-card-2::before,
  .feature-card-3::before,
  .feature-card-4::before,
  .feature-card-5::before,
  .feature-card-6::before,
  .feature-card-7::before {
    width: 70px;
    height: 70px;
    margin-right: -10px;
    margin-bottom: 8px;
  }

  .feature-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-card {
    padding: 16px 12px;
    min-height: auto;
    gap: 6px;
  }

  .step-number {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    margin: 0 auto 8px;
  }

  .step-title {
    font-size: 0.9rem;
    margin: 0;
  }

  .step-description {
    font-size: 0.8rem;
    margin: 0;
  }

  .map-contact-grid {
    gap: 16px;
    padding: 0 16px;
  }

  .map-frame {
    min-height: 250px;
    border-radius: 12px;
  }

  .contact-details {
    padding: 16px 14px;
    gap: 14px;
    border-radius: 12px;
  }

  .contact-details h2 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
  }

  .contact-details p {
    font-size: 0.9rem;
    margin: 0;
  }

  .contact-block {
    gap: 4px;
  }

  .contact-block-title {
    font-size: 0.9rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
  }

  .contact-copy-small {
    font-size: 0.8rem;
  }

  .contact-copy-text {
    font-size: 0.95rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .partner-card {
    min-height: 60px;
  }

  .modal {
    width: 90%;
    max-width: 100%;
    padding: 20px 16px;
  }

  .modal h2 {
    font-size: 1.3rem;
  }

  .modal-description {
    font-size: 0.9rem;
  }

  .modal-form label {
    font-size: 0.85rem;
  }

  .modal-form input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons .btn {
    width: 100%;
  }
}

/* Адаптивность для очень малых экранов (360px и меньше) */
@media (max-width: 360px) {
  .topbar-phone {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .section {
    padding: 24px 12px;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .banner-title {
    font-size: 1.1rem;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .feature-card-1::before,
  .feature-card-2::before,
  .feature-card-3::before,
  .feature-card-4::before,
  .feature-card-5::before,
  .feature-card-6::before,
  .feature-card-7::before {
    width: 60px;
    height: 60px;
    margin-right: -8px;
  }

  .step-number {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .step-title {
    font-size: 0.85rem;
  }

  .step-description {
    font-size: 0.75rem;
  }

  .contact-form {
    padding: 12px 10px;
  }

  .contact-details {
    padding: 12px 10px;
  }

  .modal {
    padding: 16px 12px;
  }
}

/* Улучшенная доступность и производительность */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Оптимизация для высокой плотности пикселей (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .feature-card::before {
    background-size: contain;
  }
}

/* Оптимизация для ориентации landscape на мобильных */
@media (max-height: 500px) and (orientation: landscape) {
  .banner-hero {
    min-height: 200px;
  }

  .section {
    padding: 30px 20px;
  }

  .section h2 {
    font-size: 1.4rem;
    margin: 0 0 16px;
  }

  .steps-grid {
    gap: 12px;
  }

  .step-card {
    padding: 14px 10px;
    min-height: 140px;
  }
}
