:root{
  --bg: #f5f8fa;
  --bg-alt: #edf4f8;
  --card: #ffffff;
  --text: #163042;
  --muted: #5f7280;
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --accent: #ff6b4a;
  --border: #dbe7ef;
  --shadow: 0 12px 30px rgba(18, 50, 74, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

body.mobile-menu-open{
  overflow: hidden;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

p{
  margin-top: 0;
}

.container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.section{
  padding: 72px 0;
}

.section--alt{
  background: var(--bg-alt);
}

.section__head{
  text-align: center;
  margin-bottom: 30px;
}

.section__head--left{
  text-align: left;
}

.section__head h2{
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 10px;
}

.section__head p{
  margin: 0;
  color: var(--muted);
}

.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.25s ease;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.22);
  cursor: pointer;
}

.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover{
  transform: translateY(-1px);
  background: var(--primary-dark);
  color: #fff;
}

.btn--outline{
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
  box-shadow: none;
}

.btn--ghost{
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--small{
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 248, 250, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 231, 239, 0.8);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.site-logo,
.footer-logo{
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo{
  min-width: 220px;
}

.logo-mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #5ec8ff);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.logo-text{
  display: flex;
  flex-direction: column;
}

.logo-text strong{
  font-size: 16px;
  font-weight: 800;
}

.logo-text small{
  color: var(--muted);
  font-size: 12px;
}

.menu{
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 500;
}

.menu a:hover{
  color: var(--primary);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-contacts{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.phone{
  font-weight: 700;
  color: var(--text);
}

.worktime{
  color: var(--muted);
  font-size: 12px;
}

.cart-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cart-link__count{
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.burger{
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  padding: 10px;
}

.burger span{
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.25s;
}

.mobile-menu{
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-menu.is-open{
  display: block;
}

.mobile-menu__list{
  list-style: none;
  padding: 18px 0;
  margin: 0;
}

.mobile-menu__list li{
  margin-bottom: 12px;
}

.mobile-menu__list a{
  font-weight: 700;
  color: var(--text);
}

/* Hero */
.hero{
  padding: 70px 0 30px;
  background:
    radial-gradient(circle at top right, rgba(30,136,229,0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255,107,74,0.10), transparent 30%);
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.badge{
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30,136,229,0.10);
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-content h1{
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero-content p{
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.hero-benefits{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.benefit-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.benefit-chip__icon{
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
}

.hero-visual{
  position: relative;
  min-height: 520px;
}

.hero-card{
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(219,231,239,0.8);
}

.hero-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card--main{
  inset: 0 60px 70px 0;
  background: #dbe7ef;
}

.hero-card--small{
  width: 240px;
  height: 240px;
  right: 0;
  bottom: 0;
  background: #dbe7ef;
}

/* Common grids */
.categories,
.features,
.products,
.steps,
.delivery,
.reviews,
.post-grid{
  display: grid;
  gap: 18px;
}

.categories,
.features,
.products{
  grid-template-columns: repeat(4, 1fr);
}

.steps,
.delivery,
.reviews{
  grid-template-columns: repeat(3, 1fr);
}

.category-card,
.feature,
.step,
.delivery__item,
.review,
.product-card,
.post-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.category-card{
  overflow: hidden;
  transition: 0.25s ease;
}

.category-card:hover{
  transform: translateY(-4px);
}

.category-card img{
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.category-card h3{
  margin: 0;
  padding: 16px;
  font-size: 16px;
}

.feature,
.step,
.delivery__item,
.review{
  padding: 24px;
}

.feature__icon{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  font-size: 22px;
  margin-bottom: 14px;
}

.feature h3,
.delivery__item h3,
.step h3{
  margin: 0 0 10px;
}

.feature p,
.delivery__item p,
.step p,
.review p{
  margin: 0;
  color: var(--muted);
}

.review span{
  display: block;
  margin-top: 14px;
  font-weight: 800;
}

.step__num{
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Products fallback */
.product-card{
  overflow: hidden;
}

.product-card img{
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-card__body{
  padding: 18px;
}

.product-card__body h3{
  margin: 0 0 8px;
}

.product-card__body p{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-card__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price{
  font-weight: 800;
  color: var(--primary-dark);
}

/* About */
.about{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.about__text p{
  color: var(--muted);
}

.about__image img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 420px;
  width: 100%;
  object-fit: cover;
}

/* SEO */
.seo-text{
  background: #fff;
}

.seo-text p{
  color: var(--muted);
}

/* Blog */
.post-grid{
  grid-template-columns: repeat(3, 1fr);
}

.post-card{
  overflow: hidden;
}

.post-card__thumb img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card__body{
  padding: 20px;
}

.post-card__body h2{
  margin-top: 0;
}

.read-more{
  color: var(--primary);
  font-weight: 800;
}

.page-title,
.single-title,
.archive-header h1{
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 0;
}

/* Footer */
.site-footer{
  background: #102838;
  color: #dbe7ef;
  margin-top: 20px;
}

.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 42px 0;
}

.footer-inner h3{
  color: #fff;
  margin-top: 0;
}

.footer-description{
  max-width: 340px;
  color: #a9c0cf;
  margin-top: 16px;
}

.footer-menu{
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li{
  margin-bottom: 8px;
}

.site-footer a{
  color: #dbe7ef;
}

.site-footer a:hover{
  color: #fff;
}

.footer-bottom{
  border-top: 1px solid rgba(219,231,239,0.12);
  padding: 14px 0;
  color: #a9c0cf;
  font-size: 14px;
}

.footer-bottom__inner{
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

/* WooCommerce */
.woocommerce-page-wrap{
  padding: 72px 0;
}

.woocommerce ul.products{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after{
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width: auto;
  float: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 0 0 18px;
  text-align: left;
}

.woocommerce ul.products li.product a img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin: 0 0 14px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  padding: 0 18px;
  font-size: 17px;
  color: var(--text);
}

.woocommerce ul.products li.product .price{
  padding: 0 18px;
  color: var(--primary-dark);
  font-weight: 800;
}

.woocommerce ul.products li.product .button{
  margin: 8px 18px 0;
}

.woocommerce .woocommerce-result-count{
  color: var(--muted);
}

.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.woocommerce div.product .product_title{
  margin-top: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color: var(--primary-dark);
  font-weight: 800;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  border-top-color: var(--primary);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* 404 */
.error-404{
  text-align: center;
}

.error-404 h1{
  font-size: clamp(34px, 5vw, 58px);
}

/* Responsive */
@media (max-width: 1100px){
  .site-nav{
    display: none;
  }

  .burger{
    display: block;
  }

  .hero-inner,
  .about,
  .footer-inner{
    grid-template-columns: 1fr;
  }

  .categories,
  .features,
  .products,
  .post-grid,
  .woocommerce ul.products{
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .delivery,
  .reviews{
    grid-template-columns: 1fr;
  }

  .hero-visual{
    min-height: 420px;
  }
}

@media (max-width: 640px){
  .section{
    padding: 52px 0;
  }

  .hero{
    padding-top: 44px;
  }

  .header-contacts{
    display: none;
  }

  .site-logo{
    min-width: auto;
  }

  .logo-text small{
    display: none;
  }

  .categories,
  .features,
  .products,
  .post-grid,
  .woocommerce ul.products{
    grid-template-columns: 1fr;
  }

  .hero-content p{
    font-size: 16px;
  }

  .hero-card--main{
    inset: 0 20px 60px 0;
  }

  .hero-card--small{
    width: 160px;
    height: 160px;
  }

  .footer-bottom__inner{
    flex-direction: column;
  }
}