/* Еко Енерджи: всички стилове на публичната част */

@font-face { font-family: Montserrat; src: url(../fonts/montserrat-cyrillic.woff2) format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Montserrat; src: url(../fonts/montserrat-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #7c921f;
  --green-dark: #5f7115;
  --olive: #46532a;
  --lime: #9ab51e;
  --soft: #dde3b4;
  --cream: #f0f1e6;
  --mint: #f4fff0;
  --tile: #f9f4ee;
  --accent: #f69946;
  --ink: #232323;
  --text: #4f555a;
  --line: #e4e6dc;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 10px 34px rgba(35, 35, 35, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 16px/1.8 Montserrat, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.wrap { width: min(100%, 1200px); margin-inline: auto; padding-inline: 20px; }
.wrap .wrap, .with-sidebar .wrap, .post-full .wrap { width: 100%; padding-inline: 0; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 16px; background: var(--white); }
.hp { position: absolute; left: -9999px; }

.btn { display: inline-block; padding: 13px 32px; border: 0; border-radius: 30px; background: var(--green); color: var(--white); font: 700 15px/1.3 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--green-dark); color: var(--white); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.buttons .btn:nth-child(2) { background: var(--ink); }
.eyebrow { margin: 0 0 .5em; color: var(--green); font-weight: 700; }
.more { font-weight: 700; text-decoration: none; }
.section { padding-block: 64px; }
.section-title { margin-bottom: 36px; }
.section-title.center { text-align: center; }

/* Блокове */
.block { padding-block: 40px; }
.block:first-of-type { padding-top: 0; }
.title-bar + .block { padding-top: 56px; }
.bg-cream { background-color: var(--cream); padding-block: 64px; }
.bg-soft { background-color: var(--soft); padding-block: 64px; }
.bg-mint { background-color: var(--mint); padding-block: 64px; }
.bg-dark { background-color: var(--olive); padding-block: 64px; color: var(--white); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-image { background-size: cover; background-position: center; padding-block: 64px; }
.block-hero.bg-mint { padding-block: 0; }
.block-map, .block-video { padding-block: 0; }
.post-full .block { padding-block: 16px; }

/* Шапка */
.topbar { background: var(--green); color: var(--white); font-size: 14px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.topbar-mail { display: inline-flex; }
.topbar-info { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 8px; }
.site-header { position: relative; z-index: 20; background: var(--white); box-shadow: 0 2px 10px rgba(35, 35, 35, .05); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo img { width: 80px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.main-nav .lang-switch { gap: 10px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lang-switch a[aria-current] { color: var(--green); }
.lang-switch img { width: 20px; height: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--green); }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }

/* Банер */
.block-hero { background: var(--mint); }
.hero { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 24px; min-height: 620px; }
.hero h1 { margin-bottom: 0; }
.hero-text { padding-block: 48px; }
.hero-media { position: relative; }
.hero-main { width: 100%; }
.hero-decor { position: absolute; width: 22%; pointer-events: none; }
.hero-decor.d1 { left: -6%; top: 2%; }
.hero-decor.d2 { right: 0; top: -2%; width: 16%; }
.hero-decor.d3 { right: 4%; bottom: 4%; width: 20%; }

/* Предимства */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); list-style: none; margin: -56px 0 0; padding: 12px; position: relative; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.features li { display: flex; align-items: center; gap: 14px; padding: 16px; }
.features li + li { border-left: 1px solid var(--line); }
.features h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.feature-icon { flex: none; color: var(--green); }
.feature-icon svg { width: 40px; height: 40px; fill: currentColor; display: block; }
.block-features { padding-block: 0 24px; }

.section-head { max-width: 860px; }
.section-head.center { text-align: center; }
.section-head.left { margin-left: max(0px, calc((100vw - 1200px) / 2)); }

/* Карти с номера */
.number-cards { display: grid; gap: 40px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-1 { grid-template-columns: minmax(0, 1fr); }
.number-card { position: relative; overflow: hidden; padding: 0 28px 32px; background: var(--cream); border-radius: var(--radius); text-align: center; }
.number-card img { margin: 0 auto 8px; max-height: 320px; width: auto; object-fit: contain; }
.number-card h3 { position: relative; z-index: 1; margin: 8px 0 28px; font-size: 1.375rem; }
.number-card .more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.number-card .more svg { width: 34px; height: 12px; fill: currentColor; }
.card-number { position: absolute; right: 24px; bottom: -14px; color: var(--white); font-size: clamp(90px, 13vw, 170px); font-weight: 400; line-height: 1; pointer-events: none; }

/* Снимка и текст */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 56px; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media.images-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; }
.split-media img { border-radius: var(--radius); }
.rich > :last-child { margin-bottom: 0; }
.rich img { border-radius: 6px; margin-block: 12px; }
.rich ul { padding-left: 1.3em; }
.rich li { margin-bottom: .4em; }
.rich li::marker { color: var(--green); }
.rich blockquote { margin: 24px 0; padding: 12px 24px; border-left: 4px solid var(--green); background: var(--cream); font-weight: 500; color: var(--ink); }
.rich table { width: 100%; border-collapse: collapse; margin-bottom: 1em; display: block; overflow-x: auto; }
.rich td, .rich th { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.rich details { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.rich summary { padding: 12px 16px; color: var(--ink); font-weight: 600; cursor: pointer; }
.rich details > :not(summary) { padding-inline: 16px; }
.rich .cols { display: grid; gap: 32px; margin-bottom: 32px; }
.rich .cols > * > :last-child { margin-bottom: 0; }
.rich .el-sec { padding-block: 16px; }
.rich .el-sec-bg { margin-bottom: 24px; padding: 32px; border-radius: var(--radius); background-color: rgba(255, 255, 255, .84); background-size: cover; background-position: center; background-blend-mode: lighten; }
.rich .progress { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 3px solid var(--green); font-weight: 600; color: var(--ink); }

/* Лога */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 56px; list-style: none; margin: 0; padding: 0; }
.logos img { max-height: 90px; max-width: 170px; width: auto; object-fit: contain; }
.logos a { display: block; }

/* Продукти */
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity; }
.product-row > * { scroll-snap-align: start; }
.product-grid, .card-grid { display: grid; gap: 28px; }
.product-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(35, 35, 35, .08); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-img { position: relative; display: block; aspect-ratio: 1; background: var(--white); padding: 12px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-img img.hover { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); opacity: 0; transition: opacity .25s; }
.product-card:hover .hover { opacity: 1; }
.product-card h2 { flex: 1; margin: 0; padding: 14px 16px; background: var(--green); font-size: 1.0625rem; }
.product-card h2 a { color: var(--white); text-decoration: none; }
.product-card .more { padding: 10px 16px; font-size: 14px; }
.result-count { font-size: 14px; }

/* Плочка в каталога */
.product-card.shop { position: relative; background: var(--tile); border-radius: 5px; box-shadow: none; overflow: visible; transition: none; }
.product-card.shop:hover { transform: none; box-shadow: none; }
.product-card.shop::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); border-radius: 5px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.product-card.shop:hover::after { opacity: 1; }
.product-card.shop .product-img { padding: 0; overflow: hidden; border-radius: 5px 5px 0 0; }
.product-card.shop .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card.shop .product-img img.hover { inset: 0; width: 100%; height: 100%; transition: opacity .7s; }
.product-card.shop h2 { flex: 1; padding: 20px 10px 25px 25px; background: none; font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.product-card.shop h2 a { color: var(--ink); transition: color .4s; }
.product-card.shop h2 a:hover { color: var(--accent); }
.product-grid.cols-3:has(.shop) { gap: 48px 30px; }
@media (hover: none) { .product-card.shop .product-img img.hover { display: none; } }

/* Категории в каталога */
.shop-sidebar .widget h2 { margin-bottom: 25px; font-size: 2.25rem; font-weight: 700; line-height: 1.33; }
.shop-cats { list-style: none; margin: 0; padding: 0; }
.shop-cats li { margin-bottom: 5px; }
.shop-cats a { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; padding-left: 13px; color: var(--ink); font-weight: 600; line-height: 1.5; text-decoration: none; transition: color .3s; }
.shop-cats a::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.shop-cats a:hover, .shop-cats a[aria-current] { color: var(--accent); }
.cat-count { flex: none; margin-top: 2px; padding: 0 5px 1px; border-radius: 3px; background: var(--tile); color: #808486; font-size: 14px; font-weight: 600; line-height: 1.5; }
.product-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.product-media { display: grid; gap: 12px; }
.product-media img { width: 100%; border-radius: var(--radius); }
.product-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 24px; font-size: 15px; }
.product-meta dt { color: var(--ink); font-weight: 600; }
.product-meta dd { margin: 0; }
.related { padding-top: 32px; }

/* Галерия */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery a { display: block; overflow: hidden; border-radius: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* Видео */
.video-band { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 480px; padding: 48px 20px; background: var(--olive) center/cover no-repeat; text-align: center; color: var(--white); }
.video-band h2 { color: var(--white); margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.video-band.side { min-height: 380px; border-radius: var(--radius); }
.play { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--white); color: var(--green); transition: transform .2s; }
.play:hover { transform: scale(1.08); }
.play svg { width: 32px; height: 32px; fill: currentColor; margin-left: 4px; }

/* Табове */
.tabs details { border-bottom: 1px solid var(--line); }
.tabs summary { padding: 12px 0; color: var(--ink); font-weight: 700; cursor: pointer; }
.tabs .rich { padding-bottom: 16px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-list button { padding: 9px 18px; border: 0; border-radius: 22px; background: var(--cream); color: var(--ink); font: 600 15px/1.3 inherit; font-family: inherit; cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--green); color: var(--white); }
.tabs.is-tabs details { border: 0; }
.tabs.is-tabs summary { display: none; }

/* Контакти */
.contact-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.contact-boxes li { display: flex; gap: 16px; padding: 24px; background: var(--cream); border-radius: var(--radius); }
.contact-boxes h3 { margin-bottom: 4px; }
.contact-boxes p { margin: 0; overflow-wrap: anywhere; }
.map { display: block; width: 100%; height: 440px; border: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; margin: 0; }
input[type=text], input[type=email], input[type=url], input[type=search], textarea { width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font: inherit; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--green); outline: 2px solid transparent; }
.notice { padding: 12px 18px; border-radius: 8px; font-weight: 600; }
.notice.ok { background: #e7f3d3; color: #3e5208; }
.notice.error { background: #fbe4e1; color: #8d2318; }

/* Странична колона */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.with-sidebar.sidebar-left { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.with-sidebar.sidebar-left > aside { order: -1; }
.widget { margin-bottom: 36px; }
.widget h2 { margin-bottom: 14px; font-size: 1.125rem; }
.count-list, .recent-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.count-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.count-list a { color: var(--ink); text-decoration: none; }
.count-list a:hover, .count-list a[aria-current] { color: var(--green); }
.recent-list a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 8px 0; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; text-decoration: none; }
.recent-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.recent-list time { display: block; margin-top: 2px; color: var(--text); font-weight: 400; font-size: 13px; }
.plain-list li { padding: 5px 0; font-size: 15px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a, .term-filter a { padding: 3px 14px; background: var(--cream); border-radius: 16px; color: var(--ink); font-size: 14px; text-decoration: none; }
.tag-cloud a:hover, .term-filter a:hover { background: var(--green); color: var(--white); }
.term-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.side-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.side-banner { display: block; padding: 40px 24px; border-radius: var(--radius); background: var(--green) center/cover; text-align: center; text-decoration: none; }
.side-banner strong { display: block; margin-bottom: 16px; color: var(--white); font-size: 1.5rem; }
.side-banner .btn { background: var(--white); color: var(--ink); }
.search-form { display: flex; gap: 8px; }
.widget-author { text-align: center; }
.widget-author img { width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; }

/* Блог и портфолио */
.post-card, .portfolio-card, .team-card { min-width: 0; }
.post-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(35, 35, 35, .08); overflow: hidden; }
.post-img img { width: 100%; aspect-ratio: 7/4; object-fit: cover; }
.post-body { padding: 20px 24px 24px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; }
.tag { padding: 1px 12px; border-radius: 14px; background: var(--green); color: var(--white); text-decoration: none; }
.tag:hover { color: var(--white); background: var(--green-dark); }
.post-card h3 a, .portfolio-card h3 a, .team-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover, .portfolio-card h3 a:hover, .team-card h3 a:hover { color: var(--green); }
.portfolio-card img, .team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.portfolio-card h3 { margin-bottom: 4px; }
.term-links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; text-transform: uppercase; }
.term-links a { text-decoration: none; }
.post-hero img { width: 100%; border-radius: var(--radius); margin-bottom: 20px; }
.post-media { margin-bottom: 14px; padding: 16px 18px; background: var(--cream); border-radius: 8px; color: var(--ink); font-weight: 500; }
.post-media h4 { margin: 0; }
.post-media > :last-child { margin-bottom: 0; }
.team-data { list-style: none; padding: 0 !important; }
.share { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 20px; }
.share span { color: var(--ink); font-weight: 600; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 24px; margin-block: 24px; border-block: 1px solid var(--line); }
.post-nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.post-nav span { display: block; color: var(--text); font-weight: 400; font-size: 13px; }
.post-nav .next { grid-column: 2; text-align: right; }
.comments { margin-top: 40px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list strong { color: var(--ink); }
.comment-list time { margin-left: 10px; font-size: 13px; }
.comment-list p { margin: 6px 0 0; }
.team-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; margin-bottom: 32px; }
.team-intro img { border-radius: var(--radius); width: 100%; }

/* Заглавна лента */
.title-bar { display: flex; align-items: center; min-height: clamp(268px, 28.5vw, 400px); padding-block: 31px 40px; background: #8e8b8b center / cover no-repeat; color: var(--white); text-align: center; }
.title-bar h1 { margin-bottom: 6px; color: var(--white); font-size: clamp(1.875rem, 3.5vw, 3rem); line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; font-size: 14px; font-weight: 700; line-height: 24px; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.crumbs a { color: var(--white); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumb-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Страници */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 8px; border-radius: 50%; background: var(--cream); color: var(--ink); font-weight: 600; text-decoration: none; }
.pager span[aria-current], .pager a:hover { background: var(--green); color: var(--white); }
.big-404 { margin: 0; color: var(--soft); font-size: clamp(90px, 20vw, 180px); font-weight: 800; line-height: 1; }
.search-results { padding-left: 1.2em; }

/* Долна част */
.site-footer { background: var(--olive); color: #dfe3d0; font-size: 15px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 48px; padding-block: 56px 32px; }
.footer-logo img { width: 110px; margin-bottom: 20px; }
.footer-box { display: flex; gap: 14px; margin-bottom: 18px; }
.footer-box svg { flex: none; width: 26px; height: 26px; fill: var(--lime); margin-top: 3px; }
.footer-box strong { display: block; color: var(--white); overflow-wrap: anywhere; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding-block: 4px; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-bottom: 28px; }
.footer-badges img { max-height: 170px; width: auto; background: var(--white); border-radius: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.to-top { position: fixed; z-index: 15; right: 20px; bottom: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }
.to-top:hover { color: var(--white); background: var(--green-dark); }

/* Увеличена снимка и видео */
.overlay { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: rgba(20, 24, 12, .92); }
.overlay img { max-width: 100%; max-height: 100%; object-fit: contain; }
.overlay iframe { width: min(100%, 1000px); aspect-ratio: 16/9; border: 0; }
.overlay button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; }
.overlay button:hover { background: rgba(255, 255, 255, .3); }
.overlay .x { top: 16px; right: 16px; }
.overlay .prev { left: 16px; top: calc(50% - 24px); }
.overlay .next { right: 16px; top: calc(50% - 24px); }

@media (max-width: 1024px) {
  .cols-4, .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .with-sidebar, .with-sidebar.sidebar-left { grid-template-columns: minmax(0, 1fr); }
  .with-sidebar.sidebar-left > aside { order: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--white); box-shadow: 0 12px 24px rgba(35, 35, 35, .12); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 11px 0; }
  .main-nav .lang-switch { flex-direction: row; gap: 20px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .main-nav .lang-switch a { display: inline-flex; }
  .nav-row { min-height: 76px; }
  .logo img { width: 60px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-text { padding-block: 36px 8px; }
  .features { margin-top: 24px; }
  .features li + li { border-left: 0; border-top: 1px solid var(--line); }
  .split, .product-detail, .team-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-cards.cols-2, .number-cards.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 44px; }
  .bg-cream, .bg-soft, .bg-mint, .bg-dark, .bg-image { padding-block: 44px; }
  .rich .cols { grid-template-columns: minmax(0, 1fr) !important; }
  .video-band { min-height: 320px; }
}

@media (max-width: 520px) {
  .topbar-in { min-height: 40px; font-size: 13px; }
  .topbar-info { gap: 0 14px; }
  .topbar-info a span { white-space: normal; }
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: minmax(0, 1fr); }
  .product-grid.cols-3, .product-grid.cols-4 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .shop-sidebar .widget h2 { font-size: 1.875rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { grid-column: 1; text-align: left; }
  .search-form { flex-direction: column; }
  .map { height: 320px; }
}
