/* ===== Переменные и базовые стили ===== */
:root {
  --primary: #ef3f24;
  --primary-dark: #c92f19;
  --secondary: #fff0ec;
  --accent: #166dcc;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e8e8e8;
  --success: #10b981;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #1a1a1a;
  --footer-text: #f8fafc;
}

[data-theme="dark"] {
  --primary: #ff5a3c;
  --primary-dark: #ff8367;
  --secondary: rgba(255, 90, 60, 0.14);
  --accent: #58a6ff;
  --text-dark: #eef1f4;
  --text-light: #9aa4b2;
  --bg-light: #12151a;
  --bg-white: #1b1f26;
  --border: #2b313b;
  --success: #34d399;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.55);
  --navbar-bg: rgba(27, 31, 38, 0.92);
  --footer-bg: #0c0e12;
  --footer-text: #c3cad3;
}

body {
  transition: background-color 0.25s ease, color 0.25s ease;
}

img.logo-dark { display: none !important; }
[data-theme="dark"] img.logo-light { display: none !important; }
[data-theme="dark"] img.logo-dark { display: block !important; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Утилиты ===== */
section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.section-spacing {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.bg-light {
  background: var(--bg-light);
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* ===== Навбар ===== */
.navbar {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: var(--navbar-bg);
  transition: var(--transition);
}

.header-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  grid-column: 1;
  min-width: 0;
}

/* ===== Support chat ===== */
.map-choice[hidden] { display: none; }
.map-choice { position: fixed; inset: 0; z-index: 700; display: grid; align-items: end; }
.map-choice-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(2px); cursor: default; }
.map-choice-sheet { position: relative; width: 100%; max-width: 520px; margin: 0 auto; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -16px 50px rgba(15, 23, 42, 0.18); animation: mapChoiceOpen 0.24s ease-out; }
@keyframes mapChoiceOpen { from { transform: translateY(100%); } to { transform: translateY(0); } }
.map-choice-handle { width: 42px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: #d8dde3; }
.map-choice-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.map-choice-heading h3 { margin: 0; color: var(--text-dark); font-size: 1.15rem; }
.map-choice-heading p { margin: 3px 0 0; color: var(--text-light); font-size: 0.84rem; }
.map-choice-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 50%; place-items: center; background: #f1f3f5; color: var(--text-dark); cursor: pointer; }
.map-choice-options { display: grid; gap: 10px; }
.map-app-option { display: grid; grid-template-columns: 46px 1fr auto; min-height: 68px; padding: 10px 12px; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-dark); text-decoration: none; transition: var(--transition); }
.map-app-option:active { transform: scale(0.985); background: #f8fafc; }
.map-app-option strong, .map-app-option small { display: block; }
.map-app-option strong { font-size: 0.95rem; }
.map-app-option small { margin-top: 1px; color: var(--text-light); font-size: 0.76rem; }
.map-app-option > i { color: #9aa3ab; font-size: 0.8rem; }
.map-app-logo { display: grid; width: 42px; height: 42px; border-radius: 8px; place-items: center; color: #fff; font-size: 1.15rem; font-weight: 800; }
.map-app-yandex .map-app-logo { background: #fc3f1d; }
.map-app-google .map-app-logo { background: #4285f4; }
.map-choice-open { overflow: hidden; }

.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; }
.support-chat { position: fixed; right: 24px; bottom: 24px; width: auto; margin: 0; z-index: 500; }
.chat-toggle { position: relative; display: grid; width: 58px; height: 58px; margin-left: auto; border: 0; border-radius: 50%; place-items: center; background: var(--primary); color: #fff; font-size: 1.45rem; cursor: pointer; box-shadow: 0 10px 28px rgba(239, 63, 36, 0.34); transition: var(--transition); }
.chat-toggle:hover { background: var(--primary-dark); transform: translateY(-2px); }
.chat-toggle[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(0.8); }
.chat-notification { position: absolute; top: -2px; right: -2px; display: grid; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; place-items: center; background: #166dcc; color: #fff; font-size: 0.68rem; font-weight: 700; }
.chat-panel { position: absolute; right: 0; bottom: 0; display: grid; grid-template-rows: auto minmax(180px, 1fr) auto; width: min(390px, calc(100vw - 32px)); height: min(590px, calc(100vh - 48px)); overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(20, 30, 45, 0.24); transform-origin: right bottom; animation: chatOpen 0.25s ease-out; }
.chat-panel[hidden] { display: none; }
@keyframes chatOpen { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-header { display: flex; min-height: 86px; padding: 16px; align-items: center; justify-content: space-between; gap: 12px; background: #167a55; color: #fff; }
.chat-agent { display: flex; align-items: center; gap: 12px; }
.chat-agent-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; place-items: center; background: rgba(255,255,255,0.16); }
.chat-header h3 { margin: 0; color: #fff; font-size: 1rem; }
.chat-status { display: flex; margin: 2px 0 0; align-items: center; gap: 6px; color: rgba(255,255,255,0.86); font-size: 0.76rem; line-height: 1.3; }
.chat-status > span:first-child { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #8df0c2; }
.chat-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 50%; place-items: center; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,0.24); }
.chat-messages { overflow-y: auto; padding: 18px 16px; background-color: #f1f5f7; background-image: radial-gradient(#dce4e8 0.7px, transparent 0.7px); background-size: 18px 18px; }
.chat-day { width: max-content; margin: 0 auto 18px; padding: 5px 12px; border-radius: 14px; background: rgba(255,255,255,0.9); color: var(--text-light); font-size: 0.72rem; box-shadow: var(--shadow-sm); }
.chat-bubble { width: fit-content; max-width: 84%; margin-bottom: 10px; padding: 10px 12px 7px; border-radius: 8px; color: var(--text-dark); font-size: 0.88rem; line-height: 1.45; box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
.chat-bubble-agent { background: #fff; border-top-left-radius: 2px; }
.chat-bubble-user { margin-left: auto; background: #dcfce7; border-top-right-radius: 2px; }
.chat-bubble-error { color: #991b1b; background: #fee2e2; }
.chat-bubble time { display: block; margin-top: 3px; color: #849099; font-size: 0.65rem; text-align: right; }
.chat-form { padding: 14px; border-top: 1px solid var(--border); background: #fff; }
.chat-contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.chat-contact-fields input, .chat-message-field textarea { width: 100%; border: 1px solid #dfe4e8; outline: none; background: #fff; color: var(--text-dark); font: inherit; transition: var(--transition); }
.chat-contact-fields input { height: 40px; padding: 0 11px; border-radius: 8px; font-size: 0.8rem; }
.chat-contact-fields input:focus, .chat-message-field textarea:focus { border-color: #167a55; box-shadow: 0 0 0 3px rgba(22,122,85,0.1); }
.chat-composer { display: flex; align-items: flex-end; gap: 10px; }
.chat-message-field { flex: 1; }
.chat-message-field textarea { display: block; min-height: 54px; max-height: 130px; padding: 15px 18px; border: 1.5px solid #e2e7ea; border-radius: 22px; background: #f5f7f8; resize: none; font-size: 0.94rem; line-height: 1.4; }
.chat-message-field textarea:focus { background: #fff; border-color: #167a55; box-shadow: 0 0 0 4px rgba(22,122,85,0.1); }
.chat-message-field textarea::placeholder { color: #98a2ac; }
.chat-send { display: grid; width: 54px; height: 54px; flex: 0 0 54px; border: 0; border-radius: 50%; place-items: center; background: #167a55; color: #fff; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 16px rgba(22,122,85,0.28); transition: var(--transition); }
.chat-send:hover { background: #0f6847; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22,122,85,0.34); }
.chat-send:disabled { cursor: wait; opacity: 0.6; transform: none; }
@media (max-width: 560px) { .support-chat { right: 14px; bottom: 14px; } .chat-panel { position: fixed; top: 10px; right: 10px; bottom: 10px; left: 10px; width: auto; height: auto; } .chat-contact-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .chat-panel, .map-choice-sheet { animation: none; } }

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 490;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--primary);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 560px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 82px;
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn { transition: opacity 0.15s ease; }
}

.welcome-toast {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 480;
  max-width: 320px;
  padding: 18px 40px 18px 18px;
  border-radius: 16px;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.welcome-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.welcome-toast-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.welcome-toast-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.1rem;
}

.welcome-toast-title {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.welcome-toast-text {
  margin: 0;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.45;
}

.welcome-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.welcome-toast-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

@media (max-width: 560px) {
  .welcome-toast {
    left: 14px;
    right: 14px;
    bottom: 90px;
    max-width: none;
  }
}

.brand-logo-link {
  display: block;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(130px, 10vw, 172px);
  height: auto;
}

.badge-beta {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-menu {
  display: contents;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

.nav-order {
  color: var(--primary);
  font-weight: 700;
  padding: 10px 18px;
  border: 2px solid rgba(239, 63, 36, 0.85);
  border-radius: 8px;
  background: rgba(255, 240, 236, 0.75);
  box-shadow: 0 0 0 rgba(239, 63, 36, 0);
  animation: navOrderPulse 1.8s ease-in-out infinite;
}

.nav-order::after {
  display: none;
}

.nav-order:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 8px rgba(239, 63, 36, 0.12), 0 8px 22px rgba(239, 63, 36, 0.24);
  transform: translateY(-1px);
}

@keyframes navOrderPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 63, 36, 0.36), 0 0 0 rgba(239, 63, 36, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 63, 36, 0), 0 0 18px rgba(239, 63, 36, 0.32);
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-order {
    animation: none;
    box-shadow: 0 0 0 4px rgba(239, 63, 36, 0.12);
  }
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-white);
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-light);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-btn .flag {
  display: block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle .theme-icon-dark { display: none; }

[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-dark { display: block; }

/* Navbar collapses into the hamburger dropdown earlier than the rest of the
   responsive layout — logo + links + language switcher + theme toggle no
   longer fit in one row past ~1100px, so it needs its own breakpoint. */
@media (max-width: 1100px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 0 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  .navbar-menu.active {
    max-height: 700px;
    padding: 20px;
  }

  .nav-links,
  .nav-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 16px;
  }

  .nav-actions .nav-link {
    width: 100%;
    text-align: center;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-btn {
    width: 44px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.gradient-blob { display: none; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

.hero-content {
  display: grid;
  grid-template-columns: 0.82fr 1.28fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(120deg, var(--secondary) 0%, var(--bg-white) 55%);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.hero-text {
  animation: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-size: clamp(26px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.8rem;
  color: var(--primary);
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-visual {
  animation: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--secondary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== Услуги ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--bg-white);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), rgba(22, 109, 204, 0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.features-list {
  list-style: none;
}

.features-list li {
  color: var(--text-light);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list i {
  color: var(--success);
}

/* ===== Продукты ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card:nth-child(1),
.product-card:nth-child(2) {
  display: flex;
  align-items: stretch;
  grid-column: 1;
}

.product-card:nth-child(1) {
  grid-row: 1;
}

.product-card:nth-child(2) {
  grid-row: 2;
}

.product-card:nth-child(1) .product-card-media,
.product-card:nth-child(2) .product-card-media {
  flex: 0 0 42%;
}

.product-card-tall {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.product-card-media {
  position: relative;
}

.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-tall .product-card-media {
  flex: 1;
  min-height: 220px;
}

.product-icon-badge {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-card p {
  color: var(--text-light);
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.product-card .btn-sm {
  margin-top: auto;
}


/* ===== SUNMI P3 sotib olish ===== */
.buy-terminal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #1a1d24, #2a1512 130%);
  box-shadow: var(--shadow-lg);
}

.buy-terminal-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px;
  color: #fff;
}

.buy-terminal-kicker {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(239, 63, 36, 0.16);
  color: #ff8a6d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.buy-terminal-title {
  margin: 16px 0 4px;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
}

.buy-terminal-price {
  margin-top: 12px;
  color: var(--primary);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.buy-terminal-price span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  font-weight: 600;
}

.buy-terminal-desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

.buy-terminal-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
  list-style: none;
}

.buy-terminal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.4;
}

.buy-terminal-features li i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--success);
}

.buy-terminal-btn {
  margin-top: auto;
}

.buy-terminal-media {
  position: relative;
  min-height: 320px;
}

.buy-terminal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Kliropos Cafe ===== */
.kliropos-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.kliropos-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.kliropos-feature i {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), rgba(22, 109, 204, 0.12));
  border-radius: 12px;
  color: var(--primary);
  font-size: 1.15rem;
}

.kliropos-feature h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--text-dark);
}

.kliropos-feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== Rahmat QR ===== */
.rahmatqr-title .highlight {
  color: var(--primary);
}

.rahmatqr-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.rahmatqr-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: var(--transition);
}

.rahmatqr-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.rahmatqr-card-hero {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.rahmatqr-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.rahmatqr-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.rahmatqr-card:nth-child(4) { grid-column: 2; grid-row: 3; }

.rahmatqr-card:not(.rahmatqr-card-hero) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rahmatqr-icon-badge {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.rahmatqr-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.rahmatqr-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

.rahmatqr-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
}

.rahmatqr-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 44px 24px 64px;
  background: linear-gradient(150deg, #ff7a52 0%, var(--primary) 65%, #d92f16 100%);
  overflow: hidden;
}

.rahmatqr-scene::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.rahmatqr-stand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 220px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transform: rotate(-4deg);
  animation: rahmatqrFloat 4.5s ease-in-out infinite;
}

@keyframes rahmatqrFloat {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-8px); }
}

.rahmatqr-stand-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.rahmatqr-qr {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}

.rahmatqr-qr-svg {
  width: 100%;
  height: 100%;
  color: #1a1a1a;
}

.rahmatqr-qr-svg rect { fill: currentColor; }
.rahmatqr-qr-svg rect.cell-gap { fill: #fff; }

.rahmatqr-scanline {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 8px rgba(239, 63, 36, 0.7);
  animation: rahmatqrScan 2.6s ease-in-out infinite;
}

@keyframes rahmatqrScan {
  0%, 100% { top: 6%; }
  50% { top: 90%; }
}

.rahmatqr-stand-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.rahmatqr-stand-brand b {
  color: var(--primary);
}

.rahmatqr-phone {
  position: absolute;
  right: 32px;
  bottom: -16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.rahmatqr-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: rahmatqrPulse 2.4s ease-out infinite;
}

.rahmatqr-pulse-ring-delay {
  animation-delay: 1.2s;
}

@keyframes rahmatqrPulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.9); opacity: 0; }
}

.rahmatqr-methods {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: var(--secondary);
  border-radius: 20px;
}

.rahmatqr-methods-title {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.rahmatqr-methods-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.rahmatqr-methods-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.rahmatqr-methods-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: rahmatqrMarquee 46s linear infinite;
}

.rahmatqr-methods-track-wrap:hover .rahmatqr-methods-track {
  animation-play-state: paused;
}

@keyframes rahmatqrMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pay-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--chip-color);
}

.pay-chip-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chip-color);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  flex: 0 0 30px;
}

.pay-chip-dot i {
  color: #fff;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .rahmatqr-methods-track,
  .rahmatqr-scanline,
  .rahmatqr-pulse-ring,
  .rahmatqr-stand {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== О нас ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-item i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-light);
}

.about-image {
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-white);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.faq-question i {
  flex: 0 0 auto;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Контакты и форма ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-item p {
  margin: 0;
  color: var(--text-light);
}

.phone-channel {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 10px;
}

.phone-link,
.email-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.phone-link:hover,
.email-link:hover {
  color: var(--primary);
}

.telegram-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  place-items: center;
  background: #229ed9;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.22);
  transition: var(--transition);
}

.telegram-link i {
  color: inherit;
  font-size: 1rem;
}

.telegram-link:hover,
.telegram-link:focus-visible {
  background: #178ac0;
  color: #fff;
  box-shadow: 0 7px 18px rgba(34, 158, 217, 0.32);
  transform: translateY(-2px);
}

.phone-link:focus-visible,
.email-link:focus-visible,
.footer-contact a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.contact-item small {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-top: 4px;
}

.location-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.location-map {
  height: 220px;
  background: #e9eef2;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(1.03);
}

.location-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.location-kicker {
  display: block;
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 600;
}

.location-title {
  display: block;
  margin-top: 1px;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.location-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.location-route:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(239, 63, 36, 0.22);
  transform: translateY(-1px);
}

.weather-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.weather-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.weather-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.weather-kicker i {
  color: var(--primary);
}

.weather-updated {
  color: var(--text-light);
  font-size: 0.72rem;
  white-space: nowrap;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}

.weather-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 10px;
  background: var(--bg-light);
  text-align: center;
  transition: var(--transition);
}

.weather-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.weather-chip-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), rgba(22, 109, 204, 0.12));
  color: var(--primary);
  font-size: 1.05rem;
}

.weather-chip-currency .weather-chip-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.08));
  color: var(--success);
  font-weight: 700;
}

.weather-subheading {
  margin: 14px 0 8px;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.weather-panel-header + .weather-subheading {
  margin-top: 0;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 10px;
}

.weather-chip-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.weather-chip-body small {
  display: block;
  margin-top: 2px;
  color: var(--text-light);
  font-size: 0.7rem;
}

.weather-chip-currency .weather-chip-body strong {
  color: var(--success);
}

a.weather-chip {
  text-decoration: none;
  cursor: pointer;
}

a.weather-chip:hover {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), var(--shadow-sm);
}

.weather-chip-time {
  display: block;
  margin-top: 1px;
  color: var(--text-light);
  font-size: 0.64rem;
  opacity: 0.85;
}

.weather-source-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.68rem;
  text-align: right;
}

.weather-source-note a {
  color: var(--text-light);
  text-decoration: underline;
}

.weather-source-note a:hover {
  color: var(--primary);
}

@media (max-width: 480px) {
  .weather-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ===== Подвал ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: inline-block;
  max-width: 320px;
  padding: 10px;
  background: var(--bg-white);
  border-radius: 6px;
  line-height: 0;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand p {
  color: var(--footer-text);
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact p {
  color: var(--footer-text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contact-row {
  display: flex;
  min-height: 34px;
  margin-bottom: 6px;
  align-items: center;
  gap: 10px;
}

.footer-contact a {
  color: var(--footer-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact .telegram-link {
  color: #fff;
}

.telegram-link-small {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--footer-text);
}

/* ===== Адаптивность ===== */

/* Планшеты большие (1024px и выше) */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding: 0 20px;
  }

  .section-spacing {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

/* Планшеты (768px - 1023px) */
@media (max-width: 768px) {
  .buy-terminal-card {
    grid-template-columns: 1fr;
  }

  .buy-terminal-media {
    min-height: 220px;
    order: -1;
  }

  .buy-terminal-info {
    padding: 32px 24px;
  }

  .buy-terminal-title {
    font-size: 1.5rem;
  }

  .buy-terminal-price {
    font-size: 2.1rem;
  }

  .rahmatqr-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .rahmatqr-card-hero,
  .rahmatqr-card:nth-child(2),
  .rahmatqr-card:nth-child(3),
  .rahmatqr-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .rahmatqr-methods {
    padding: 24px;
  }

  .section-spacing {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
    border-radius: 20px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-stats {
    gap: 16px;
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-media {
    aspect-ratio: 3 / 2;
    border-radius: 12px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 20px;
  }

  .product-card:nth-child(1),
  .product-card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
  }

  .product-card:nth-child(1) .product-card-media,
  .product-card:nth-child(2) .product-card-media {
    flex: none;
    height: 180px;
    order: -1;
  }

  .product-card-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 30px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 12px 20px;
  }

  .container {
    width: calc(100% - 32px);
    padding: 0;
    max-width: none;
  }

  .stat {
    font-size: 0.9rem;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Мобильные телефоны (480px - 767px) */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .highlight {
    display: block;
  }

  .service-card {
    padding: 24px;
  }

  .service-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .features-list {
    gap: 8px;
  }

  .features-list li {
    font-size: 0.85rem;
  }

  .product-card-body {
    padding: 20px;
  }

  .product-card h3 {
    font-size: 1.05rem;
  }

  .product-card p {
    font-size: 0.85rem;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-item i {
    font-size: 1.5rem;
  }

  .contact-item h4 {
    font-size: 0.95rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .contact-form {
    padding: 24px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-input {
    font-size: 1rem;
    padding: 10px 12px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand,
  .footer-contact {
    padding: 0;
  }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 560px) {
  .section-spacing {
    padding: 40px 0;
  }

  .container {
    width: calc(100% - 24px);
    padding: 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .location-map {
    height: 190px;
  }

  .location-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .location-route {
    width: 100%;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .hero-ctas {
    gap: 10px;
  }

  .btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }

  .btn i {
    margin-right: 6px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat {
    gap: 4px;
  }

  .stat strong {
    font-size: 1.2rem;
  }

  .stat span {
    font-size: 0.75rem;
  }

  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 16px;
  }

  .product-card-body {
    padding: 18px;
  }

  .service-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .service-card h3,
  .product-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .service-card p,
  .product-card p {
    font-size: 0.8rem;
  }

  .about-text h2 {
    font-size: 1.3rem;
  }

  .about-text p {
    font-size: 0.85rem;
  }

  .about-image {
    min-height: 200px;
  }

  .contact-item {
    gap: 10px;
  }

  .contact-item i {
    font-size: 1.3rem;
  }

  .contact-item h4 {
    font-size: 0.9rem;
  }

  .contact-item p {
    font-size: 0.8rem;
  }

  .contact-form {
    padding: 16px;
  }

  .form-input {
    font-size: 16px;
    padding: 10px;
  }

  textarea.form-input {
    resize: vertical;
    max-height: 150px;
  }

  .navbar {
    padding: 0;
  }

  .header-container {
    padding: 0 16px;
    min-height: 64px;
  }

  .badge-beta {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .footer-content {
    margin-bottom: 20px;
  }

  .footer-brand h3,
  .footer-links h4,
  .footer-contact h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .footer-links ul,
  .footer-contact p {
    font-size: 0.8rem;
  }
}

