/*
 * Услуги (Services) 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;
  --bg-light: #f8f9fc;
  --line: #e7e7ea;
  --card: #ffffff;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-sm: 8px;
  --container: 1400px;
  --mobile-gutter: 16px;
  --touch-min: 44px;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::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;
  transition: color 0.2s var(--ease-out);
}

.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;
  transition: background 0.2s var(--ease-out);
}

.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;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.headIcon:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.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;
  transition: color 0.2s var(--ease-out);
}

.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 – Услуги */
.page {
  min-height: 40vh;
}

.uslugi-section {
  padding: 52px 0 60px;
  background: var(--bg-light);
}

.uslugi-section--process {
  padding: 44px 0 60px;
  background: #fff;
}

.uslugi-section__title {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
  text-align: center;
  line-height: 1.2;
}

.uslugi-section__subtitle {
  margin: 0 auto 40px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.uslugi-grid {
  display: grid;
  gap: 26px;
}

.uslugi-grid--six {
  grid-template-columns: repeat(3, 1fr);
}

.uslugi-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

/* Roadmap: Step 1 → Step 2 → Step 3 (one row with arrows) */
.uslugi-roadmap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 100%;
}

.uslugi-roadmap .uslugi-card--step {
  flex: 1 1 0;
  min-width: 0;
  max-width: 340px;
}

.uslugi-card__step {
  display: inline-block;
  margin: 0 0 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(0, 102, 204, 0.08);
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.uslugi-roadmap__sep {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  align-self: center;
}

.uslugi-roadmap__arrow {
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--red) 100%);
  border-radius: 1px;
  position: relative;
}

.uslugi-roadmap__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--red);
  border-right: 0;
  margin-right: -6px;
}

.uslugi-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.uslugi-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.uslugi-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--red);
}

.uslugi-card__icon svg {
  width: 56px;
  height: 56px;
  stroke: currentColor;
}

.uslugi-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
  line-height: 1.2;
}

.uslugi-card__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.uslugi-card__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  margin-top: auto;
  transition: color 0.2s var(--ease-out);
}

.uslugi-card__link:hover {
  color: var(--red-2);
  text-decoration: underline;
}

/* CTA */
.uslugi-cta {
  padding: 60px 0 68px;
  background: var(--bg-light);
  text-align: center;
}

.uslugi-cta__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.uslugi-cta__subtitle {
  margin: 0 auto 24px;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.uslugi-cta__btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.uslugi-cta__btn:hover {
  background: var(--red-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

/* 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;
  transition: color 0.2s var(--ease-out);
}

.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;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.toTop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@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;
  }

  .uslugi-grid--six {
    grid-template-columns: repeat(2, 1fr);
  }

  .uslugi-grid--three {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Roadmap: stack vertically with down-arrows */
  .uslugi-roadmap {
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .uslugi-roadmap .uslugi-card--step {
    max-width: 100%;
    width: 100%;
  }

  .uslugi-roadmap__sep {
    padding: 8px 0;
  }

  .uslugi-roadmap__arrow {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--line) 0%, var(--red) 100%);
  }

  .uslugi-roadmap__arrow::after {
    left: 50%;
    right: auto;
    top: 100%;
    margin-left: -6px;
    margin-top: -1px;
    border: 6px solid transparent;
    border-top-color: var(--red);
    border-bottom: 0;
  }
}

@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;
  }

  .uslugi-section {
    padding: 36px 0 44px;
  }

  .uslugi-section--process {
    padding: 32px 0 44px;
  }

  .uslugi-section__title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .uslugi-section__subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .uslugi-grid--six {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .uslugi-grid--three {
    max-width: none;
  }

  .uslugi-roadmap {
    max-width: none;
  }

  .uslugi-card {
    padding: 24px 20px;
    gap: 14px;
  }

  .uslugi-card__icon {
    width: 56px;
    height: 56px;
  }

  .uslugi-card__icon svg {
    width: 48px;
    height: 48px;
  }

  .uslugi-card__title {
    font-size: 18px;
  }

  .uslugi-card__desc {
    font-size: 14px;
  }

  .uslugi-cta {
    padding: 44px 0 52px;
  }

  .uslugi-cta__title {
    font-size: 24px;
  }

  .uslugi-cta__subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .uslugi-cta__btn {
    padding: 12px 28px;
    font-size: 15px;
    min-height: var(--touch-min);
  }

  .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;
  }

  .uslugi-section__title {
    font-size: 22px;
  }

  .uslugi-section__subtitle {
    font-size: 15px;
  }

  .uslugi-cta__title {
    font-size: 22px;
  }

  .footer__nav-wrap {
    padding: 18px 0;
  }

  .footer__link {
    font-size: 13px;
  }

  .footer__bottomInner {
    font-size: 12px;
  }
}
