/* ============================================
   ЗЕЛЁНАЯ МИЛЯ — ФИНАЛЬНЫЙ СТИЛЬ САЙТА v3
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f7f9f5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- ШАПКА ---------- */
.site-header {
    background: linear-gradient(135deg, #3d681c, #4a7c23 50%, #5a9430);
    color: #fff;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo { color: #fff; text-decoration: none; font-size: 22px; font-weight: 800; }
.logo img { height: 38px; width: auto; display: block; }
.main-nav ul { display: flex; list-style: none; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: .3s; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.22); }
.header-phone {
    color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
    padding: 9px 18px; border-radius: 10px; white-space: nowrap; transition: .3s;
}
.header-phone:hover { background: rgba(255,255,255,.28); }

/* ---------- ВЕРХНИЙ ЭКРАН ---------- */
.hero {
    background: linear-gradient(135deg, #35591a 0%, #4a7c23 45%, #6fb846 100%);
    color: #fff;
    padding: 70px 0 65px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero h1 { font-size: 40px; line-height: 1.2; margin-bottom: 18px; position: relative; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.hero p { font-size: 18px; opacity: .95; max-width: 780px; margin: 0 auto 32px; position: relative; }
.hero-bg {
    background: linear-gradient(rgba(37,64,17,.72), rgba(74,124,35,.78)),
    url('images/hero-bg.jpg') center/cover no-repeat;
}
.hero-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 35px; position: relative; }
.hero-stat {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px; padding: 10px 20px; font-size: 15px; font-weight: 600;
}

/* ---------- КНОПКИ ---------- */
.btn { display: inline-block; padding: 15px 32px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; transition: .3s; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.btn-white { background: #fff; color: #4a7c23; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,.25); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.btn-primary { background: #4a7c23; color: #fff; }
.btn-primary:hover { background: #3d681c; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74,124,35,.35); }

/* ---------- ХЛЕБНЫЕ КРОШКИ ---------- */
.breadcrumbs { background: #fff; padding: 9px 0; border-bottom: 1px solid #eef2ea; font-size: 13px; color: #b5bfb0; }
.breadcrumbs a { color: #8aa876; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- СЕКЦИИ ---------- */
.section { padding: 55px 0; }
.section-title { text-align: center; font-size: 30px; color: #2d4d15; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: #888; margin-bottom: 35px; font-size: 16px; }

/* ---------- КАРТОЧКИ ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 10px 0; }
.catalog-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); transition: .3s; text-decoration: none; color: inherit; display: flex; flex-direction: column; border: 2px solid transparent; }
.catalog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(74,124,35,.18); border-color: #6fb846; }
.card-icon { font-size: 58px; text-align: center; padding: 32px 20px; background: linear-gradient(135deg, #f0f7e8, #e2f2d2); }
.card-photo { height: 190px; overflow: hidden; background: #e8f5d8; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .4s; }
.catalog-card:hover .card-photo img { transform: scale(1.06); }
.card-body { padding: 22px; flex: 1; }
.card-body h3 { color: #4a7c23; font-size: 20px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: #666; }
.card-link { padding: 15px 20px; background: #f7f9f5; color: #4a7c23; font-weight: 700; font-size: 14px; text-align: center; }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 10px 0; }
.advantage-card { background: #fff; border-radius: 14px; padding: 28px 22px; text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.07); transition: .3s; }
.advantage-card:hover { transform: translateY(-4px); }
.advantage-card .icon { font-size: 42px; margin-bottom: 14px; }
.advantage-card h3 { color: #4a7c23; font-size: 17px; margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: #666; }

/* ---------- ФОТО КОМПАНИИ ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 10px 0; }
.about-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,.12); display: block; }
.about-item p { text-align: center; font-size: 14px; color: #666; margin-top: 8px; font-weight: 600; }

/* ---------- ТАБЛИЦА ТОВАРОВ ---------- */
.products-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.products-table th { background: linear-gradient(135deg, #4a7c23, #5a9430); color: #fff; padding: 15px; text-align: left; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.products-table td { padding: 13px 15px; border-bottom: 1px solid #f0f4eb; font-size: 15px; }
.products-table tr:last-child td { border-bottom: none; }
.products-table tr:hover { background: #f7fbf2; }
.price { color: #4a7c23; font-weight: 700; white-space: nowrap; }
.stock-yes { color: #4a7c23; font-weight: 600; }
.stock-order { color: #e67e22; font-weight: 600; }

/* ---------- БЛОК "НЕ НАШЛИ" ---------- */
.not-found-block { background: linear-gradient(135deg, #f0f7e8, #e2f2d2); border-radius: 18px; padding: 45px 30px; text-align: center; margin: 20px 0; border: 2px dashed #6fb846; }
.not-found-block h2 { color: #2d4d15; font-size: 26px; margin-bottom: 12px; }
.not-found-block p { color: #555; margin-bottom: 22px; font-size: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- ПОДКАТЕГОРИИ ---------- */
.subcategory-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 15px 0; }
.subcategory-item { background: #fff; border: 2px solid #e0e8d5; border-radius: 10px; padding: 15px; text-decoration: none; color: #333; font-weight: 600; font-size: 15px; transition: .3s; display: flex; align-items: center; gap: 10px; }
.subcategory-item:hover { border-color: #6fb846; background: #f7fbf2; transform: translateY(-2px); }
.subcategory-item .emoji { font-size: 22px; }

/* ---------- ФОРМА ---------- */
.form-section { background: linear-gradient(135deg, #3d681c, #4a7c23 50%, #5a9430); padding: 60px 0; }
.form-box { background: #fff; border-radius: 16px; padding: 38px; max-width: 620px; margin: 0 auto; box-shadow: 0 15px 45px rgba(0,0,0,.25); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: #2d4d15; }
.form-group input, .form-group textarea { width: 100%; padding: 13px 15px; border: 2px solid #e0e8d5; border-radius: 10px; font-size: 15px; font-family: inherit; transition: .3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #6fb846; box-shadow: 0 0 0 3px rgba(111,184,70,.15); }

/* ---------- ФУТЕР ---------- */
.site-footer { background: #24401a; color: #c5d8b0; padding: 45px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 16px; }
.footer-col a { color: #c5d8b0; text-decoration: none; display: block; padding: 4px 0; font-size: 14px; transition: .3s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; text-align: center; font-size: 13px; }

/* ---------- ПЛАВАЮЩИЕ КНОПКИ ---------- */
.float-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.3); transition: .3s; }
.float-btn:hover { transform: scale(1.12); }
.float-phone, .float-wa, .float-tg, .float-max { background: #fff; }
.float-btn img { width: 34px; height: 34px; border-radius: 8px; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 900px) {
    .header-inner { flex-direction: column; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .section-title { font-size: 24px; }
}
@media (max-width: 768px) {
    .products-table { display: block; overflow-x: auto; }
    .form-box { padding: 25px 20px; }
    .not-found-block { padding: 30px 20px; }
    .not-found-block h2 { font-size: 20px; }
}
/* ---------- КОМПАКТНАЯ ШАПКА НА МОБИЛЬНОМ ---------- */
@media (max-width: 900px) {
    .site-header { padding: 8px 0; }
    .header-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
    .logo { font-size: 17px; white-space: nowrap; }
    .logo img { height: 30px; }
    .header-phone { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav ul { flex-wrap: nowrap; width: max-content; gap: 2px; }
    .main-nav a { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
}
/* ---------- КНОПКИ НА МОБИЛЬНОМ ---------- */
@media (max-width: 600px) {
    .hero .btn { display: block; width: 100%; margin: 8px 0 0 0 !important; box-sizing: border-box; text-align: center; }
    .hero-stats { gap: 8px; }
    .hero-stat { font-size: 13px; padding: 8px 12px; }
}
/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.main-nav li.has-sub{position:relative}
.main-nav li.has-sub > a:after{content:" ▾";font-size:10px;opacity:.75}
.main-nav ul.sub{display:none;position:absolute;top:calc(100% + 6px);left:0;background:#fff;border-radius:12px;box-shadow:0 14px 34px rgba(0,0,0,.18);min-width:250px;padding:8px 0;flex-direction:column;gap:0;list-style:none;margin:0;z-index:600}
.main-nav li.has-sub:hover > ul.sub,.main-nav li.has-sub.open > ul.sub{display:flex}
.main-nav ul.sub li{width:100%}
.main-nav ul.sub a{display:block;padding:11px 18px;color:#333;font-size:14px;font-weight:500;white-space:nowrap;text-decoration:none;border-radius:0}
.main-nav ul.sub a:hover{background:#f4f8ef;color:#4a7c23}
.main-nav ul.sub a.active{color:#4a7c23;font-weight:700;background:#f4f8ef}
@media(max-width:900px){
  .main-nav{position:static;overflow:visible}
  .main-nav li.has-sub{position:static}
  .main-nav ul.sub{position:absolute;left:8px;right:8px;top:100%;min-width:0;border-radius:0 0 12px 12px;box-shadow:0 16px 30px rgba(0,0,0,.25)}
}




