/* ===== IMPORTS & BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@700;800;900&display=swap');

:root {
  --lego-red: #E3000B;
  --lego-yellow: #FFCF00;
  --lego-blue: #006CB7;
  --lego-green: #009639;
  --lego-orange: #FF7F00;
  --lego-dark: #0f172a;
  --lego-light: #f8fafc;
  --wb-purple: #8b3df0;
  --avito-blue: #00AAFF;
  --tg-blue: #0088cc;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
  --container-max: 1240px;
  --header-height: 85px;
}

/* ===== GLOBAL ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--lego-light);
  color: var(--lego-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--lego-red), var(--lego-yellow)); border-radius: 6px; }
::selection { background: var(--lego-yellow); color: var(--lego-dark); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ===== UTILITIES ===== */
.section-title { font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900; text-align: center; margin-bottom: 16px; position: relative; letter-spacing: -0.5px; padding: 0 10px; }
.section-subtitle { text-align: center; font-size: clamp(1rem, 2.5vw, 1.15rem); color: #64748b; margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; padding: 0 16px; }
.section-title::after { content: ''; display: block; width: 90px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--lego-red), var(--lego-yellow), var(--lego-blue), var(--lego-green)); margin: 14px auto 0; }
.text-gradient { background: linear-gradient(135deg, var(--lego-red), #ff5252); -webkit-background-clip: text; background-clip: text; color: transparent; }
.highlight { color: var(--lego-blue); background: linear-gradient(120deg, rgba(0,108,183,0.15), rgba(0,108,183,0.05)); padding: 2px 10px; border-radius: 8px; font-weight: 800; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid rgba(255,255,255,0.5); transition: var(--transition); box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--lego-red); }
.logo__brick { width: 42px; height: 34px; background: var(--lego-red); border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 #b30009, 0 8px 15px rgba(227,0,11,0.25); }
.logo__brick::before, .logo__brick::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--lego-yellow); top: -7px; }
.logo__brick::before { left: 8px; } .logo__brick::after { right: 8px; }
.logo__span { color: var(--lego-yellow); }

.nav { display: flex; gap: 32px; }
.nav__link { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 4px 0; transition: var(--transition); color: #475569; }
.nav__link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 3px; border-radius: 2px; background: var(--lego-red); transition: var(--transition); }
.nav__link:hover { color: var(--lego-red); } .nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__cart { position: relative; font-size: 1.5rem; cursor: pointer; transition: var(--transition); }
.header__cart:hover { transform: scale(1.12) rotate(5deg); }
.cart-count { position: absolute; top: -7px; right: -9px; background: var(--lego-red); color: #fff; font-size: 0.7rem; font-weight: 800; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(227,0,11,0.4); }

/* ===== PHONE LINK ===== */
.header__phone {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; padding: 6px 8px;
  font-family: 'Nunito', sans-serif; font-size: 0.85rem; font-weight: 700;
  color: #64748b; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.header__phone:hover { color: var(--lego-red); }
.header__phone span { transition: opacity 0.3s; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; border-radius: 50px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.9rem; border: none; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; position: relative; overflow: hidden; white-space: nowrap; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: 0.6s; }
.btn:hover::before { left: 100%; }
.btn--primary { background: var(--lego-red); color: #fff; box-shadow: 0 6px 25px rgba(227,0,11,0.35); }
.btn--primary:hover { background: #c5000a; transform: translateY(-3px); box-shadow: 0 12px 35px rgba(227,0,11,0.45); }
.btn--secondary { background: var(--lego-yellow); color: var(--lego-dark); box-shadow: 0 6px 25px rgba(255,207,0,0.35); }
.btn--secondary:hover { background: #e6ba00; transform: translateY(-3px); }
.btn--lg { padding: 16px 36px; font-size: 0.95rem; }

/* ===== HERO ===== */
.hero { margin-top: var(--header-height); padding: 80px 0 100px; background: linear-gradient(135deg, #fff5f5 0%, #fffbe6 40%, #f0f9ff 100%); position: relative; overflow: hidden; }
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.35; filter: blur(60px); }
.shape--1 { width: 400px; height: 400px; background: var(--lego-red); top: -100px; right: -100px; animation: float-shape 8s ease-in-out infinite; }
.shape--2 { width: 300px; height: 300px; background: var(--lego-yellow); bottom: -50px; left: -50px; animation: float-shape 10s ease-in-out infinite 1s; }
.shape--3 { width: 250px; height: 250px; background: var(--lego-blue); top: 50%; left: 50%; animation: float-shape 12s ease-in-out infinite 2s; }
@keyframes float-shape { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,-30px)} 66%{transform:translate(-20px,20px)} }
.hero__inner { display: flex; align-items: center; gap: 70px; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--lego-yellow); color: var(--lego-dark); padding: 10px 22px; border-radius: 50px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 24px; animation: badge-bounce 2.5s infinite ease-in-out; box-shadow: 0 4px 15px rgba(255,207,0,0.3); }
@keyframes badge-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.hero__title { font-family: 'Outfit', sans-serif; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero__title em { font-style: normal; color: var(--lego-blue); }
.hero__subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); color: #475569; line-height: 1.7; margin-bottom: 36px; max-width: 540px; background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); padding: 18px 22px; border-radius: var(--radius-md); border-left: 5px solid var(--lego-red); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 36px; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 900; color: var(--lego-red); line-height: 1; }
.stat-label { font-size: 0.88rem; color: #64748b; font-weight: 700; margin-top: 4px; }
.hero__image { flex: 1; display: flex; justify-content: center; position: relative; }
.hero__brick-visual { width: 400px; height: 340px; background: linear-gradient(145deg, var(--lego-red), #ff4d4d); border-radius: var(--radius-xl); position: relative; box-shadow: 0 25px 60px rgba(227,0,11,0.3); animation: float 4s ease-in-out infinite; display: flex; align-items: center; justify-content: center; color: #fff; font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 900; text-align: center; padding: 30px; }
.hero__brick-visual::before, .hero__brick-visual::after { content: ''; position: absolute; border-radius: 50%; }
.hero__brick-visual::before { width: 70px; height: 70px; background: var(--lego-yellow); top: -25px; left: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.hero__brick-visual::after { width: 60px; height: 60px; background: var(--lego-blue); top: -20px; right: 60px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
@keyframes float { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-18px) rotate(1deg)} }
.floating-brick { position: absolute; border-radius: 10px; animation: float 3s ease-in-out infinite; }
.floating-brick--1 { width: 70px; height: 50px; background: var(--lego-yellow); bottom: -25px; left: -40px; animation-delay: 0.6s; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.floating-brick--2 { width: 60px; height: 45px; background: var(--lego-green); top: -20px; right: -25px; animation-delay: 1.2s; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.floating-brick--3 { width: 50px; height: 38px; background: var(--lego-blue); bottom: 40px; right: -45px; animation-delay: 1.8s; box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* ===== FEATURES BAR ===== */
.features-bar { background: #fff; padding: 35px 0; box-shadow: var(--shadow-sm); }
.features-bar__inner { display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 16px; text-align: left; }
.feature-item__icon { width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; background: var(--lego-light); box-shadow: inset 0 3px 8px rgba(0,0,0,0.05); }
.feature-item__text h4 { font-weight: 800; font-size: 1rem; margin-bottom: 3px; color: var(--lego-dark); }
.feature-item__text p { font-size: 0.85rem; color: #64748b; }

/* ===== CATALOG ===== */
.catalog { padding: 80px 0; }
.catalog__filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; padding: 0 8px; }
.filter-btn { padding: 10px 24px; border-radius: 50px; border: 2px solid #e2e8f0; background: #fff; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { border-color: var(--lego-red); background: var(--lego-red); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(227,0,11,0.2); }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); position: relative; border: 1px solid rgba(0,0,0,0.04); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-card__badge { position: absolute; top: 18px; left: 18px; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; z-index: 2; box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
.product-card__badge--new { background: var(--lego-green); color: #fff; }
.product-card__badge--sale { background: var(--lego-red); color: #fff; }
.product-card__badge--hit { background: var(--lego-orange); color: #fff; }
.product-card__image { height: 220px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-card__image-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; transition: var(--transition); }
.product-card:hover .product-card__image-bg { transform: scale(1.08); }
.product-card__image-bg--red { background: linear-gradient(135deg, #FFE5E5, #FFF0F0); }
.product-card__image-bg--blue { background: linear-gradient(135deg, #E5F0FF, #F0F7FF); }
.product-card__image-bg--green { background: linear-gradient(135deg, #E5FFE5, #F0FFF0); }
.product-card__image-bg--yellow { background: linear-gradient(135deg, #FFF9E6, #FFFDE8); }
.product-card__image-bg--orange { background: linear-gradient(135deg, #FFE8CC, #FFF3E5); }
.product-card__wishlist { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); font-size: 1.1rem; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-card__wishlist:hover { background: var(--lego-red); color: #fff; transform: scale(1.12); }
.product-card__info { padding: 20px; }
.product-card__category { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; color: var(--lego-blue); margin-bottom: 8px; }
.product-card__name { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.product-card__pieces { font-size: 0.82rem; color: #94a3b8; margin-bottom: 14px; }
.product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 0.88rem; }
.product-card__stars { color: var(--lego-yellow); }
.product-card__price-row { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-size: 1.35rem; font-weight: 900; color: var(--lego-red); }
.product-card__price-old { font-size: 0.88rem; color: #cbd5e1; text-decoration: line-through; margin-left: 8px; font-weight: 600; }
.product-card__btn { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--lego-red); color: #fff; font-size: 1.3rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 12px rgba(227,0,11,0.3); }
.product-card__btn:hover { background: var(--lego-dark); transform: scale(1.1); }

/* ===== PROMO ===== */
.promo { padding: 0 0 90px; }
.promo__banner { background: linear-gradient(135deg, var(--lego-blue), #003a66); border-radius: var(--radius-xl); padding: 60px; display: flex; align-items: center; gap: 50px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 15px 40px rgba(0,108,183,0.25); }
.promo__banner::before { content: ''; position: absolute; width: 350px; height: 350px; border-radius: 50%; background: rgba(255,207,0,0.12); top: -100px; right: -80px; }
.promo__content { flex: 1; position: relative; z-index: 1; }
.promo__content h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 900; margin-bottom: 18px; line-height: 1.2; }
.promo__content p { font-size: clamp(0.95rem, 2vw, 1.05rem); opacity: 0.95; margin-bottom: 30px; line-height: 1.7; }
.promo__visual { position: relative; z-index: 1; font-size: 6rem; animation: float 3.5s ease-in-out infinite; }

/* ===== SOCIALS SECTION ===== */
.socials { padding: 80px 0; background: linear-gradient(135deg, #f0f9ff 0%, #fff5f5 100%); }
.socials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 1050px; margin: 0 auto; }
.social-card { background: #fff; border-radius: var(--radius-lg); padding: 30px; display: flex; align-items: flex-start; gap: 22px; box-shadow: var(--shadow-md); transition: var(--transition); border: 2px solid transparent; position: relative; overflow: hidden; }
.social-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--card-color), var(--card-color-secondary)); opacity: 0; transition: var(--transition); }
.social-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--card-color); }
.social-card:hover::before { opacity: 1; }
.social-card--wb { --card-color: var(--wb-purple); --card-color-secondary: #a855f7; }
.social-card--avito { --card-color: var(--avito-blue); --card-color-secondary: #0088cc; }
.social-card--tg { --card-color: var(--tg-blue); --card-color-secondary: #0099e6; }
.social-card__icon { width: 65px; height: 65px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 2rem; background: linear-gradient(135deg, var(--card-color), var(--card-color-secondary)); box-shadow: 0 6px 18px rgba(0,0,0,0.15); flex-shrink: 0; }
.social-card__content { flex: 1; }
.social-card__content h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 900; margin-bottom: 6px; }
.social-card__content p { font-size: 0.92rem; color: #64748b; margin-bottom: 12px; line-height: 1.5; }
.social-card__link { display: inline-block; font-weight: 800; font-size: 0.9rem; color: var(--card-color); transition: var(--transition); }
.social-card:hover .social-card__link { transform: translateX(5px); }
.social-card__badge { position: absolute; top: 18px; right: 18px; background: var(--lego-yellow); color: var(--lego-dark); padding: 5px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.social-card__badge.new { background: var(--lego-green); color: #fff; }

/* ===== AGE CATEGORIES ===== */
.age-categories { padding: 80px 0; background: #fff; }
.age-categories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.age-card { background: var(--lego-light); border-radius: var(--radius-lg); padding: 36px 24px; text-align: center; transition: var(--transition); cursor: pointer; border: 3px solid transparent; }
.age-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.age-card:nth-child(1):hover { border-color: var(--lego-green); }
.age-card:nth-child(2):hover { border-color: var(--lego-yellow); }
.age-card:nth-child(3):hover { border-color: var(--lego-blue); }
.age-card:nth-child(4):hover { border-color: var(--lego-red); }
.age-card__emoji { font-size: 3.2rem; margin-bottom: 18px; }
.age-card__title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.age-card__desc { font-size: 0.9rem; color: #64748b; }

/* ===== REVIEWS ===== */
.reviews { padding: 80px 0; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); transition: var(--transition); position: relative; border: 1px solid rgba(0,0,0,0.04); }
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.review-card::before { content: '"'; position: absolute; top: 20px; right: 28px; font-size: 4.5rem; font-weight: 900; color: var(--lego-yellow); opacity: 0.2; line-height: 1; }
.review-card__header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.review-card__avatar { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.review-card__avatar--1 { background: #FFE5E5; } .review-card__avatar--2 { background: #E5F0FF; } .review-card__avatar--3 { background: #E5FFE5; }
.review-card__name { font-weight: 800; font-size: 1rem; }
.review-card__date { font-size: 0.8rem; color: #94a3b8; }
.review-card__stars { color: var(--lego-yellow); margin-bottom: 14px; font-size: 0.92rem; }
.review-card__text { font-size: 0.95rem; color: #475569; line-height: 1.6; }

/* ===== DELIVERY ===== */
.delivery { padding: 80px 0; background: #fff; }
.delivery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.delivery-card { background: var(--lego-light); border-radius: var(--radius-lg); padding: 36px 26px; text-align: center; transition: var(--transition); }
.delivery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.delivery-card__icon { font-size: 2.8rem; margin-bottom: 18px; }
.delivery-card__title { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 900; margin-bottom: 10px; }
.delivery-card__text { font-size: 0.92rem; color: #64748b; line-height: 1.6; }

/* ===== CONTACT ===== */
.contact { padding: 80px 0; background: linear-gradient(135deg, #fff5f5 0%, #fffbe6 50%, #f0f9ff 100%); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.contact__info h3 { font-family: 'Outfit', sans-serif; font-size: 1.7rem; font-weight: 900; margin-bottom: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item__icon { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.contact-item__label { font-size: 0.82rem; color: #64748b; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.contact-item__value { font-weight: 800; font-size: 1rem; }
.contact__form { background: #fff; border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.05); }
.contact__form h3 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; margin-bottom: 26px; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; color: #475569; }
.form-group input, .form-group textarea { width: 100%; padding: 16px 20px; border: 2px solid #e2e8f0; border-radius: var(--radius-md); font-family: 'Nunito', sans-serif; font-size: 0.95rem; transition: var(--transition); outline: none; background: #fafafa; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--lego-red); box-shadow: 0 0 0 4px rgba(227,0,11,0.08); background: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; justify-content: center; }

/* ===== FOOTER ===== */
.footer { background: var(--lego-dark); color: #fff; padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer__socials { display: flex; gap: 14px; margin-top: 22px; }
.footer__social-link { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); }
.footer__social-link:hover { background: var(--lego-red); transform: translateY(-4px); border-color: transparent; }
.footer__col h4 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 900; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--lego-yellow); }
.footer__col a { display: block; color: #94a3b8; font-size: 0.92rem; padding: 6px 0; transition: var(--transition); }
.footer__col a:hover { color: #fff; padding-left: 6px; }
.footer__motto { background: rgba(255,255,255,0.06); border-left: 4px solid var(--lego-yellow); padding: 20px; border-radius: 12px; margin: 18px 0; }
.footer__motto-title { display: block; font-weight: 900; color: var(--lego-yellow); margin-bottom: 8px; font-size: 1.05rem; font-family: 'Outfit', sans-serif; }
.footer__motto p { color: #cbd5e1; font-size: 0.92rem; line-height: 1.6; margin: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__bottom p { color: #64748b; font-size: 0.85rem; }
.footer__offer-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; color: #cbd5e1; font-size: 0.85rem; font-weight: 700; transition: var(--transition); }
.footer__offer-btn:hover { background: var(--lego-red); border-color: var(--lego-red); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(227,0,11,0.4); }
.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--lego-red); color: #fff; border: none; font-size: 1.4rem; cursor: pointer; box-shadow: 0 6px 20px rgba(227,0,11,0.35); transition: var(--transition); opacity: 0; visibility: hidden; z-index: 999; }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); background: #c5000a; }

/* ===== TABLETS & PHONES (общие медиа-запросы) ===== */
@media (max-width: 1024px) {
  :root { --header-height: 75px; }
  .container { padding: 0 20px; }
  .header__inner { height: 75px; }
  .nav { gap: 22px; } .nav__link { font-size: 0.85rem; }
  .btn--lg { padding: 14px 28px; font-size: 0.9rem; }
  .hero { padding: 70px 0 80px; margin-top: 75px; }
  .hero__inner { flex-direction: column; text-align: center; gap: 50px; }
  .hero__subtitle { margin: 0 auto 32px; max-width: 500px; }
  .hero__buttons { justify-content: center; }
  .hero__stats { justify-content: center; gap: 32px; }
  .hero__brick-visual { width: 320px; height: 280px; }
  .hero__brick-visual::before { width: 55px; height: 55px; left: 40px; } .hero__brick-visual::after { width: 50px; height: 50px; right: 45px; }
  .floating-brick--1 { width: 55px; height: 40px; left: -30px; } .floating-brick--2 { width: 50px; height: 38px; right: -18px; } .floating-brick--3 { width: 42px; height: 32px; right: -35px; }
  .features-bar__inner { gap: 60px; }
  .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .promo__banner { flex-direction: column; text-align: center; padding: 45px 35px; gap: 30px; } .promo__visual { font-size: 5rem; }
  .socials__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; } .contact__form { padding: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 35px; } .footer__brand { grid-column: 1 / -1; } .footer__motto { margin-left: 0; margin-right: 0; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }
  .container { padding: 0 18px; }
  .header__inner { height: 68px; } .logo { font-size: 1.35rem; gap: 10px; } .logo__brick { width: 38px; height: 30px; } .logo__brick::before, .logo__brick::after { width: 10px; height: 10px; top: -6px; } .logo__brick::before { left: 7px; } .logo__brick::after { right: 7px; }
  .nav { display: none; }
  .header__actions { gap: 14px; } .header__cart { font-size: 1.35rem; } .cart-count { width: 20px; height: 20px; font-size: 0.65rem; top: -6px; right: -8px; }
  .header__phone { padding: 6px 8px; font-size: 0.8rem; }
  .btn { padding: 12px 24px; font-size: 0.85rem; } .btn--lg { padding: 14px 26px; }
  .hero { padding: 60px 0 70px; margin-top: 68px; } .hero__badge { padding: 8px 18px; font-size: 0.8rem; margin-bottom: 20px; } .hero__subtitle { padding: 16px 18px; margin-bottom: 28px; } .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__brick-visual { width: 280px; height: 240px; font-size: 1.2rem; padding: 25px; } .hero__brick-visual::before { width: 50px; height: 50px; top: -22px; left: 35px; } .hero__brick-visual::after { width: 45px; height: 45px; top: -18px; right: 40px; }
  .floating-brick--1 { width: 50px; height: 35px; bottom: -20px; left: -25px; } .floating-brick--2 { width: 45px; height: 32px; top: -16px; right: -15px; } .floating-brick--3 { width: 38px; height: 28px; bottom: 35px; right: -30px; }
  .features-bar { padding: 28px 0; } .features-bar__inner { flex-direction: column; gap: 28px; align-items: center; } .feature-item { justify-content: center; }
  .catalog { padding: 60px 0; } .catalog__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .product-card__image { height: 180px; } .product-card__image-bg { font-size: 3.5rem; } .product-card__info { padding: 16px; } .product-card__name { font-size: 0.95rem; } .product-card__price { font-size: 1.15rem; } .product-card__btn { width: 40px; height: 40px; font-size: 1.2rem; } .product-card__wishlist { width: 36px; height: 36px; font-size: 1rem; } .product-card__badge { top: 14px; left: 14px; padding: 5px 12px; font-size: 0.7rem; }
  .promo__banner { padding: 35px 25px; border-radius: var(--radius-lg); } .promo__content h2 { font-size: 1.5rem; } .promo__content p { font-size: 0.95rem; margin-bottom: 24px; } .promo__visual { font-size: 4rem; }
  .socials { padding: 60px 0; } .socials__grid { grid-template-columns: 1fr; gap: 20px; } .social-card { padding: 24px; gap: 18px; }
  .age-categories { padding: 60px 0; } .age-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .age-card { padding: 28px 18px; }
  .reviews { padding: 60px 0; } .reviews__grid { grid-template-columns: 1fr; gap: 20px; }
  .delivery { padding: 60px 0; } .delivery__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .delivery-card { padding: 28px 20px; }
  .contact { padding: 60px 0; } .contact__info h3 { font-size: 1.5rem; } .contact__form { padding: 28px; border-radius: var(--radius-lg); } .contact__form h3 { font-size: 1.35rem; }
  .footer { padding: 50px 0 24px; } .footer__grid { grid-template-columns: 1fr; gap: 30px; } .footer__brand { grid-column: auto; } .footer__bottom { flex-direction: column; text-align: center; gap: 18px; }
  .scroll-top { bottom: 20px; right: 20px; width: 46px; height: 46px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header__inner { height: 62px; } .logo { font-size: 1.2rem; gap: 8px; } .logo__brick { width: 34px; height: 28px; box-shadow: 0 4px 0 #b30009; } .logo__brick::before, .logo__brick::after { width: 9px; height: 9px; top: -5px; } .logo__brick::before { left: 6px; } .logo__brick::after { right: 6px; } .logo__span { font-size: 1.2rem; }
  .header__cart { font-size: 1.25rem; } 
  .header__phone { padding: 4px; font-size: 1.2rem; }
  .header__phone-text { display: none; }
  .btn { padding: 10px 18px; font-size: 0.78rem; gap: 8px; } .btn--lg { padding: 12px 22px; } .header__actions { gap: 10px; }
  .hero { padding: 50px 0 60px; margin-top: 62px; } .hero__badge { padding: 7px 14px; font-size: 0.75rem; } .hero__subtitle { font-size: 0.95rem; padding: 14px 16px; border-left-width: 4px; } .hero__stats { gap: 20px; flex-direction: column; align-items: center; } .stat-value { font-size: 1.5rem; }
  .hero__brick-visual { width: 240px; height: 200px; border-radius: var(--radius-lg); padding: 20px; } .hero__brick-visual::before { width: 40px; height: 40px; top: -18px; left: 30px; } .hero__brick-visual::after { width: 35px; height: 35px; top: -15px; right: 30px; }
  .floating-brick--1 { width: 40px; height: 28px; bottom: -16px; left: -18px; } .floating-brick--2 { width: 35px; height: 26px; top: -14px; right: -10px; } .floating-brick--3 { width: 30px; height: 22px; bottom: 28px; right: -20px; }
  .hero__buttons { gap: 12px; flex-direction: column; align-items: center; } .hero__buttons .btn { width: 100%; max-width: 280px; }
  .features-bar { padding: 22px 0; } .features-bar__inner { gap: 22px; } .feature-item__icon { width: 55px; height: 55px; font-size: 1.4rem; } .feature-item__text h4 { font-size: 0.92rem; } .feature-item__text p { font-size: 0.8rem; }
  .catalog { padding: 50px 0; } .catalog__filters { gap: 8px; } .filter-btn { padding: 8px 18px; font-size: 0.82rem; } .catalog__grid { grid-template-columns: 1fr; gap: 16px; max-width: 400px; margin-left: auto; margin-right: auto; } .product-card__image { height: 200px; } .product-card__image-bg { font-size: 4rem; }
  .promo { padding: 0 0 60px; } .promo__banner { padding: 30px 20px; gap: 20px; border-radius: var(--radius-md); } .promo__content h2 { font-size: 1.35rem; } .promo__content p { font-size: 0.9rem; margin-bottom: 20px; } .promo__visual { font-size: 3.5rem; }
  .socials { padding: 50px 0; } .social-card { padding: 20px; flex-direction: column; text-align: center; align-items: center; } .social-card__icon { width: 55px; height: 55px; } .social-card__content h3 { font-size: 1.2rem; }
  .age-categories { padding: 50px 0; } .age-categories__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .age-card { padding: 22px 14px; } .age-card__emoji { font-size: 2.5rem; margin-bottom: 12px; } .age-card__title { font-size: 1.05rem; } .age-card__desc { font-size: 0.82rem; }
  .reviews { padding: 50px 0; } .review-card { padding: 24px; }
  .delivery { padding: 50px 0; } .delivery__grid { grid-template-columns: 1fr; gap: 16px; }
  .contact { padding: 50px 0; } .contact__inner { gap: 30px; } .contact__info h3 { font-size: 1.35rem; margin-bottom: 22px; } .contact-item__icon { width: 44px; height: 44px; font-size: 1.15rem; } .contact-item__value { font-size: 0.95rem; } .contact__form { padding: 22px; } .form-group input, .form-group textarea { padding: 14px 16px; font-size: 0.9rem; }
  .footer { padding: 40px 0 20px; } .footer__social-link { width: 42px; height: 42px; font-size: 1.1rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .hero__brick-visual { width: 200px; height: 170px; padding: 16px; } .hero__badge { font-size: 0.7rem; padding: 6px 12px; }
  .catalog__grid { max-width: 100%; } .product-card__image { height: 180px; }
  .age-categories__grid { grid-template-columns: 1fr; }
}

/* ===== PAGE HEADER ===== */
.page-header {
  margin-top: var(--header-height);
  padding: 50px 0 40px;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbe6 50%, #f0f9ff 100%);
  text-align: center;
}
.page-header__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 700; color: #64748b;
  margin-bottom: 20px; transition: var(--transition);
  padding: 6px 14px; border-radius: 50px;
}
.page-header__back:hover { color: var(--lego-red); background: rgba(227,0,11,0.08); }
.page-header__title {
  font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; margin-bottom: 12px; color: var(--lego-dark);
}
.page-header__subtitle { font-size: clamp(1rem, 2.5vw, 1.15rem); color: #64748b; max-width: 600px; margin: 0 auto; }
.catalog--full { padding-bottom: 80px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .page-header { padding: 40px 0 30px; }
  .page-header__title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .page-header { padding: 32px 0 24px; }
  .page-header__title { font-size: 1.6rem; }
  .page-header__subtitle { font-size: 0.95rem; }
}

/* ===== CART PAGE - UNIFIED RESPONSIVE ===== */
.cart-page {
  margin-top: var(--header-height);
  padding: 40px 0 80px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  min-height: 100vh;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: #64748b; margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--lego-blue); text-decoration: none; transition: var(--transition); font-weight: 600; }
.breadcrumb a:hover { color: var(--lego-red); }
.breadcrumb__current { color: #94a3b8; font-weight: 500; }
.cart-header { margin-bottom: 32px; }
.cart-header__title {
  font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 900; margin-bottom: 8px; color: var(--lego-dark);
}
.cart-header__subtitle { color: #64748b; font-size: 1.05rem; }

.cart-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== CART ITEMS SECTION ===== */
.cart-items-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}
.cart-items-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9;
}
.cart-items-header__label { font-weight: 800; font-size: 1.1rem; color: var(--lego-dark); }
.cart-items-header__count { color: #64748b; font-size: 0.95rem; font-weight: 600; }

.cart-empty {
  text-align: center; padding: 70px 40px; background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: var(--radius-lg); border: 2px dashed #e2e8f0;
}
.cart-empty__visual { margin-bottom: 24px; }
.cart-empty__brick {
  width: 80px; height: 80px; margin: 0 auto; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--lego-red), #ff4d4d);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; box-shadow: 0 12px 30px rgba(227,0,11,0.2);
  animation: float 3s ease-in-out infinite;
}
.cart-empty h3 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin-bottom: 12px; color: var(--lego-dark); }
.cart-empty p { color: #64748b; margin-bottom: 28px; max-width: 340px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.cart-promo-hint {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fcd34d;
  border-radius: var(--radius-md); margin-top: 24px;
}
.cart-promo-hint__icon { font-size: 1.4rem; }
.cart-promo-hint strong { display: block; color: #92400e; margin-bottom: 4px; }
.cart-promo-hint p { margin: 0; color: #b45309; font-size: 0.9rem; }
.cart-promo-hint #promo-amount { font-weight: 800; color: var(--lego-red); }

/* ===== PRODUCT CARD IN CART ===== */
.cart-product-card {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}
.cart-product-card:hover { border-color: var(--lego-yellow); box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.cart-product-card__badge-wrapper { position: absolute; top: 12px; left: 12px; z-index: 2; }
.cart-product-card__badge {
  padding: 4px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.cart-product-card__badge--hit { background: linear-gradient(135deg, var(--lego-orange), #ff6b00); }
.cart-product-card__badge--new { background: linear-gradient(135deg, var(--lego-green), #00b347); }
.cart-product-card__badge--sale { background: linear-gradient(135deg, var(--lego-red), #ff1a1a); }
.cart-product-card__wishlist {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border-radius: 50%; border: 2px solid #e2e8f0; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 1rem; transition: var(--transition); color: #94a3b8;
}
.cart-product-card__wishlist:hover { border-color: var(--lego-red); color: var(--lego-red); background: #fff5f5; }
.cart-product-card__image {
  width: 90px; height: 90px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; flex-shrink: 0;
}
.cart-product-card__content { min-width: 0; }
.cart-product-card__category {
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  color: var(--lego-blue); margin-bottom: 4px; letter-spacing: 0.4px;
}
.cart-product-card__name {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 4px;
  color: var(--lego-dark); line-height: 1.3;
}
.cart-product-card__pieces { font-size: 0.8rem; color: #94a3b8; margin-bottom: 8px; }
.cart-product-card__rating {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.cart-product-card__stars { color: var(--lego-yellow); font-size: 0.85rem; }
.cart-product-card__rating-value { font-size: 0.85rem; font-weight: 700; color: #475569; }
.cart-product-card__price-block { display: flex; align-items: baseline; gap: 8px; }
.cart-product-card__price { font-size: 1.25rem; font-weight: 900; color: var(--lego-red); }
.cart-product-card__price-old { font-size: 0.9rem; color: #cbd5e1; text-decoration: line-through; font-weight: 600; }
.cart-product-card__actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.quantity-selector {
  display: flex; align-items: center; background: #f8fafc;
  border: 2px solid #e2e8f0; border-radius: 50px; overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; font-size: 1.3rem; font-weight: 700; color: #475569;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: #e2e8f0; color: var(--lego-dark); }
.qty-btn:active { transform: scale(0.95); }
.qty-value {
  width: 44px; text-align: center; font-weight: 800; font-size: 1rem; color: var(--lego-dark);
}
.remove-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fecaca; background: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #ef4444; transition: var(--transition);
}
.remove-btn:hover { background: #fee2e2; border-color: var(--lego-red); transform: scale(1.05); }

/* ===== CHECKOUT SECTION ===== */
.cart-checkout-section {
  position: sticky;
  top: 100px;
  z-index: 10;
}
.cart-checkout-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
}
.cart-checkout-card__header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid #f1f5f9;
}
.cart-checkout-card__header h2 {
  font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 900;
}
.cart-checkout-card__secure {
  font-size: 0.8rem; color: var(--lego-green); font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.form-fieldset {
  border: none; padding: 0; margin: 0 0 28px 0;
}
.form-fieldset legend {
  font-weight: 800; font-size: 1.05rem; color: var(--lego-dark);
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9;
  width: 100%; display: block;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 8px; color: #334155;
}
.form-group input {
  width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0;
  border-radius: var(--radius-md); font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; transition: var(--transition); outline: none;
  background: #fff;
}
.form-group input:focus {
  border-color: var(--lego-blue);
  box-shadow: 0 0 0 4px rgba(0,108,183,0.12);
}
.form-hint {
  display: block; font-size: 0.8rem; color: #64748b; margin-top: 6px;
}

/* ===== DELIVERY METHODS - LARGE CARDS ===== */
.delivery-methods { display: flex; flex-direction: column; gap: 16px; }
.delivery-method input[type="radio"] { display: none; }
.delivery-method__card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.delivery-method__card:hover {
  border-color: var(--lego-blue);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,108,183,0.12);
}
.delivery-method:has(input:checked) .delivery-method__card {
  border-color: var(--lego-blue);
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 0 0 4px rgba(0,108,183,0.15), 0 10px 30px rgba(0,108,183,0.1);
  transform: translateY(-2px);
}
.delivery-method__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.delivery-method__content { min-width: 0; }
.delivery-method__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px; gap: 12px; flex-wrap: wrap;
}
.delivery-method__title { font-size: 1.05rem; font-weight: 800; color: var(--lego-dark); }
.delivery-method__time {
  font-size: 0.85rem; font-weight: 700; color: var(--lego-blue);
  background: rgba(0,108,183,0.1); padding: 4px 10px; border-radius: 50px;
}
.delivery-method__desc { font-size: 0.9rem; color: #64748b; margin-bottom: 12px; line-height: 1.5; }
.delivery-method__price { display: flex; flex-direction: column; gap: 4px; }
.delivery-method__price-value { font-size: 1.15rem; font-weight: 900; color: var(--lego-dark); }
.delivery-method__price-value.free { color: var(--lego-green); }
.delivery-method__price-note { font-size: 0.8rem; color: #94a3b8; }
.delivery-method__check {
  font-size: 0.8rem; font-weight: 800; color: var(--lego-blue);
  background: rgba(0,108,183,0.1); padding: 6px 14px; border-radius: 50px;
  opacity: 0; transition: var(--transition);
}
.delivery-method:has(input:checked) .delivery-method__check { opacity: 1; }

/* ===== PAYMENT METHODS - LARGE CARDS ===== */
.payment-methods { display: flex; flex-direction: column; gap: 16px; }
.payment-method input[type="radio"] { display: none; }
.payment-method__card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 3px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.payment-method__card:hover {
  border-color: var(--lego-blue);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,108,183,0.12);
}
.payment-method:has(input:checked) .payment-method__card {
  border-color: var(--lego-blue);
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 0 0 4px rgba(0,108,183,0.15), 0 10px 30px rgba(0,108,183,0.1);
  transform: translateY(-2px);
}
.payment-method__icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.payment-method__icon--sbp { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }
.payment-method__icon--card { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.payment-method__icon--cash { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.payment-method__icon-emoji { font-size: 1.6rem; margin-bottom: 4px; }
.payment-method__icon-label {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
}
.payment-method__icon--sbp { color: #7c3aed; }
.payment-method__icon--card { color: #2563eb; }
.payment-method__icon--cash { color: #16a34a; }
.payment-method__content { min-width: 0; }
.payment-method__title { font-size: 1.05rem; font-weight: 800; color: var(--lego-dark); display: block; margin-bottom: 6px; }
.payment-method__desc { font-size: 0.9rem; color: #64748b; margin-bottom: 10px; line-height: 1.5; }
.payment-method__features { list-style: none; padding: 0; margin: 0; font-size: 0.82rem; color: #475569; }
.payment-method__features li { margin-bottom: 4px; }
.payment-method__check {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e2e8f0; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #fff; font-weight: 800; transition: var(--transition); opacity: 0;
}
.payment-method:has(input:checked) .payment-method__check {
  background: var(--lego-blue); opacity: 1; transform: scale(1.1);
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  padding: 24px; border-radius: var(--radius-md);
  border: 1px solid #e2e8f0; margin: 24px 0;
}
.summary-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  font-size: 0.95rem; color: #475569;
}
.summary-row.discount { color: var(--lego-green); font-weight: 700; }
.summary-divider {
  height: 1px; background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 12px 0;
}
.summary-row.total {
  font-weight: 900; font-size: 1.4rem; color: var(--lego-dark);
  padding-top: 16px; margin-top: 8px; border-top: 2px solid #e2e8f0;
}
.summary-row.total span:last-child { color: var(--lego-red); font-size: 1.5rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; justify-content: center; }
.trust-badge {
  font-size: 0.8rem; color: #475569; background: #f1f5f9;
  padding: 6px 14px; border-radius: 50px; font-weight: 600;
}
.btn--xl { padding: 18px 32px; font-size: 1.05rem; }
.btn__loading { display: none; }
.form-disclaimer { font-size: 0.8rem; color: #64748b; text-align: center; line-height: 1.6; margin-top: 16px; }
.link--underline { color: var(--lego-blue); text-decoration: none; border-bottom: 1px dashed var(--lego-blue); }
.link--underline:hover { color: var(--lego-red); border-color: var(--lego-red); }

/* ===== CART RESPONSIVE - UNIFIED LOOK ===== */
@media (max-width: 1100px) {
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-checkout-section { position: static; }
}

@media (max-width: 768px) {
  .cart-page { padding: 32px 0 60px; }
  .cart-items-section, .cart-checkout-card { padding: 20px; }
  
  .cart-product-card {
    grid-template-columns: 68px 1fr;
    gap: 14px; padding: 16px;
  }
  .cart-product-card__image { width: 68px; height: 68px; font-size: 2rem; }
  
  .cart-product-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
  }
  
  .quantity-selector { width: auto; flex: 0 0 auto; }
  .qty-btn { width: 34px; height: 34px; font-size: 1.1rem; }
  .qty-value { width: 32px; font-size: 0.9rem; }
  .remove-btn { width: 34px; height: 34px; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .delivery-method__card,
  .payment-method__card {
    grid-template-columns: 52px 1fr;
    padding: 16px; gap: 14px;
  }
  .delivery-method__icon,
  .payment-method__icon { width: 52px; height: 52px; }
  .payment-method__icon-emoji { font-size: 1.3rem; }
  .delivery-method__check,
  .payment-method__check { display: none; }
  
  .order-summary { padding: 16px; }
  .summary-row.total { font-size: 1.2rem; }
  .summary-row.total span:last-child { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .cart-page { padding: 24px 0 50px; }
  .cart-items-section, .cart-checkout-card { padding: 16px; border-radius: var(--radius-md); }
  
  .cart-product-card { padding: 14px; }
  .cart-product-card__image { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 12px; }
  .cart-product-card__name { font-size: 0.95rem; }
  .cart-product-card__price { font-size: 1.05rem; }
  
  .delivery-method__card,
  .payment-method__card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 14px;
    gap: 10px;
  }
  .delivery-method__icon,
  .payment-method__icon {
    width: 44px; height: 44px;
    margin: 0;
    align-self: flex-start;
  }
  .delivery-method__header,
  .payment-method__content { text-align: left; }
  
  .trust-badges { gap: 8px; }
  .trust-badge { font-size: 0.75rem; padding: 5px 10px; }
  
  .btn--xl { padding: 16px 20px; font-size: 0.95rem; }
}

/* ===== FOOTER LEGAL LINKS ===== */
.footer__legal-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }