:root {
  --primary: #ffc660;
  --primary-dark: #885815;
  --primary-light: #fff1d4;
  --secondary: #183840;
  --secondary-light: #285252;
  --text: #243e43;
  --text-light: #506367;
  --bg: #f5f7f4;
  --border: #d5dfda;
  --success: #236448;
  --shadow: 0 6px 20px #17383f0b;
  --shadow-hover: 0 12px 28px #17383f17;
}
body { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #247b9a; outline-offset: 3px; }
.top-bar .container > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.top-bar svg { color: var(--primary); flex: none; }
.header-main { background: white; }
.logo-icon { background: none; flex: none; }
.logo-title { letter-spacing: -.045em; }
.nav { border-bottom: 1px solid var(--border); }
.search-input { border-width: 1px; border-radius: 24px; }
.hero, .page-header, .cta-section {
  background-color: var(--secondary);
  background-image: radial-gradient(ellipse at 100% 0%, #315b58 0%, transparent 62%),
    repeating-linear-gradient(116deg, transparent 0 39px, #ffffff08 39px 40px);
}
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0; }
.hero::before { display: none; }
.hero .container { gap: clamp(2rem, 5vw, 5rem); }
.hero-content h1 { font-size: clamp(2.25rem, 4.3vw, 3.75rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-content h1 span { color: #ffcf79; }
.hero-content p { line-height: 1.58; }
.hero { isolation: isolate; }
.hero .container { display: block; }
.hero-content { max-width: 640px; }
.hero-image {
  position: absolute; inset: 0; display: block; isolation: isolate;
  background: #22494d url(../assets/field.svg) center 12% / cover no-repeat;
}
.hero-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #112e36fa 0%, #123039ef 28%, #123039bb 44%, #12303926 71%, transparent);
}
.hero-image img {
  width: 100%; height: 100%; position: absolute; inset: 0; box-shadow: none; border-radius: 0;
  object-fit: cover; mix-blend-mode: soft-light; opacity: .38;
}
.btn-primary, .btn-buy { background: var(--primary); color: #183840; box-shadow: none; }
.btn-primary:hover, .btn-buy:hover { background: #ffcf7c; color: #183840; box-shadow: var(--shadow); }
.btn { border-radius: 9px; }
.features { padding: clamp(1.25rem, 3vw, 2.75rem) 0; background: #fff; }
.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.feature-card { min-width: 0; background: #fafcf9; border-radius: 0; text-align: left; padding: clamp(1.25rem, 2.3vw, 2rem); }
.feature-card:hover { transform: none; box-shadow: none; background: #f2f6ef; }
.feature-icon { background: none; color: var(--secondary); width: 44px; height: 44px; margin: 0 0 16px; }
.feature-card h3 { letter-spacing: -.025em; }
.feature-card p { font-size: .95rem; }
.section-header { text-align: left; }
.section-header p { margin-left: 0; }
.section-header h2, .page-header h1, .about-content h2, .cta-section h2 { letter-spacing: -.045em; line-height: 1.12; }
.section-header h2::before, .about-content h2::before {
  content: ""; display: block; width: 42px; height: 4px; margin-bottom: 16px;
  background: repeating-linear-gradient(110deg, #bb842b 0 7px, transparent 7px 10px);
}
.products-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); }
.product-card > a { display: block; background: #edf1ea; border-bottom: 1px solid var(--border); }
.product-image { height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-badge {
  position: static; align-self: start; max-width: 100%; background: #ffedc5; color: #604016;
  border-radius: 4px; margin-bottom: 10px; padding: 3px 9px;
}
.product-footer { margin-top: auto; gap: 10px; }
.product-price { min-width: 0; }
.btn-buy { flex: none; }
.product-meta { gap: 6px; }
.product-meta span, .product-detail *, .catalog-layout > *, .features-list li, .modal * { min-width: 0; }
.product-detail-image { align-self: start; background: #edf1ea; }
.product-detail-image img { display: block; height: auto; }
.meta-row { gap: 1rem; }
.meta-value { text-align: right; }
.breadcrumbs { flex-wrap: wrap; }
.modal { max-height: 88vh; overflow-y: auto; }
.modal h3 { padding-inline: 14px; }
.sidebar-block, .delivery-content, .contact-card { border: 1px solid var(--border); }
.mobile-call-fab { animation: none; }
@keyframes arrive { from { transform: translateY(12px); opacity: .35; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-content, .page-header h1 { animation: arrive .55s ease-out both; }
  .field-enter { animation: arrive .46s ease-out both; }
}
/* Scale the landscape to the banner height on desktop. */
@media (min-width: 769px) {
  .hero-image { background-image: none; }
  .hero-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% + min(21vw, 340px));
    height: 118%;
    aspect-ratio: 2;
    transform: translate(-50%, -50%);
    background: url(../assets/field.svg) center / contain no-repeat;
    mask-image: linear-gradient(to right, transparent, black 18%, black 88%, transparent);
  }
}
@media (max-width: 960px) and (min-width: 769px) {
  .nav-links a { padding-inline: 10px; }
  .search-input { width: 185px; }
}
@media (max-width: 768px) {
  .hero .container { text-align: left; grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-content h1 { max-width: 17ch; }
  .hero-content p { margin-bottom: 20px; font-size: 1rem; }
  .hero-buttons { justify-content: flex-start; gap: 8px; }
  .hero-buttons .btn { padding: 12px 18px; }
  .hero-image { background-size: auto 100%; background-position: 66% bottom; }
  .hero-image::after { background: linear-gradient(90deg, #102e36eb, #102e36b8 52%, #102e3645); }
  .hero-content { max-width: 34rem; }
  .nav .container { padding: 6px 16px; }
  .search-wrapper { margin-top: 0; }
  .search-input { min-width: 0; font-size: 16px; }
  .page-header { padding: 2.25rem 0; }
  .section { padding: 2.75rem 0; }
  .sidebar { display: grid; gap: 12px; }
  .sidebar-block { margin: 0; }
  .catalog-layout, .product-detail, .contacts-grid { gap: 16px; }
  .product-detail-actions .btn { width: 100%; padding: 12px 14px; }
  .modal { padding: 24px 16px; }
}
@media (max-width: 480px) {
  .top-bar .container { gap: 2px 16px; }
  .logo-subtitle { line-height: 1.35; }
  .hero { padding: 32px 0 74px; }
  .hero-image { background-size: auto 85%; background-position: 75% bottom; }
  .hero-image::after { background: linear-gradient(180deg, #173840 0%, #15353ddf 33%, #13323ade 65%, #13323a88 88%, #13323a30); }
  .hero-buttons .btn { flex: 1 1 125px; }
  .feature-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 17px; }
  .feature-icon { grid-row: span 2; width: 40px; margin: 0; }
  .feature-card h3 { margin: 0; }
  .feature-card p { grid-column: 2; }
  .product-detail, .contact-card, .delivery-content { padding: 20px; }
  .cta-phone { padding: 12px; font-size: 1rem; }
  .page-header h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.about-image::before { right: 0; }
.about-image { background: #22494d url(../assets/field.svg) center / cover; border-radius: var(--radius); }
.about-image img { display: block; aspect-ratio: 7 / 5; object-fit: cover; }
.mobile-call-fab { background: var(--primary); color: var(--secondary); }
