/* ============================================================ */
/* ФАЙЛ: static/css/main.css                                    */
/* ============================================================ */
:root {
  --wood-dark: #2b1d12;
  --wood: #6f4a2f;
  --wood-mid: #8a5a3b;
  --wood-light: #c08a5a;
  --cream: #faf5ec;
  --paper: #fffdf8;
  --amber: #d97706;
  --amber-dark: #b45309;
  --gold: #e8b34b;
  --text: #2b2119;
  --muted: #7a6a5c;
  --muted-2: #a2907c;
  --line: #eadfce;
  --shadow-md: 0 10px 30px rgba(43, 29, 18, .10);
  --shadow-lg: 0 24px 60px rgba(43, 29, 18, .16);
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Manrope Variable', Manrope, system-ui, sans-serif;
  line-height: 1.15; color: var(--wood-dark); letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1220px, calc(100% - 44px)); margin: 0 auto; }
section[id] { scroll-margin-top: 92px; }

.gold-text {
  background: linear-gradient(120deg, var(--amber), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Прогресс чтения ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  z-index: 300; transition: width .1s linear;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; font-family: 'Inter Variable', sans-serif;
  cursor: pointer; transition: all .28s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: #fff; box-shadow: 0 8px 22px rgba(217,119,6,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(217,119,6,.4); }
.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; }

/* ---------- Хедер ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 245, 236, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(43,29,18,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; box-shadow: 0 6px 16px rgba(43,29,18,.22); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: 'Manrope Variable', sans-serif; font-weight: 800; font-size: 18px; color: var(--wood-dark); }
.logo-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; }

.nav { display: flex; gap: 28px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--muted); position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--amber), var(--gold)); transition: width .3s var(--ease); border-radius: 2px; }
.nav a:hover, .nav a.active { color: var(--wood-dark); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--wood-dark); transition: all .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 170px 0 100px; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(232,179,75,.18), transparent 42%),
    linear-gradient(155deg, #241a12 0%, #33251a 55%, #3f2d1d 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 9px);
}
.hero::after {
  content: ''; position: absolute; top: -30%; right: -10%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(232,179,75,.14), transparent 65%);
  pointer-events: none; animation: heroGlow 9s ease-in-out infinite;
}
@keyframes heroGlow { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.1); } }

.hero-content { position: relative; z-index: 3; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 100px;
  background: rgba(232,179,75,.14); border: 1px solid rgba(232,179,75,.4);
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232,179,75,.2); animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(232,179,75,.2); } 50% { box-shadow: 0 0 0 9px rgba(232,179,75,.04); } }

.hero-title { color: #fff; font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 22px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-sub { color: rgba(255,255,255,.8); font-size: 17.5px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; gap: 48px; list-style: none; flex-wrap: wrap; }
.stat-num { font-family: 'Manrope Variable', sans-serif; font-size: 36px; font-weight: 800; color: var(--gold); display: block; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 8px; display: block; }

/* ---------- Секции ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label { display: inline-block; color: var(--amber-dark); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--muted); font-size: 16.5px; }
.center-cta { text-align: center; margin-top: 46px; }

/* ---------- Motion reveal ---------- */
.motion-reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.motion-reveal.visible { opacity: 1; transform: none; }

/* ---------- Материалы ---------- */
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.material-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: transform .3s var(--ease), box-shadow .3s; }
.material-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.material-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.material-icon { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 27px; background: linear-gradient(145deg, #f3e6d5, #e8d3ba); box-shadow: inset 0 -4px 9px rgba(138,90,59,.2); }
.material-rating { background: #fdf1e2; border: 1px solid rgba(217,119,6,.25); color: var(--amber-dark); padding: 6px 13px; border-radius: 100px; font-weight: 800; font-size: 13.5px; }
.material-card h3 { font-size: 19.5px; margin-bottom: 9px; }
.material-short { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.material-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.material-specs > div { background: #f6f0e6; border-radius: 12px; padding: 12px 14px; }
.material-specs span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); margin-bottom: 4px; }
.material-specs strong { font-family: 'Manrope Variable', sans-serif; font-size: 14.5px; color: var(--wood-dark); }

.pros-cons-details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--amber-dark); padding: 10px 0; list-style: none; user-select: none; }
.pros-cons-details summary::-webkit-details-marker { display: none; }
.pc-list { list-style: none; margin: 6px 0 14px; }
.pc-list li { position: relative; padding-left: 24px; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.pc-list.pros li::before { content: '✓'; position: absolute; left: 0; color: #5f8a4e; font-weight: 800; }
.pc-list.cons li::before { content: '✕'; position: absolute; left: 0; color: #c0552e; font-weight: 800; }

/* ---------- Калькулятор ---------- */
.calc-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.calc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.calc-field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; color: var(--text); }
.calc-field input, .calc-field select { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: 15px; background: #fff; color: var(--text); transition: all .2s; }
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(217,119,6,.12); }

.calc-result { margin-top: 22px; background: linear-gradient(150deg, #2b1d12, #45301d); border-radius: var(--radius-lg); padding: 24px; display: none; color: #fff; }
.calc-result.show { display: block; animation: resultIn .5s var(--ease); }
@keyframes resultIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.calc-result-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.16); font-size: 14.5px; }
.calc-result-row:last-child { border-bottom: 0; }
.calc-result-row span { color: rgba(255,255,255,.65); }
.calc-result-row strong { font-family: 'Manrope Variable', sans-serif; font-size: 17px; color: var(--gold); }

.calc-info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.calc-info h3 { font-size: 19px; margin-bottom: 16px; }
.formula { background: #2b1d12; color: var(--gold); font-family: 'Manrope Variable', sans-serif; font-weight: 800; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 13.5px; text-align: center; }
.info-list { list-style: none; margin: 0 0 16px; }
.info-list li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 14px; color: var(--muted); }
.info-list li::before { content: '◆'; position: absolute; left: 0; top: 2px; font-size: 9px; color: var(--amber); }
.info-list li strong { color: var(--text); }
.note { font-size: 13px; color: var(--muted-2); }

/* ---------- Карточки статей ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-thumb { height: 190px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 75% 25%, rgba(232,179,75,.28), transparent 55%), repeating-linear-gradient(90deg, #3a2a1d 0 7px, #452f1f 7px 14px); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .article-thumb img { transform: scale(1.06); }
.thumb-emoji { font-size: 54px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.4)); }
.article-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-body h2, .article-body h3 { font-size: 18px; line-height: 1.35; }
.article-body p { color: var(--muted); font-size: 14px; flex: 1; }
.article-meta-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); padding-top: 12px; border-top: 1px dashed var(--line); }

.chip { display: inline-block; padding: 5px 12px; border-radius: 100px; background: #f3ead9; color: #8a6a35; font-size: 12px; font-weight: 700; align-self: flex-start; }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero { position: relative; padding: 160px 0 56px; overflow: hidden; color: #fff; background: radial-gradient(circle at 88% 10%, rgba(232,179,75,.16), transparent 42%), linear-gradient(155deg, #241a12, #33251a 70%, #3f2d1d); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); margin: 14px 0; }
.page-hero .section-label { color: var(--gold); }
.page-hero-sub { color: rgba(255,255,255,.78); max-width: 620px; font-size: 16.5px; }
.breadcrumbs { font-size: 13.5px; color: rgba(255,255,255,.55); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Поиск и фильтры ---------- */
.search-line { display: flex; gap: 12px; margin-top: 28px; max-width: 560px; }
.search-line input { flex: 1; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 15px; }
.search-line input::placeholder { color: rgba(255,255,255,.5); }
.search-line input:focus { outline: none; border-color: var(--gold); }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chip { padding: 9px 18px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--muted); transition: all .25s; }
.filter-chip:hover { border-color: var(--amber); color: var(--amber-dark); }
.filter-chip.active { background: var(--wood-dark); border-color: var(--wood-dark); color: #fff; }
.sort-form { margin-left: auto; }
.sort-form select { padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.results-line { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.page-link { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; color: var(--muted); transition: all .25s; }
.page-link:hover { border-color: var(--amber); color: var(--amber-dark); }
.page-link.current { background: var(--wood-dark); border-color: var(--wood-dark); color: #fff; }

.empty-state { text-align: center; padding: 74px 20px; }
.empty-icon { font-size: 60px; margin-bottom: 18px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Статья ---------- */
.article-hero-meta { margin-top: 18px; border: 0; padding: 0; color: rgba(255,255,255,.75); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 56px 0 84px; align-items: start; }
.article-figure { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.prose { font-size: 17px; line-height: 1.85; color: #3d3128; }
.prose h2 { font-size: 27px; margin: 46px 0 18px; padding-left: 16px; border-left: 5px solid var(--amber); }
.prose h3 { font-size: 21px; margin: 34px 0 14px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--amber-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--wood-mid); background: #f6ecdf; padding: 16px 22px; border-radius: 0 12px 12px 0; margin: 26px 0; color: #5c4632; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.prose th, .prose td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.prose th { background: #f3ead9; font-family: 'Manrope Variable', sans-serif; }
.prose tr:last-child td { border-bottom: 0; }
.prose img { border-radius: 14px; }

.article-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }

.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 96px; box-shadow: var(--shadow-md); }
.aside-card h3 { font-size: 16.5px; margin-bottom: 14px; }
.aside-card a { display: block; padding: 11px 0; border-top: 1px dashed var(--line); font-weight: 600; font-size: 14.5px; transition: all .25s; }
.aside-card a:hover { color: var(--amber-dark); padding-left: 5px; }

/* ---------- Климат ---------- */
.climate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.climate-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s; }
.climate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.climate-temp { display: inline-block; background: linear-gradient(135deg, #2b1d12, #45301d); color: var(--gold); font-family: 'Manrope Variable', sans-serif; font-weight: 800; font-size: 13.5px; padding: 8px 15px; border-radius: 100px; margin-bottom: 16px; }
.climate-card h3 { font-size: 18px; margin-bottom: 6px; }
.climate-cities { font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(43, 29, 18, .97); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(232,179,75,.35);
  box-shadow: 0 -12px 40px rgba(0,0,0,.3);
  animation: cookieIn .5s var(--ease);
}
.cookie-banner.hiding { animation: cookieOut .4s var(--ease) forwards; }
@keyframes cookieIn { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes cookieOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(110%); opacity: 0; } }
.cookie-inner { width: min(1220px, calc(100% - 44px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.cookie-inner p { color: rgba(255,255,255,.82); font-size: 14px; max-width: 720px; }
.cookie-inner strong { color: var(--gold); }

/* ---------- Футер ---------- */
.footer { background: #221810; color: #b3a495; padding: 64px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .logo-name { color: #fff; }
.footer .logo-tag { color: #8a7a6a; }
.footer-about { font-size: 14px; margin-top: 18px; max-width: 320px; line-height: 1.7; }
.footer h4 { color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { font-size: 14px; color: #b3a495; transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #8a7a6a; }


/* ---------- Переключатель валют ---------- */
/* ---------- Переключатель валют ---------- */
.currency-switcher {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(232, 179, 75, 0.08), rgba(232, 179, 75, 0.02));
  border: 1px solid rgba(232, 179, 75, 0.2);
  border-radius: 14px;
  flex-wrap: wrap;
}

.currency-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.currency-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.currency-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.25s;
}

.currency-btn:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

.currency-btn.active {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  border-color: transparent;
  color: #fff;
}

/* Адаптив для переключателя валют */
@media (max-width: 520px) {
  .currency-switcher {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .currency-buttons {
    width: 100%;
  }
  .currency-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
  }
}
/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .materials-grid, .articles-grid, .climate-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-layout, .article-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header.nav-open .nav {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; z-index: 99;
    background: var(--cream); flex-direction: column; gap: 0; padding: 12px 24px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    animation: menuIn .3s var(--ease);
  }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .header.nav-open .nav a { padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
  .header.nav-open .nav a::after { display: none; }
  .header.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.nav-open .burger span:nth-child(2) { opacity: 0; }
  .header.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 140px 0 76px; }
  .materials-grid, .articles-grid, .climate-grid, .calc-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .page-hero { padding: 128px 0 44px; }
  .sort-form { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner .btn { width: 100%; }
  .hero-stats { gap: 28px; }
}

/* ---------- Telegram-ссылка в футере ---------- */
.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(232, 179, 75, 0.08);
  border: 1px solid rgba(232, 179, 75, 0.2);
  color: #e8b34b !important;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s var(--ease);
  margin-bottom: 6px;
}

.footer-tg:hover {
  background: rgba(232, 179, 75, 0.18);
  border-color: rgba(232, 179, 75, 0.5);
  color: #f2c66d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 179, 75, 0.15);
  padding-left: 18px;
}

.tg-icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.footer-tg:hover .tg-icon {
  transform: rotate(-12deg) scale(1.1);
}

/* На мобильных — ссылка на всю ширину */
@media (max-width: 760px) {
  .footer-tg {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

