/* Viafos — восстановление по архиву SilverStripe theme */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Helvetica Neue", Arial, sans-serif; color: #444; line-height: 1.5; background: #eef2e8; font-size: 14px; }
a { color: #6a9e39; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
.clear { clear: both; }

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.no-overflow { overflow: visible; }

#background { min-height: 100%; background: #eef2e8; }

/* Header */
#header { background: #fff; padding: 18px 0 0; }
#header .border { border-bottom: 1px solid #ddd; padding-bottom: 12px; position: relative; }
#logo { float: left; width: 200px; height: auto; max-height: 64px; }
#nav { float: right; list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
#nav > li { position: relative; list-style: none; }
#nav > li > a { display: block; padding: 8px 14px; color: #555; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
#nav > li.current > a, #nav > li > a:hover { color: #6a9e39; }
#nav .dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 100; list-style: none; padding: 6px 0; }
#nav li:hover .dropdown { display: block; }
#nav .dropdown a { display: block; padding: 8px 16px; color: #666; font-size: 13px; text-transform: none; white-space: nowrap; }
#nav .dropdown a:hover { background: #f4f8ef; color: #6a9e39; text-decoration: none; }
.mobile-only { display: none; }

/* Hero slider */
.slider { position: relative; background: #5a8f32; }
.cycle-slideshow { position: relative; height: 540px; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: none; }
.slide:first-child { display: block; }
.slide-a { background-image: linear-gradient(rgba(40,80,20,.45), rgba(40,80,20,.45)), url('/assets/hero-cows.jpg'); }
.slide-b { background-image: linear-gradient(rgba(40,80,20,.5), rgba(40,80,20,.5)), url('/assets/default-banner.jpg'); }
.slide-c { background-image: linear-gradient(rgba(40,80,20,.35), rgba(40,80,20,.35)), url('/assets/hero-cows.jpg'); }
.slideContent, .slideContentInner { height: 100%; display: flex; align-items: center; }
.slideContentInner { width: 100%; }
.anotherElement { color: #fff; text-align: left; padding: 0 20px; max-width: 980px; margin: 0 auto; }
.anotherElement .heading { font-size: 42px; font-weight: 300; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.3); max-width: 600px; }
.anotherElement .btn { display: inline-block; margin-top: 24px; background: #fff; color: #4a7a28; padding: 10px 28px; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; border-radius: 2px; }
.anotherElement .btn:hover { background: #f0f7ea; text-decoration: none; }
.slide-prev, .slide-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 60px; z-index: 10; opacity: .7; cursor: pointer; background: rgba(0,0,0,.25); }
.slide-prev { left: 0; border-radius: 0 4px 4px 0; }
.slide-next { right: 0; border-radius: 4px 0 0 4px; }
.slide-prev::after, .slide-next::after { content: ''; display: block; width: 12px; height: 12px; border-top: 2px solid #fff; border-right: 2px solid #fff; margin: 24px auto; }
.slide-prev::after { transform: rotate(-135deg); margin-left: 16px; }
.slide-next::after { transform: rotate(45deg); margin-right: 16px; }
.slider-bottom { height: 24px; background: url('/assets/slider-bottom.png') repeat-x center bottom; background-size: auto 24px; margin-top: -1px; }

/* Page banner (inner pages) */
#pageBanner { position: relative; background: url('/assets/default-banner.jpg') center/cover no-repeat; min-height: 220px; }
#pageBanner::before { content: ''; position: absolute; inset: 0; background: rgba(50,90,30,.55); }
#pageBanner .container { position: relative; z-index: 1; padding: 60px 20px 40px; }
#pageBannerContent { color: #fff; max-width: 700px; }
#pageBannerContent h1 { font-size: 36px; font-weight: 300; margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
#pageBannerContent p { font-size: 16px; opacity: .95; }

/* Typography blocks */
.typography { padding: 36px 20px; background: #fff; }
.typography h1 { font-size: 22px; font-weight: 400; color: #555; line-height: 1.45; margin: 20px 0; }
.typography h3, .typography h4 { color: #6a9e39; margin-bottom: 12px; font-weight: 600; }
.typography p { margin-bottom: 14px; color: #555; font-size: 14px; line-height: 1.65; }
.secondaryBanner { display: block; margin: 0 auto 24px; max-width: 980px; width: 100%; }

.home-columns table { width: 100%; border-collapse: collapse; }
.home-columns td { width: 30%; vertical-align: top; padding: 0 8px; }
.home-columns td.spacer { width: 5%; }

/* Product grid */
.features.products { display: flex; flex-wrap: wrap; gap: 0; background: #fff; padding: 20px 0 40px; }
.features.products .col { width: 33.333%; padding: 20px; border-right: 1px solid #eee; margin-bottom: 20px; }
.features.products .col:nth-child(3n) { border-right: none; }
.features.products h2.large { font-size: 28px; color: #6a9e39; font-weight: 300; margin-bottom: 4px; }
.features.products .subTitle { color: #888; font-style: italic; margin-bottom: 12px; }
.features.products img { margin: 12px 0; max-height: 180px; object-fit: contain; }
.features.products .offer { font-weight: 700; margin: 12px 0 8px; color: #555; }
.features.products .snippet p { font-size: 13px; margin-bottom: 6px; color: #666; }
a.more { display: inline-block; margin-top: 12px; color: #6a9e39; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

.product-detail .product-hero { max-width: 400px; margin: 0 0 24px; }
.testimonial-list { list-style: none; }
.testimonial-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.testimonial-quote { border-left: 4px solid #6a9e39; padding: 16px 20px; background: #f7faf4; margin: 20px 0; }
.testimonial-quote cite { display: block; margin-top: 12px; font-weight: 600; color: #6a9e39; font-style: normal; }
.news-item { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.news-item h2 { font-size: 16px; color: #6a9e39; margin-bottom: 8px; }

/* Footer */
#footer { background: #6a9e39; color: #fff; position: relative; margin-top: 0; }
#footer-top { height: 24px; background: url('/assets/footer-top.png') repeat-x; background-size: auto 24px; margin-top: -24px; }
#footer .container { display: flex; flex-wrap: wrap; gap: 30px; padding: 40px 20px; }
#footer h4 { font-size: 16px; margin-bottom: 16px; font-weight: 600; }
#footer .col-2 { flex: 1.4; min-width: 280px; }
#footer .col-1 { flex: 1; min-width: 220px; }
#footer label { display: block; font-size: 12px; margin-bottom: 4px; opacity: .9; }
#footer input, #footer textarea { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 2px; margin-bottom: 10px; font-family: inherit; font-size: 13px; }
#footer .action { background: #4a7a28; color: #fff; border: none; padding: 10px 24px; cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 12px; border-radius: 2px; }
#footer .contact { list-style: none; font-size: 13px; line-height: 1.8; }
#footer .contact a { color: #fff; }
#credits { background: #4a7a28; color: rgba(255,255,255,.85); text-align: center; padding: 12px; font-size: 12px; }
#credits a { color: #fff; }

/* Review pages (worker-generated) */
.review-content { max-width: 780px; margin: 0 auto; padding: 2.5rem 2rem; background: #fff; }
.review-content .section { margin-bottom: 2.5rem; }
.review-content h2 { font-size: 1.05rem; color: #6a9e39; margin-bottom: 1rem; }
.rating { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 2px solid #e8f5e9; margin-bottom: 1.5rem; }
.score { font-size: 2rem; color: #6a9e39; font-weight: 700; }
.stars { color: #f59e0b; letter-spacing: 3px; }
.target-link { background: #f4f9f4; border: 1px solid #c8e6c9; padding: 1.25rem; text-align: center; margin: 1.5rem 0; word-break: break-all; border-radius: 4px; }
.target-link .btn { display: inline-block; margin-top: 0.75rem; background: #6a9e39; color: #fff; padding: 0.6rem 1.5rem; border-radius: 3px; font-weight: 600; }
.review { border-left: 3px solid #c8e6c9; padding: 0.75rem 1rem; margin-bottom: 1rem; background: #f4f9f4; }
.review-author { font-weight: 600; color: #6a9e39; font-size: 0.9rem; }
.review-date { color: #aaa; font-size: 0.8rem; }
.redirect-notice { background: #f4f9f4; border: 1px solid #c8e6c9; padding: 1rem; text-align: center; font-size: 0.88rem; color: #666; border-radius: 4px; }
.hero-block { position: relative; overflow: hidden; }
.hero-img { width: 100%; height: 400px; object-fit: cover; }
.hero-text { position: absolute; inset: 0; background: rgba(30,70,32,0.55); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.hero-text .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; opacity: 0.85; }
.site-header { background: #fff; border-bottom: 3px solid #6a9e39; padding: 1rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; font-size: 0.85rem; }
.site-footer { background: #6a9e39; color: #fff; text-align: center; padding: 1.5rem; font-size: 0.82rem; }

@media (max-width: 900px) {
  #logo { float: none; display: block; margin: 0 auto 10px; }
  #nav { float: none; justify-content: center; margin-top: 10px; }
  .features.products .col { width: 50%; border-right: none; }
  .home-columns table, .home-columns tbody, .home-columns tr, .home-columns td { display: block; width: 100% !important; }
  .home-columns td.spacer { display: none; }
  .anotherElement .heading { font-size: 28px; }
  .cycle-slideshow { height: 360px; }
}

@media (max-width: 600px) {
  .features.products .col { width: 100%; }
  #nav .dropdown { position: static; box-shadow: none; border: none; }
  .mobile-only { display: list-item; }
}
