@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap");

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header v2 */
.v2-header {
  background: var(--color-primary);
  color: var(--color-text-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.v2-header__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.v2-header__top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.v2-header__top a {
  color: rgba(255, 255, 255, 0.75);
}

.v2-header__top a:hover { color: #fff; }

.v2-header__tagline {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.v2-header__phone {
  font-weight: 600;
  color: var(--color-accent) !important;
  flex-shrink: 0;
}

.v2-header__main .container {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.v2-logo img {
  height: 52px;
  filter: brightness(0) invert(1);
}

.v2-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.v2-nav a {
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.v2-nav a:hover,
.v2-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.v2-nav a.active {
  box-shadow: inset 0 -2px 0 var(--color-accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.v2-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.v2-search-btn,
.v2-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.v2-search-btn:hover,
.v2-cart-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.v2-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

.v2-catalog-bar {
  background: var(--color-primary-light);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.v2-catalog-bar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.v2-catalog-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.v2-catalog-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.v2-catalog-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.v2-catalog-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.v2-catalog-links a:hover { color: #fff; }

.v2-offer {
  margin-left: auto;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
}

/* Hero v2 */
.v2-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.v2-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

.v2-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 36, 0.92) 0%, rgba(26, 39, 68, 0.75) 45%, rgba(26, 39, 68, 0.4) 100%);
}

.v2-hero__slides { position: absolute; inset: 0; }

.v2-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.v2-hero__slide.active { opacity: 1; z-index: 1; }

.v2-hero__slide .v2-hero__bg { position: absolute; inset: 0; }

.v2-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.v2-hero__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.v2-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  max-width: 640px;
}

.v2-hero__text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 0 32px;
}

.v2-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.v2-btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

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

.v2-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.v2-btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

.v2-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v2-hero__link {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background var(--transition), border-color var(--transition);
}

.v2-hero__link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.v2-hero__nav {
  position: absolute;
  bottom: 32px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.v2-hero__dot {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.v2-hero__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
}

.v2-hero__dot.active::after {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Categories v2 */
.v2-categories {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding-bottom: 60px;
}

.v2-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.v2-category-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.v2-category-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-category-card__icon img {
  width: 32px;
  height: 32px;
}

.v2-category-card h3 {
  font-size: 18px;
  margin: 0;
}

.v2-category-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
}

.v2-category-card__link {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stats */
.v2-stats {
  background: var(--color-bg-muted);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.v2-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.v2-stat__num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.v2-stat__label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Products v2 */
.v2-products {
  padding: 80px 0;
}

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

.v2-section-head h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}

.v2-section-head p {
  margin: 0;
  color: var(--color-text-muted);
}

.v2-tabs {
  display: flex;
  background: var(--color-bg-muted);
  padding: 4px;
  border-radius: var(--radius-md);
}

.v2-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.v2-tab.active {
  background: var(--color-surface);
  color: var(--color-heading);
  box-shadow: var(--shadow-sm);
}

.v2-tab-panel { display: none; }
.v2-tab-panel.active { display: block; }

.v2-products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.v2-product {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.v2-product:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.v2-product__img {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg-muted);
  overflow: hidden;
}

.v2-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.v2-product:hover .v2-product__img img { transform: scale(1.06); }

.v2-product__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.v2-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.v2-badge--sale { background: #ef4444; color: #fff; }
.v2-badge--new { background: var(--color-primary); color: #fff; }

.v2-product__body { padding: 20px; }

.v2-product__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.45;
  min-height: 42px;
}

.v2-product__title a { color: var(--color-heading); }
.v2-product__title a:hover { color: var(--color-accent); }

.v2-product__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.v2-price-old {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 13px;
}

.v2-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

.v2-product__btn {
  width: 100%;
  padding: 12px;
  background: var(--color-bg-muted);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-heading);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.v2-product:hover .v2-product__btn {
  background: var(--color-accent);
  color: #fff;
}

/* Features v2 */
.v2-features {
  padding: 80px 0;
  background: var(--color-primary);
  color: #fff;
}

.v2-features .v2-section-head h2 { color: #fff; }
.v2-features .v2-section-head p { color: rgba(255, 255, 255, 0.6); }

.v2-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.v2-feature {
  background: var(--color-primary);
  padding: 32px 24px;
  text-align: center;
}

.v2-feature__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.v2-feature h3 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 8px;
}

.v2-feature p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Blog v2 */
.v2-blog {
  padding: 80px 0;
  background: var(--color-bg-muted);
}

.v2-blog__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.v2-article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition);
}

.v2-article:hover { transform: translateY(-4px); }

.v2-article--featured { grid-row: span 1; }

.v2-article__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.v2-article--featured .v2-article__img { aspect-ratio: 16/11; }

.v2-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-article__body { padding: 24px; }

.v2-article__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.v2-article__title {
  font-size: 17px;
  margin: 0 0 10px;
  line-height: 1.35;
}

.v2-article--featured .v2-article__title { font-size: 22px; }

.v2-article__title a { color: var(--color-heading); }
.v2-article__title a:hover { color: var(--color-accent); }

.v2-article__excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}

.v2-article__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* CTA v2 */
.v2-cta {
  padding: 80px 0;
}

.v2-cta__box {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(232, 93, 4, 0.3);
}

.v2-cta__box h2 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 12px;
}

.v2-cta__box p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.v2-cta__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 24px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-align: center;
  transition: background var(--transition);
}

.v2-cta__phone:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.v2-cta__phone span {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.v2-cta__phone strong {
  font-size: 24px;
  font-family: var(--font-heading);
}

/* Footer v2 */
.v2-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.65);
}

.v2-footer__main {
  padding: 60px 0 40px;
}

.v2-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
}

.v2-footer__logo img {
  max-width: 240px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.v2-footer__about p { margin: 0 0 20px; line-height: 1.8; }

.v2-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.v2-footer__links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  font-size: 14px;
}

.v2-footer__links a:hover { color: var(--color-accent); }

.v2-footer__contacts span {
  display: block;
  padding: 6px 0;
  font-size: 14px;
}

.v2-footer__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 180px;
  margin-top: 12px;
}

.v2-footer__map iframe { width: 100%; height: 100%; border: 0; }

.v2-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.v2-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.v2-footer__bottom a { color: rgba(255, 255, 255, 0.6); }

.v2-call {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  right: max(16px, calc(env(safe-area-inset-right, 0px) + 8px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transition: transform var(--transition);
}

.v2-call:hover { transform: scale(1.08); color: #fff; }

/* Mobile nav reuse */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-bg);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 20px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .v2-nav, .v2-catalog-links, .v2-offer { display: none; }
  .v2-burger { display: flex; }
  .v2-header__main .container { grid-template-columns: auto 1fr auto; }
  .v2-categories__grid { grid-template-columns: 1fr; }
  .v2-products__grid { grid-template-columns: repeat(2, 1fr); }
  .v2-features__grid { grid-template-columns: repeat(2, 1fr); }
  .v2-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .v2-blog__grid { grid-template-columns: 1fr; }
  .v2-footer__grid { grid-template-columns: 1fr; }
  .v2-cta__box { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .v2-header__tagline { display: none; }
  .v2-header__top .container { justify-content: flex-end; }
  .v2-header__main .container {
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .v2-logo img { height: 40px; }
  .v2-header__actions { gap: 8px; }
  .v2-search-btn .v2-btn-text { display: none; }
  .v2-search-btn { padding: 10px 12px; min-width: 44px; }
  .v2-cart-btn { padding: 10px 12px; font-size: 12px; }

  .v2-products__grid { grid-template-columns: 1fr; }
  .v2-features__grid { grid-template-columns: 1fr; }
  .v2-stats__grid { grid-template-columns: 1fr; }
  .v2-hero { min-height: 480px; }
  .v2-categories { margin-top: -40px; }
}
