﻿:root {
  --polytech-blue: #0d3b78;
  --polytech-blue-deep: #08274f;
  --polytech-blue-soft: #dbe8f6;
  --polytech-red: #c73b3b;
  --polytech-red-soft: rgba(199, 59, 59, 0.12);
  --polytech-ink: #142033;
  --polytech-muted: #5f6f86;
  --polytech-line: rgba(13, 59, 120, 0.14);
  --polytech-surface: rgba(255, 255, 255, 0.92);
  --polytech-shadow: 0 24px 60px rgba(8, 39, 79, 0.16);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--polytech-ink);
  background:
    radial-gradient(circle at top left, rgba(219, 232, 246, 0.95), transparent 28%),
    linear-gradient(180deg, #eff4f9 0%, #f8fafc 40%, #edf3f8 100%);
}

code {
  color: var(--polytech-blue-deep);
}

.app-shell {
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

.site-header__line {
  height: 6px;
  background: linear-gradient(90deg, var(--polytech-blue-deep) 0%, var(--polytech-blue) 70%, var(--polytech-red) 100%);
}

.site-navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 59, 120, 0.08);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--polytech-blue) 0%, var(--polytech-blue-deep) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(13, 59, 120, 0.22);
}

.site-brand__title,
.site-brand__subtitle {
  display: block;
}

.site-brand__title {
  color: var(--polytech-blue-deep);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-brand__subtitle {
  margin-top: 0.2rem;
  color: var(--polytech-muted);
  font-size: 0.8rem;
}

.site-nav__link {
  color: var(--polytech-ink);
  font-weight: 600;
}

.site-nav__link:hover,
.site-nav__link:focus {
  color: var(--polytech-blue);
}

.site-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--polytech-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-nav__button:hover,
.site-nav__button:focus {
  background: var(--polytech-blue-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(13, 59, 120, 0.18);
}

.site-nav__button--secondary {
  background: rgba(13, 59, 120, 0.08);
  color: var(--polytech-blue-deep);
}

.site-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(13, 59, 120, 0.08);
  color: var(--polytech-blue-deep);
  font-weight: 700;
}

.site-user-pill--hero {
  background: rgba(255, 255, 255, 0.82);
}

.site-logout-form {
  margin: 0;
}

.eyebrow,
.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--polytech-blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-heading__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--polytech-red);
}

.store-hero,
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.store-hero::before,
.store-hero::after,
.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.store-hero::before,
.auth-hero::before {
  top: -12rem;
  right: -7rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(13, 59, 120, 0.16), transparent 68%);
}

.store-hero::after,
.auth-hero::after {
  bottom: -10rem;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(199, 59, 59, 0.1), transparent 70%);
}

.store-hero__grid,
.auth-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 460px);
  gap: 2rem;
  align-items: stretch;
}

.store-hero__content,
.auth-hero__content,
.store-hero__panel,
.auth-panel {
  position: relative;
  z-index: 1;
}

.store-hero__title,
.auth-hero__title {
  max-width: 12ch;
  margin: 1rem 0 0;
  color: var(--polytech-blue-deep);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.98;
  font-weight: 800;
}

.store-hero__text,
.auth-hero__text {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--polytech-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.store-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.hero-link,
.auth-link {
  color: var(--polytech-blue);
  font-weight: 700;
  text-decoration: none;
}

.hero-link:hover,
.auth-link:hover {
  color: var(--polytech-blue-deep);
}

.hero-metrics,
.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metric,
.auth-stat,
.store-hero__panel,
.auth-panel,
.empty-panel,
.category-tile,
.product-card,
.promotion-card {
  background: var(--polytech-surface);
  border: 1px solid var(--polytech-line);
  box-shadow: var(--polytech-shadow);
}

.hero-metric,
.auth-stat {
  border-radius: 1.35rem;
  padding: 1.2rem;
}

.hero-metric__value,
.auth-stat__value {
  display: block;
  color: var(--polytech-blue-deep);
  font-size: 1.4rem;
  font-weight: 800;
}

.hero-metric__label,
.auth-stat__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--polytech-muted);
  line-height: 1.5;
}

.store-hero__panel,
.auth-panel {
  align-self: start;
  border-radius: 1.75rem;
  padding: 1.8rem;
}

.store-hero__panel-badge,
.auth-panel__badge {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(13, 59, 120, 0.1);
  color: var(--polytech-blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.store-hero__panel h2,
.auth-panel__title {
  margin: 1rem 0 0;
  color: var(--polytech-blue-deep);
  font-size: 1.8rem;
  font-weight: 800;
}

.store-hero__panel p,
.auth-panel__subtitle {
  margin: 0.7rem 0 0;
  color: var(--polytech-muted);
  line-height: 1.7;
}

.store-hero__checklist {
  margin: 1.3rem 0 0;
  padding-left: 1.15rem;
  color: var(--polytech-muted);
}

.store-hero__checklist li + li {
  margin-top: 0.55rem;
}

.catalog-section,
.categories-section,
.promotions-section {
  padding: 0 0 4.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.section-heading__title {
  margin: 0.65rem 0 0;
  color: var(--polytech-blue-deep);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
}

.section-heading__text {
  max-width: 36rem;
  margin: 0;
  color: var(--polytech-muted);
  line-height: 1.7;
}

.empty-panel {
  border-radius: 1.35rem;
  padding: 1.4rem;
  color: var(--polytech-muted);
}

.product-grid,
.category-grid,
.promotion-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

.product-card {
  overflow: hidden;
  border-radius: 1.5rem;
}

.product-card__media {
  height: 12.5rem;
  background: linear-gradient(145deg, rgba(13, 59, 120, 0.1), rgba(219, 232, 246, 0.9));
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: var(--polytech-blue-deep);
  font-weight: 800;
  text-align: center;
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__category {
  color: var(--polytech-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card__title {
  margin: 0.75rem 0 0;
  color: var(--polytech-blue-deep);
  font-size: 1.2rem;
  font-weight: 800;
}

.product-card__description {
  margin: 0.75rem 0 0;
  color: var(--polytech-muted);
  line-height: 1.65;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.05rem;
}

.product-card__price {
  color: var(--polytech-blue-deep);
  font-size: 1.15rem;
  font-weight: 800;
}

.product-card__stock {
  color: var(--polytech-muted);
  font-size: 0.9rem;
}

.category-tile,
.promotion-card {
  border-radius: 1.45rem;
  padding: 1.35rem;
}

.category-tile__count {
  width: fit-content;
  min-width: 3rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(13, 59, 120, 0.08);
  color: var(--polytech-blue-deep);
  font-weight: 800;
}

.category-tile__title,
.promotion-card__title {
  margin: 1rem 0 0;
  color: var(--polytech-blue-deep);
  font-size: 1.25rem;
  font-weight: 800;
}

.category-tile__text,
.promotion-card__description {
  margin: 0.7rem 0 0;
  color: var(--polytech-muted);
  line-height: 1.7;
}

.promotion-card__badge {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--polytech-red-soft);
  color: var(--polytech-red);
  font-weight: 800;
}

.promotion-card__dates {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  color: var(--polytech-blue);
  font-weight: 700;
}

.auth-form {
  margin-top: 1.5rem;
}

.auth-field + .auth-field {
  margin-top: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--polytech-ink);
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(13, 59, 120, 0.16);
  border-radius: 1rem;
  background: #fff;
  color: var(--polytech-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: rgba(13, 59, 120, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(13, 59, 120, 0.1);
}

.auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--polytech-muted);
  font-size: 0.95rem;
}

.auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--polytech-blue);
}

.auth-link--strong {
  color: var(--polytech-red);
}

.auth-submit {
  width: 100%;
  margin-top: 1.2rem;
  min-height: 3.5rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--polytech-blue) 0%, var(--polytech-blue-deep) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(8, 39, 79, 0.22);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0 1rem;
  color: var(--polytech-muted);
  font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(13, 59, 120, 0.12);
}

.social-login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.social-login__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(13, 59, 120, 0.14);
  border-radius: 1rem;
  background: #fff;
  color: var(--polytech-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-login__button:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 59, 120, 0.35);
  box-shadow: 0 12px 22px rgba(8, 39, 79, 0.08);
}

.social-login__button--vk {
  background: #edf5ff;
  color: #0a66c2;
}

.auth-panel__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  color: var(--polytech-muted);
}

.auth-alert {
  margin-top: 1rem;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  line-height: 1.6;
}

.auth-alert--info {
  background: rgba(13, 59, 120, 0.08);
  color: var(--polytech-blue-deep);
}

.auth-alert--error {
  background: rgba(199, 59, 59, 0.1);
  color: #922f2f;
}

.auth-alert--error:empty {
  display: none;
}

.field-validation {
  display: inline-block;
  margin-top: 0.45rem;
  color: #922f2f;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(13, 59, 120, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
}

.site-footer__title {
  color: var(--polytech-blue-deep);
  font-weight: 800;
}

.site-footer__text,
.site-footer__meta {
  color: var(--polytech-muted);
}

@media (max-width: 1199.98px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    padding: 0.85rem 0;
  }

  .store-hero,
  .auth-hero {
    padding: 3rem 0 4rem;
  }

  .store-hero__grid,
  .auth-hero__grid,
  .section-heading,
  .product-grid,
  .category-grid,
  .promotion-grid {
    grid-template-columns: 1fr;
  }

  .store-hero__title,
  .auth-hero__title {
    max-width: none;
  }

  .section-heading {
    align-items: start;
  }
}

@media (max-width: 767.98px) {
  .hero-metrics,
  .auth-stats,
  .social-login,
  .category-grid,
  .promotion-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .auth-form__row,
  .site-footer__inner,
  .auth-panel__footer,
  .product-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-panel__footer {
    align-items: center;
  }

  .store-hero__title,
  .auth-hero__title {
    font-size: 2.35rem;
  }

  .store-hero__panel,
  .auth-panel {
    padding: 1.25rem;
    border-radius: 1.35rem;
  }
}
