/*
 * About page (За нас) – dedicated CSS only for this page.
 * Does not use or import any other CSS files.
 */

:root {
  --red: #0066cc;
  --red-2: #0052a3;
  --green: #19a45b;
  --dark: #141414;
  --text: #1c1c1c;
  --muted: #6a6a6a;
  --bg: #f6f7f9;
  --line: #e7e7ea;
  --card: #ffffff;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --radius-sm: 8px;
  --container: 1400px;
  --mobile-gutter: 16px;
  --touch-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Roboto Condensed", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 16px;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.topbar__center {
  color: #111;
  font-weight: 700;
  text-align: center;
}

.topbar__link {
  color: #3a3a3a;
}

.topbar__link:hover {
  color: #000;
  text-decoration: underline;
}

.topbar__dot {
  opacity: 0.55;
}

/* Masthead */
.masthead {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
}

.masthead.is-scrolled {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.masthead__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 16px 0;
}

.masthead__burger {
  display: none;
}

.icon-btn {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.burger {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.burger::before,
.burger::after,
.burger span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.burger::before {
  top: 0;
}

.burger span {
  top: 7px;
}

.burger::after {
  bottom: 0;
}

.brand {
  display: grid;
  line-height: 1;
  user-select: none;
}

.brand__logo-img {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.masthead__mid {
  display: flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
}

.contact {
  display: grid;
  grid-template-columns: 44px auto;
  gap: 10px;
  align-items: center;
  min-width: 240px;
}

.contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
}

.contact__icon svg {
  width: 22px;
  height: 22px;
  fill: #111;
  opacity: 0.9;
}

.contact__label {
  font-size: 12px;
  letter-spacing: 0.3px;
  color: #4a4a4a;
  font-weight: 700;
}

.contact__value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #111;
  line-height: 1.05;
}

.masthead__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.location {
  display: grid;
  grid-template-columns: 44px auto;
  gap: 10px;
  align-items: center;
}

.location__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
}

.location__icon svg {
  width: 22px;
  height: 22px;
  fill: #111;
  opacity: 0.9;
}

.location__text {
  display: grid;
  gap: 2px;
}

.location__label {
  font-size: 12px;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #333;
  line-height: 1.1;
}

.headIcons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.headIcon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  background: #fff;
}

.headIcon:hover {
  background: rgba(0, 0, 0, 0.04);
}

.headIcon svg {
  width: 22px;
  height: 22px;
  fill: #111;
}

.headIcon__badge {
  position: absolute;
  top: -7px;
  right: -7px;
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
}

/* Nav line */
.navline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.navline__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 14px;
}

.primary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.primary__link {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 15px;
  color: #111;
}

.primary__link:hover {
  color: var(--red);
}

.stock {
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}

.stock__sep {
  opacity: 0.5;
  margin: 0 6px;
}

/* Mobile nav (overlay + drawer) from index.html – use styles.css */

/* Page content – За нас only */
.page {
  min-height: 40vh;
}

/* Hero */
.about-hero {
  padding: 48px 0 40px;
  background: linear-gradient(135deg, #0a4a77 0%, var(--red) 50%, #0a5c8a 100%);
  color: #fff;
  text-align: center;
}

.about-hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.about-hero__title {
  margin: 0 0 14px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #fff;
}

.about-hero__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Stats */
.about-stats {
  padding: 32px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.about-stat {
  padding: 12px;
}

.about-stat__num {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.about-stat__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 6px;
}

/* Main content */
.about-content {
  padding: 48px 0 64px;
  background: var(--bg);
}

.about-content__grid {
  display: grid;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.about-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.about-block--accent {
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.04) 0%, #fff 12%);
}

.about-block--cta {
  background: linear-gradient(135deg, #f0f7fc 0%, #fff 100%);
  border-color: rgba(0, 102, 204, 0.2);
}

.about-block__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.about-block__text {
  margin: 0 0 12px;
  line-height: 1.65;
  color: var(--text);
}

.about-block__text:last-of-type {
  margin-bottom: 0;
}

.about-block a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.about-block a:hover {
  color: var(--red-2);
}

/* List */
.about-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.75;
  color: var(--text);
}

.about-list li {
  margin-bottom: 10px;
}

.about-list li:last-child {
  margin-bottom: 0;
}

.about-list strong {
  color: var(--dark);
}

/* Cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.about-card {
  padding: 20px;
  background: #f8fafb;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.about-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}

.about-card__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.about-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* CTA button */
.about-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--red);
  color: #fff !important;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background 160ms ease, transform 160ms ease;
}

.about-cta:hover {
  background: var(--red-2);
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: #0f0f10;
  color: #e9e9e9;
}

.footer__nav-wrap {
  padding: 28px 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
}

.footer__link {
  color: #cfcfd3;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer a {
  color: #cfcfd3;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.footer__bottomInner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #b8b8be;
  font-size: 13px;
}

.footer__brand {
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.85;
}

/* To top */
.toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  height: 44px;
  width: 44px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
  z-index: 65;
}

.toTop:hover {
  transform: translateY(-1px);
}

/* Responsive – layout and shared components only */
@media (max-width: 920px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .topbar__left,
  .topbar__right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .masthead__inner {
    grid-template-columns: auto 1fr auto;
  }

  .masthead__mid {
    justify-content: flex-start;
    gap: 14px;
  }

  .contact {
    min-width: 0;
  }

  .contact__value {
    font-size: 18px;
  }

  .location {
    display: none;
  }

  .navline__inner {
    gap: 10px;
  }

  .primary {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - var(--mobile-gutter) * 2);
    max-width: 100%;
  }

  .topbar__inner {
    padding: 10px 0;
    gap: 8px;
  }

  .topbar__center {
    font-size: 13px;
    line-height: 1.3;
  }

  .masthead__inner {
    padding: 12px 0;
    gap: 12px;
  }

  .masthead__burger {
    display: inline-grid;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    padding: 10px;
  }

  .masthead__mid {
    display: none;
  }

  .brand__logo-img {
    max-height: 42px;
  }

  .headIcon,
  .headIcon--cart {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    width: 44px;
    height: 44px;
  }

  .navline__inner {
    padding: 8px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stock {
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }

  .about-hero {
    padding: 36px 0 32px;
  }

  .about-hero__title {
    font-size: 28px;
  }

  .about-hero__lead {
    font-size: 16px;
  }

  .about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-stat__num {
    font-size: 28px;
  }

  .about-stat__label {
    font-size: 12px;
  }

  .about-content {
    padding: 32px 0 48px;
  }

  .about-block {
    padding: 22px 20px;
  }

  .about-block__title {
    font-size: 20px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .footer__nav-wrap {
    padding: 22px 0;
  }

  .footer__nav {
    gap: 8px 18px;
  }

  .footer__link {
    font-size: 14px;
  }

  .footer__bottomInner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .toTop {
    right: calc(18px + env(safe-area-inset-right, 0));
    bottom: calc(18px + env(safe-area-inset-bottom, 0));
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
}

@media (max-width: 440px) {
  .container {
    width: calc(100% - 20px);
  }

  .topbar__inner {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .topbar__left,
  .topbar__right {
    justify-content: center;
  }

  .topbar__center {
    font-size: 12px;
  }

  .brand__logo-img {
    max-height: 38px;
  }

  .about-hero__title {
    font-size: 24px;
  }

  .about-hero__lead {
    font-size: 15px;
  }

  .about-stats__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-block__title {
    font-size: 18px;
  }

  .footer__nav-wrap {
    padding: 18px 0;
  }

  .footer__link {
    font-size: 13px;
  }

  .footer__bottomInner {
    font-size: 12px;
  }
}
