/* Base */
:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --card: #ffffff;
  --slate-50: #f8fafc;
  --slate-900: #0f172a;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --blue-600: #2563eb;
  --green-600: #16a34a;
  --yellow-600: #ca8a04;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--fg); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1rem; border-radius: .5rem; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: .2s all ease; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .75rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.25rem; font-size: 1.05rem; }
.btn-primary { background: var(--red-600); color: #fff; }
.btn-primary:hover { background: var(--red-700); }
.btn-outline { background: transparent; border-color: #111827; color: #111827; }
.btn-outline:hover { background: #111827; color: #fff; }
.btn-dark { background: #111827; color: #fff; }
.btn-dark:hover { background: #0b1220; }
.btn-outline-inverse { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-inverse:hover { background: #fff; color: #111827; }
.btn-ghost { background: transparent; color: inherit; }
.badge { display: inline-block; padding: .3rem .6rem; font-size: .8rem; font-weight: 700; border-radius: .4rem; }
.badge--red { background: var(--red-600); color: #fff; }
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  padding: 12px 24px !important; /* или отрегулируй под свой дизайн */
  line-height: 1.2 !important;
}


/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--slate-900); color: #fff; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar__left { display: flex; gap: 1rem; flex-wrap: wrap; }
.topbar__right { display: none; gap: 1rem; }
@media (min-width: 768px) { .topbar__right { display: flex; } .topbar__right a:hover { color: #fca5a5; } }

.header__inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; height: 64px; }
.logo__link { display: flex; align-items: center; gap: .6rem; }
.logo__mark { background: var(--red-600); color: #fff; font-weight: 800; padding: .4rem .5rem; border-radius: .5rem; }
.logo__mark--footer { display: inline-flex; padding: .6rem .6rem; }
.logo__brand { font-weight: 800; font-size: 1.25rem; color: var(--slate-900); }
.logo__tag { font-size: .7rem; color: var(--muted); margin-top: -4px; }
.primary-nav { display: none; }
.primary-nav .menu { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: #334155; font-weight: 600; }
.primary-nav a:hover { color: var(--red-600); }
.header-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.cart-link { position: relative; }
.cart-count { position: absolute; top: -6px; right: -10px; background: var(--red-600); color: #fff; border-radius: 999px; font-size: .7rem; padding: .2rem .4rem; }

.mobile-menu-toggle { display: inline-flex; }
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.mobile-nav .menu { list-style: none; padding: .5rem 1rem 1rem; margin: 0; display: grid; gap: .5rem; }
.mobile-nav a { padding: .5rem 0; border-bottom: 1px dashed var(--border); }
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .mobile-menu-toggle { display: none; }
}

/* Footer */
.site-footer { background: var(--slate-900); color: #fff; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding: 3rem 0; }
.footer__brand-name { font-weight: 800; font-size: 1.25rem; }
.footer__brand-tag { font-size: .75rem; color: #cbd5e1; margin-top: -4px; }
.footer__desc { color: #cbd5e1; }
.footer__socials a { display: inline-flex; width: 2rem; height: 2rem; border: 1px solid #475569; align-items: center; justify-content: center; border-radius: .4rem; color: #cbd5e1; }
.footer__socials a:hover { background: #fff; color: #0f172a; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #1f2937; }
.footer__bottom-inner { color: #cbd5e1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.footer__bottom-links { display: flex; gap: 1rem; }
@media (min-width: 992px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(to right, #0f172a, #1f2937, #0f172a); }
.hero__overlay { position: absolute; inset: 0; }
.hero__grid { position: relative; display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; padding: 3rem 0; }
.hero__content .accent { color: #f87171; }
.hero__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin: 1rem 0; }
.hero__subtitle { color: #e5e7eb; font-size: 1.1rem; }
.hero__actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 1.25rem; margin-top: 1.25rem; color: #e5e7eb; font-size: .95rem; flex-wrap: wrap; }
.hero__image { position: relative; }
.hero__image img { border-radius: .75rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero__rating { position: absolute; bottom: -12px; left: -12px; background: #fff; color: #111827; padding: .6rem .8rem; border-radius: .6rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
@media (min-width: 992px) {
  .hero__grid { grid-template-columns: 1.2fr .8fr; padding: 4rem 0; }
}

/* Sections */
.section { padding: 3rem 0; }
.section--light { background: var(--gray-50); }
.section--dark { background: var(--slate-900); }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; margin: 0 0 .5rem; color: var(--slate-900); }
.section--dark .section__title { color: #fff; }
.section__subtitle { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.section--dark .section__subtitle { color: #cbd5e1; }

/* Cards (Products/Posts) */
.cards-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(minmax(260px, 1fr)); }
.card { background: #fff; border-radius: .75rem; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); border: 1px solid var(--border); }
.card__media { position: relative; }
.card__media img { width: 100%; height: 260px; object-fit: cover; transition: transform .3s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; top: .75rem; left: .75rem; }
.card__body { padding: 1rem; }
.card__title { font-size: 1rem; margin: .25rem 0 .5rem; font-weight: 700; }
.price { font-size: 1.25rem; font-weight: 800; color: #111827; }

/* Features */
.features-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { text-align: center; }
.feature__icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto .75rem; }
.feature__icon.bg-red { background: #fee2e2; }
.feature__icon.bg-blue { background: #dbeafe; }
.feature__icon.bg-green { background: #dcfce7; }
.feature__icon.bg-yellow{ background: #fef9c3; }
.feature__title { font-size: 1.2rem; font-weight: 700; }
.feature__text { color: var(--muted); }

/* Content */
.content { padding: 2rem 0; }
.page-title { font-weight: 800; font-size: 2rem; margin: 0 0 1rem; }
.post-thumb { border-radius: .5rem; margin: 1rem 0; width: 100%; height: auto; }

/* Shop */
.shop-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.shop-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.shop-sidebar { background: #fff; border: 1px solid var(--border); border-radius: .5rem; padding: 1rem; }
.shop-grid { min-width: 0; }
@media (min-width: 992px) {
  .shop-layout { grid-template-columns: 300px 1fr; }
}

/* Notices */
.notice { padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem; }
.notice-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Forms */
.form .form-group { display: grid; gap: .35rem; margin-bottom: 1rem; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--border); border-radius: .5rem; padding: .6rem .75rem; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #111827; box-shadow: 0 0 0 3px rgba(17,24,39,.15); }
.grid-2 { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.gap-lg { gap: 2rem; }
.mt-lg { margin-top: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Contact cards */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: .75rem; align-items: center; border: 1px solid var(--border); padding: .75rem; border-radius: .5rem; background: #fff; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: .6rem; }
.contact-title { font-weight: 700; }
.contact-detail { color: #111827; }

/* Cards Generic */
.card .card__header { padding: 1rem 1rem 0 1rem; }
.card .card__body { padding: 1rem; }

/* Blog Grid */
.posts-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; }
.post-card__thumb { height: 180px; width: 100%; object-fit: cover; }
.post-card__title { font-size: 1.1rem; margin: .75rem 1rem .25rem; }
.post-card__meta { color: var(--muted); font-size: .85rem; margin: 0 1rem .5rem; }
.post-card__excerpt { color: var(--muted); margin: 0 1rem 1rem; }

/* 404 */
.not-found { text-align: center; padding: 4rem 0; }
.nf-code { font-size: 5rem; font-weight: 800; color: var(--red-600); line-height: 1; }

/* Utilities */
.page-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.page-subtitle { color: var(--muted); font-size: 1.1rem; }
.text-muted { color: var(--muted); }
