:root {
  --bg: #f2f5f9;
  --panel: #ffffff;
  --panel-alt: #e7eef7;
  --ink: #0f172a;
  --muted: #5b6576;
  --line: rgba(15, 23, 42, 0.1);
  --blue: #1d4ed8;
  --blue-deep: #0f2b66;
  --orange: #f97316;
  --orange-soft: #fff0e5;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.09), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 35%, #eef2f7 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 160px;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.main-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(29, 78, 216, 0.08);
  color: var(--blue-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotline {
  display: grid;
  gap: 2px;
  text-align: right;
}

.hotline strong {
  font-size: 1rem;
}

.hotline span {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #173584 100%);
  box-shadow: 0 16px 40px rgba(29, 78, 216, 0.25);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
}

.btn-accent {
  color: #1e1b14;
  background: linear-gradient(135deg, #ffb66c 0%, var(--orange) 100%);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
}

.hero {
  padding: 42px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.hero-panel,
.hero-aside,
.surface,
.cta-band,
.catalog-shell,
.cabinet-shell,
.auth-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.96), rgba(15, 43, 102, 0.98)),
    #173584;
  color: #fff;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.4), rgba(249, 115, 22, 0));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.hero h1,
.section-head h2,
.cta-band h2,
.auth-shell h1,
.cabinet-title h1 {
  margin: 16px 0 14px;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.hero-search {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.metric {
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.metric span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.hero-aside {
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(255, 240, 229, 0.95) 0%, rgba(255, 255, 255, 0.98) 72%);
}

.summary-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.summary-card + .summary-card {
  margin-top: 16px;
}

.summary-card h3,
.product-card h3,
.feature-card h3,
.contact-card h3,
.account-widget h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.summary-badge,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.summary-badge {
  background: var(--orange-soft);
  color: #8f3b00;
}

.tag {
  background: rgba(29, 78, 216, 0.08);
  color: var(--blue-deep);
}

.layout {
  display: grid;
  gap: 24px;
  padding-bottom: 64px;
}

.surface {
  padding: 30px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.6;
}

.brand-grid,
.feature-grid,
.contact-grid,
.catalog-grid,
.dashboard-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

.brand-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brand-chip {
  padding: 18px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f1f6fb 100%);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.brand-chip strong {
  display: block;
  font-size: 1rem;
}

.brand-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.contact-card,
.account-widget {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid var(--line);
}

.feature-card p,
.contact-card p,
.account-widget p,
.catalog-shell p,
.auth-shell p,
.cabinet-title p {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-shell,
.cabinet-shell,
.auth-shell {
  padding: 30px;
}

.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.product-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.product-art {
  position: relative;
  min-height: 150px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(249, 115, 22, 0.12)),
    #edf3fb;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.product-art::before {
  width: 120px;
  height: 120px;
  top: -26px;
  right: -20px;
}

.product-art::after {
  width: 180px;
  height: 18px;
  left: 16px;
  bottom: 18px;
}

.product-shape {
  position: absolute;
  inset: auto 18px 36px 18px;
  height: 56px;
  border-radius: 30px 20px 26px 12px;
  background: linear-gradient(135deg, #0f172a, #334155);
  transform: skewX(-14deg);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}

.product-bullets {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.product-bullets li::before {
  content: "•";
  margin-right: 8px;
  color: var(--orange);
}

.cta-band {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 43, 102, 0.95));
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 64ch;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  margin-top: 20px;
  padding: 28px 0 44px;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, #111c2d 0%, #0b1320 100%);
  color: #f8fafc;
}

.footer-shell p,
.footer-shell a {
  color: rgba(248, 250, 252, 0.72);
}

.footer-shell h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.auth-shell {
  max-width: 560px;
  margin: 28px auto 64px;
}

.auth-grid {
  display: grid;
  gap: 14px;
}

.label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.cabinet-shell {
  margin-top: 24px;
}

.cabinet-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f6f9fd 100%);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.dashboard-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.table-shell {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.94rem;
}

th {
  background: #f5f8fc;
  color: var(--muted);
  font-weight: 700;
}

.empty-state,
.flash {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.empty-state {
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
}

.flash {
  display: none;
  margin-top: 14px;
}

.flash.is-visible {
  display: block;
}

.flash-success {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.flash-info {
  background: rgba(29, 78, 216, 0.1);
  color: #173584;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.helper-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(29, 78, 216, 0.1));
}

.mini-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .contact-grid,
  .catalog-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero-panel,
  .hero-aside,
  .surface,
  .catalog-shell,
  .cabinet-shell,
  .auth-shell,
  .cta-band {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-search,
  .cta-actions,
  .header-actions,
  .cabinet-title,
  .helper-strip,
  .split {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature-grid,
  .contact-grid,
  .catalog-grid,
  .brand-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hotline {
    text-align: left;
  }
}
