/* Вектор-Уфа — clean static redesign */
:root {
  --blue: #3f6db8;
  --blue-dark: #1477b8;
  --cyan: #5ccafd;
  --navy: #485683;
  --ink: #1e2a3a;
  --muted: #5a6a7d;
  --bg: #f4f8fc;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(31, 64, 112, 0.12);
  --header-h: 72px;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration: none;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(63, 109, 184, 0.15);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(63, 109, 184, 0.1);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #7ec8f0 0%, #a8dcf5 35%, #c8e9f8 60%, #e8f4fb 100%);
}

.hero-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layers .layer {
  position: absolute;
  inset: 0;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

.hero-layers .layer-0 {
  background-image: url("../images/homepage_paralax/layer_00_ver1.jpg");
  background-size: cover;
  background-position: center;
}

.hero-layers .layer-1 {
  background-image: url("../images/homepage_paralax/layer_01_ver1.png");
  background-size: contain;
  background-position: center bottom;
}

.hero-layers .layer-2 {
  background-image: url("../images/homepage_paralax/layer_03_ver1.png");
  background-size: contain;
  background-position: center bottom;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px 120px;
  max-width: 820px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.hero-content h1 span {
  color: var(--blue-dark);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 64, 112, 0.25);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--blue-dark);
}

.btn-light:hover {
  background: var(--cyan);
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 20px;
}

.section-alt {
  background: #fff;
}

.section-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--navy);
}

.section-blue .section-title {
  color: #fff;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 44px;
  font-size: 1.05rem;
}

.section-blue .section-lead {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--cyan);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.15rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Prose (lessons, tandem) ---------- */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 40px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 14px;
  color: var(--ink);
}

.prose ul {
  margin: 0 0 14px 1.3em;
  color: var(--ink);
}

.prose li {
  margin-bottom: 6px;
}

/* ---------- Shop ---------- */
.shop-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.shop-cat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--blue-dark);
  border-bottom: 3px solid var(--cyan);
  transition: transform 0.15s;
}

.shop-cat:hover {
  transform: translateY(-3px);
  color: var(--blue);
}

.brand-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.brand-block h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(92, 202, 253, 0.35);
}

.brand-block .origin {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-tags span {
  background: rgba(63, 109, 184, 0.1);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.product-sample {
  margin-top: 48px;
  background: linear-gradient(135deg, #eef5fc, #fff);
  border: 1px solid rgba(63, 109, 184, 0.2);
  border-radius: var(--radius);
  padding: 32px;
}

.product-sample h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.product-sample .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 12px 0;
}

.product-sample p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Product catalog */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  overflow: hidden;
  transition: transform 0.15s;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card details {
  padding: 0;
}

.product-card summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card summary::-webkit-details-marker {
  display: none;
}

.product-card .p-brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.product-card .p-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.product-card .p-name::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--blue);
  flex-shrink: 0;
}

.product-card details[open] .p-name::after {
  content: "−";
}

.product-card .p-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 4px;
}

.product-card .p-price {
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.product-card .p-body {
  padding: 0 20px 18px;
  border-top: 1px solid rgba(63, 109, 184, 0.12);
  margin-top: 8px;
  padding-top: 12px;
}

.product-card .p-body p {
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.product-card .p-body p:last-child {
  margin-bottom: 0;
}

.product-section-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(92, 202, 253, 0.4);
}

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--blue-dark);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.contact-card p,
.contact-card a {
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
}

.contact-card a:hover {
  color: var(--blue-dark);
}

.contact-card .role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-card .name {
  font-weight: 700;
  margin-bottom: 4px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(63, 109, 184, 0.1);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.social-row a:hover {
  background: var(--blue);
  color: #fff;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
}

.cta-band .phones {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 24px 0 28px;
  font-size: 1.15rem;
  font-weight: 600;
}

.cta-band .phones a {
  color: #fff;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.5);
}

.cta-band .phones a:hover {
  border-bottom-color: #fff;
  color: var(--cyan);
}

.cta-band .social-row a {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cta-band .social-row a:hover {
  background: #fff;
  color: var(--blue-dark);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 56px 20px 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-inner h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.footer-inner a:hover {
  color: var(--cyan);
}

.footer-inner p {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(63, 109, 184, 0.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1.05rem;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 0 12px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .step::before {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 52px 16px;
  }
}
