:root {
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --bg: oklch(97% 0.015 95);
  --text: oklch(30% 0.03 150);
  --brand-dark: oklch(24% 0.05 150);
  --brand: oklch(42% 0.1 150);
  --brand-hover: oklch(32% 0.1 150);
  --brand-light: oklch(92% 0.03 130);
  --surface: oklch(99% 0.005 95);
  --border: oklch(85% 0.02 95);
  --muted-bg: oklch(94% 0.02 95);
  --card-alt-bg: oklch(92% 0.02 80);
  --footer-bg: oklch(24% 0.05 150);
  --footer-text: oklch(90% 0.01 95);
  --footer-muted: oklch(82% 0.01 95);
  --danger: oklch(45% 0.12 30);
  --price: oklch(42% 0.1 150);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: var(--font-body); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.topbar {
  background: var(--brand-dark);
  color: oklch(96% 0.01 95);
  padding: 8px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar a { color: inherit; text-decoration: underline; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}
.brand__name { font-family: var(--font-display); font-size: 24px; color: var(--brand-dark); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
}

.main-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.main-nav a { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; }

.cart-btn {
  font-family: var(--font-body);
  font-weight: 800; font-size: 14px;
  padding: 10px 18px;
  background: var(--brand); color: var(--surface);
  border: none; border-radius: 4px; cursor: pointer;
}

main { flex: 1; }

/* Buttons */
.btn {
  font-weight: 800; font-size: 15px;
  padding: 14px 28px;
  border: none; border-radius: 4px; cursor: pointer;
  display: inline-block;
}
.btn--primary { background: var(--brand); color: var(--surface); }
.btn--primary:hover { background: var(--brand-hover); color: var(--surface); text-decoration: none; }
.btn--outline {
  background: transparent; color: var(--brand-dark);
  border: 2px solid var(--brand-dark);
}
.btn--outline:hover { text-decoration: none; background: oklch(94% 0.02 95); }
.btn--block { width: 100%; }
.btn--small { font-size: 13px; padding: 10px; }

/* Hero */
.hero { background: var(--brand-light); padding: 80px 24px; }
.hero__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
}
.hero__title { font-family: var(--font-display); font-size: 48px; line-height: 1.15; color: var(--brand-dark); margin: 0 0 20px; }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--text); margin: 0 0 32px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__image {
  width: 100%; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: var(--brand-light);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* USP row */
.usp-grid {
  max-width: 1240px; margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center;
}
.usp-item { font-weight: 800; font-size: 15px; color: var(--brand-dark); }

/* Section headings */
.section { max-width: 1240px; margin: 0 auto; padding: 24px 24px 64px; }
.section-title { font-family: var(--font-display); font-size: 32px; color: var(--brand-dark); margin: 0 0 28px; text-align: center; }
.page-title { font-family: var(--font-display); font-size: 36px; color: var(--brand-dark); margin: 0 0 8px; }
.page-lead { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0 0 32px; max-width: 720px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px 20px; text-align: center; font-weight: 800; font-size: 16px; color: var(--brand-dark);
}
.cat-card:hover { text-decoration: none; border-color: var(--brand); }

/* Featured / product sections */
.featured-section { background: var(--muted-bg); padding: 56px 24px; }
.featured-section .wrap-inner { max-width: 1240px; margin: 0 auto; }

.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.product-grid--3 { grid-template-columns: repeat(3,1fr); }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.page-section .product-card { padding: 18px; }
.product-card__img {
  width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--brand-light);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__name { font-weight: 700; font-size: 14px; color: var(--brand-dark); min-height: 36px; }
.page-section .product-card__name { font-size: 15px; min-height: 0; }
.product-card__price { font-weight: 800; font-size: 16px; color: var(--price); }
.page-section .product-card__price { font-size: 17px; }
.product-card form { margin: 0; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial-card { background: var(--card-alt-bg); border-radius: 8px; padding: 24px; }
.testimonial-quote { font-size: 15px; line-height: 1.6; font-style: italic; color: var(--text); margin: 0 0 12px; }
.testimonial-author { font-weight: 800; font-size: 14px; color: var(--brand-dark); }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 22px; }
.article-card__title { font-weight: 800; font-size: 18px; color: var(--brand-dark); margin: 0 0 10px; }
.article-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--text); }

.cta-band {
  background: var(--brand-light); border-radius: 10px; padding: 32px; margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.cta-band__text { font-weight: 700; font-size: 17px; color: var(--brand-dark); }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.service-list { display: flex; flex-direction: column; gap: 16px; }
.service-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.service-item__title { font-weight: 800; font-size: 16px; color: var(--brand-dark); margin: 0 0 6px; }
.service-item__text { font-size: 14px; line-height: 1.6; }
.service-note { font-size: 14px; color: var(--text); margin-top: 6px; }

/* Forms */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.form-card__title { font-weight: 800; font-size: 16px; color: var(--brand-dark); }
.field {
  padding: 11px; border: 1px solid oklch(80% 0.02 95); border-radius: 4px; font-size: 14px; width: 100%;
}
textarea.field { resize: vertical; }
.form-success {
  background: var(--brand-light); border-radius: 8px; padding: 32px; text-align: center;
  font-weight: 700; color: var(--brand-dark);
}

/* About */
.about-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.about-hero__text { font-size: 16px; line-height: 1.7; color: var(--text); }
.about-hero__image {
  width: 100%; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--brand-light);
}
.about-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-bottom: 48px; }
.value-card { background: var(--card-alt-bg); border-radius: 8px; padding: 22px; }
.value-card__title { font-weight: 800; font-size: 16px; color: var(--brand-dark); margin: 0 0 8px; }
.value-card__text { font-size: 14px; line-height: 1.6; }

.section-subtitle { font-family: var(--font-display); font-size: 26px; color: var(--brand-dark); margin: 0 0 24px; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1; background: var(--brand-light); border-radius: 50%; margin: 0 0 12px;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 800; font-size: 15px; color: var(--brand-dark); }
.team-role { font-size: 13px; color: oklch(40% 0.03 150); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.contact-info { font-size: 15px; line-height: 1.8; color: var(--text); margin-bottom: 24px; }
.contact-info__name { font-weight: 800; color: var(--brand-dark); }
.map-photo {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--muted-bg);
  position: relative;
}
.map-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-photo__label {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-dark);
  background: oklch(97% 0.01 95 / .85); padding: 6px 10px; border-radius: 4px;
}

/* Cart */
.cart-section { max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
.cart-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px;
}
.cart-item__img {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--brand-light);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { flex: 1; font-weight: 700; font-size: 15px; color: var(--brand-dark); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px; border: 1px solid oklch(80% 0.02 95); background: var(--bg);
  border-radius: 4px; cursor: pointer; font-weight: 800;
}
.cart-item__subtotal { width: 90px; text-align: right; font-weight: 800; color: var(--price); }
.cart-item__remove { border: none; background: none; color: var(--danger); cursor: pointer; font-size: 13px; font-weight: 700; }
.cart-summary { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 32px; }
.cart-summary__label { font-size: 16px; color: var(--text); }
.cart-summary__total { font-size: 24px; font-weight: 800; color: var(--brand-dark); }

.order-form {
  background: var(--muted-bg); border-radius: 8px; padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.order-form__title { grid-column: 1 / -1; font-weight: 800; font-size: 16px; color: var(--brand-dark); }
.order-form .field--full { grid-column: 1 / -1; }
.order-form__submit { grid-column: 1 / -1; padding: 14px; }
.order-form__terms { grid-column: 1 / -1; font-size: 12px; color: oklch(40% 0.03 150); }

.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart__text { font-size: 17px; color: var(--text); margin-bottom: 20px; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px; font-size: 15px; line-height: 1.7; color: var(--text); }
.legal__title { font-family: var(--font-display); font-size: 32px; color: var(--brand-dark); margin: 0 0 20px; }
.legal h2 { font-weight: 800; color: var(--brand-dark); font-size: 15px; margin-top: 24px; }
.legal p { margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 24px 24px; margin-top: auto; }
.site-footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-brand { font-family: var(--font-display); font-size: 22px; color: oklch(96% 0.01 95); margin: 0 0 12px; }
.footer-address { font-size: 14px; line-height: 1.7; color: var(--footer-muted); }
.footer-heading { font-weight: 800; font-size: 14px; color: oklch(96% 0.01 95); margin: 0 0 12px; }
.footer-heading--second { margin: 20px 0 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--footer-muted); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form .field { flex: 1; padding: 10px; border: none; border-radius: 4px; font-size: 13px; min-width: 0; }
.newsletter-form button {
  padding: 10px 16px; background: oklch(55% 0.1 150); color: var(--surface);
  border: none; border-radius: 4px; font-weight: 800; font-size: 13px; cursor: pointer;
}
.newsletter-success { font-size: 14px; color: oklch(88% 0.02 130); }
.site-footer__bottom {
  max-width: 1240px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid oklch(40% 0.03 150);
  font-size: 13px; color: oklch(70% 0.01 95); text-align: center;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2,1fr); }
  .usp-grid { grid-template-columns: repeat(2,1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    order: 3;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: inline-block; }
  .site-header__inner { padding: 14px 20px; }
  .hero { padding: 48px 20px; }
  .hero__title { font-size: 34px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid--3 { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; padding: 40px 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .order-form { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .cart-item { flex-wrap: wrap; }
}
