/* AZIA TECHNO PROGRESS — светлая дизайн-система */

:root {
  --color-bg: #FFFFFF;
  --color-surface-alt: #F3F7FD;
  --color-border: #DCE6F2;
  --color-text: #16233B;
  --color-text-muted: #5B6B84;

  --color-blue: #1D5FD1;
  --color-blue-deep: #0F3D8C;
  --color-blue-pale: #E4EDFB;
  --color-blue-pale-2: #EAF1FC;

  --color-footer-bg: #0B2347;
  --color-footer-text: #9FB4D6;

  --gold: var(--color-blue);
  --gold-light: var(--color-blue);
  --gold-dim: var(--color-blue-pale);
  --gold-border: var(--color-border);
  --gold-tint: var(--color-blue-pale);
  --gold-accent: var(--color-blue);
  --gold-gradient: var(--color-blue-deep);
  --gold-text-gradient: none;
  --icon-gold: var(--color-blue);

  --bg: var(--color-bg);
  --card: var(--color-bg);
  --card2: var(--color-surface-alt);
  --border: var(--color-border);
  --text: var(--color-text);
  --muted: var(--color-text-muted);

  --font-heading: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--font-heading);
  --sans: var(--font-body);

  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 12px;
  --site-topbar-h: 0px;
  --site-header-h: 72px;
  --site-chrome-h: calc(var(--site-topbar-h) + var(--site-header-h));
  --container: 1440px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.page-hero h1,
.home-h1,
.home-h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-blue);
}

img, svg {
  max-width: 100%;
}

/* Buttons */
.btn-gold,
.btn-primary,
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-blue-deep);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border: 1px solid var(--color-blue-deep);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-gold:hover,
.btn-primary:hover {
  background: #0c3274;
  border-color: #0c3274;
  filter: none;
  transform: none;
  box-shadow: none;
}

.btn-outline,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--color-blue);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border: 1px solid var(--color-blue);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover,
.btn-secondary:hover {
  background: var(--color-blue-pale);
  color: var(--color-blue-deep);
  border-color: var(--color-blue);
}

.icon-svg svg {
  stroke: var(--color-blue);
  fill: none;
}

/* Top bar — скрыт */
.site-topbar {
  display: none !important;
}

.site-topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-topbar__note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-topbar__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.site-topbar a {
  color: var(--color-blue-deep);
  text-decoration: none;
  font-weight: 600;
}

.site-topbar a:hover {
  color: var(--color-blue);
}

/* Header */
header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 max(24px, calc((100% - var(--container)) / 2 + 40px));
  height: var(--site-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.scrolled,
.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--color-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

header nav {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
}

header nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

header nav a:hover,
header nav a.active {
  color: var(--color-blue-deep);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  height: 40px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 0;
  width: 220px;
  flex-shrink: 1;
}

.header-search input {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 0 4px 0 12px;
  outline: none;
  line-height: 40px;
  height: 40px;
}

.header-search input::placeholder {
  color: var(--color-text-muted);
}

.header-search button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--color-blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.burger-btn span {
  background: var(--color-blue-deep);
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu nav a {
  font-family: var(--font-heading);
  color: var(--color-text);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
  color: var(--color-blue-deep);
}

.mobile-menu__search .header-search {
  display: flex;
  width: 100%;
  min-width: 0;
}

.mobile-menu__search .header-search input {
  flex: 1;
  width: auto;
}

/* Shared layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 8px;
  line-height: 1.2;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
}

.fade-in,
.fade-in.visible,
.reveal,
.reveal.visible,
.about-hero__content {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

/* Product cards */
.product-card,
.home-new-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover,
.home-new-card:hover {
  border-color: var(--color-blue);
  box-shadow: none;
  transform: none;
}

.product-body,
.home-new-card__body,
.sim-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-body h3,
.home-new-card__title,
.sim-body h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-body .product-price,
.home-new-card__price,
.sim-price {
  margin-top: auto;
}

.product-price {
  color: var(--color-blue-deep);
  font-weight: 700;
  background: none !important;
  -webkit-text-fill-color: var(--color-blue-deep) !important;
}

.btn-order,
.btn-order-main,
.btn-cart {
  background: var(--color-blue-deep) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid var(--color-blue-deep) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  animation: none !important;
}

.product-flag--hit {
  background: var(--color-blue-deep);
  color: #fff;
  box-shadow: none;
}

.product-flag--new {
  background: var(--color-blue);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .header-search {
    width: 160px;
  }

  header nav {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --site-topbar-h: 0px;
    --site-header-h: 64px;
  }

  .site-topbar__inner,
  header,
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-topbar__meta {
    gap: 10px;
  }

  .site-topbar__hours {
    display: none;
  }

  header nav,
  header .header-search,
  .header-phones,
  .header-right .btn-gold {
    display: none;
  }
}
