/* ════════════════════════════════════════════
   smiatam.com — Споделени стилове
   Версия 2.0 | 2026
   ════════════════════════════════════════════ */

:root {
  --navy: #1a2f5a;
  --navy-mid: #223670;
  --navy-light: #2d4585;
  --orange: #ff8c2a;
  --orange-dark: #e6751a;
  --warm-bg: #f8f4ef;
  --warm-card: #ffffff;
  --warm-muted: #f0ebe3;
  --text-main: #1a1a2e;
  --text-muted: #6b6b7b;
  --text-light: #9898a8;
  --border: #e2ddd6;
  --viz-green: #2ecc71;
  --viz-purple: #8b5cf6;
  --viz-amber: #f59e0b;
  --viz-blue: #3b82f6;
  --viz-red: #ef4444;
  --viz-teal: #14b8a6;
  --shadow-sm: 0 2px 8px rgba(26,47,90,0.08);
  --shadow-md: 0 8px 32px rgba(26,47,90,0.12);
  --shadow-lg: 0 20px 60px rgba(26,47,90,0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--warm-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 62px; gap: 12px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 900;
  color: #fff; text-decoration: none;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo span { color: var(--orange); }
nav {
  display: flex; gap: 2px;
  align-items: center; flex-wrap: wrap;
}
nav a {
  color: rgba(255,255,255,0.72); font-size: 0.78rem; font-weight: 600;
  text-decoration: none; padding: 5px 8px; border-radius: 7px;
  transition: all 0.2s; letter-spacing: 0.2px; text-transform: uppercase;
  white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--orange); background: rgba(255,140,42,0.12); }

/* ── PAGE WRAPPER ── */
.page-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

/* ── CALCULATOR CARD ── */
.calc-card {
  background: var(--warm-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 28px;
}
.calc-header {
  background: var(--navy);
  padding: 22px 28px;
  display: flex; align-items: center; gap: 14px;
}
.calc-icon {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.calc-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #fff; margin: 0; line-height: 1.2;
}
.calc-header .calc-sub {
  color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 3px;
}
.calc-body { padding: 28px; }

/* ── INPUTS ── */
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase;
}
input[type=number], input[type=text], select {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem; color: var(--text-main);
  background: var(--warm-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -moz-appearance: textfield;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,47,90,0.12);
  background: #fff;
}
.calc-btn {
  width: 100%; padding: 14px;
  background: var(--navy); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  margin-top: 8px; letter-spacing: 0.3px;
}
.calc-btn:hover { background: var(--navy-light); transform: translateY(-1px); }
.calc-btn:active { transform: translateY(0); }

/* ── RESULTS ── */
.result-box {
  margin-top: 20px;
  background: var(--warm-muted);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border);
  display: none;
}
.result-box.show { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.result-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.r-label {
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
}
.r-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--navy); margin-top: 4px; line-height: 1;
}
.r-value.green { color: var(--viz-green); }
.r-value.purple { color: var(--viz-purple); }
.r-value.amber { color: var(--viz-amber); }
.r-value.blue { color: var(--viz-blue); }
.r-value.red { color: var(--viz-red); }
.r-value.teal { color: var(--viz-teal); }

/* ── VISUALIZATIONS ── */
.viz-section { margin-top: 16px; }
.viz-label {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.h-bar-wrap {
  height: 32px; border-radius: 8px;
  overflow: hidden; display: flex;
  background: var(--border);
}
.h-bar-seg {
  height: 100%;
  transition: width 0.65s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.9);
  overflow: hidden; white-space: nowrap; min-width: 0;
}
.meter-grid { display: flex; gap: 10px; align-items: flex-end; }
.meter-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.meter-track {
  width: 100%; height: 110px;
  background: var(--border); border-radius: 6px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.meter-fill { width: 100%; border-radius: 6px; transition: height 0.65s cubic-bezier(0.34,1.56,0.64,1); }
.meter-val { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); }
.meter-name { font-size: 0.65rem; color: var(--text-light); text-align: center; }
.stack-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.stack-label { font-size: 0.76rem; width: 105px; flex-shrink: 0; color: var(--text-muted); font-weight: 600; }
.stack-bar-wrap { flex: 1; height: 20px; background: var(--border); border-radius: 4px; overflow: hidden; }
.stack-bar-fill { height: 100%; border-radius: 4px; transition: width 0.65s cubic-bezier(0.34,1.56,0.64,1); }
.stack-val { font-size: 0.73rem; font-weight: 700; width: 80px; text-align: right; color: var(--text-main); }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-svg { width: 120px; height: 120px; flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dual-bar-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dual-col { display: flex; flex-direction: column; gap: 6px; }
.dual-col-label { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.dual-bar-track { height: 26px; background: var(--border); border-radius: 6px; overflow: hidden; }
.dual-bar-fill { height: 100%; border-radius: 6px; transition: width 0.65s cubic-bezier(0.34,1.56,0.64,1); }
.color-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cl-item { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }
.cl-dot { width: 10px; height: 10px; border-radius: 50%; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.note { font-size: 0.73rem; color: var(--text-light); margin-top: 8px; font-style: italic; }

/* ── RESOURCE ZONE (под калкулатора) ── */
.resource-zone {
  background: var(--warm-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}
.rz-header {
  background: linear-gradient(135deg, #fff9f0, #fff4e6);
  border-bottom: 1px solid #ffd8a8;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 10px;
}
.rz-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--orange-dark);
}
.rz-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--warm-muted);
}
.rz-tab {
  padding: 10px 20px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s; text-transform: uppercase;
  letter-spacing: 0.4px; background: none; border-left: none;
  border-right: none; border-top: none; font-family: 'Source Sans 3', sans-serif;
  white-space: nowrap;
}
.rz-tab:hover { color: var(--navy); }
.rz-tab.active {
  color: var(--navy); border-bottom-color: var(--orange);
  background: var(--warm-card);
}
.rz-panel { display: none; padding: 20px 24px; }
.rz-panel.active { display: block; }

/* Links panel */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.rz-link-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-main);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s; cursor: pointer;
}
.rz-link-btn:hover {
  background: var(--navy); color: #fff;
  border-color: var(--navy); transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.rz-link-btn .lbtn-icon {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.rz-link-btn:hover .lbtn-icon { background: var(--orange-dark); }
.lbtn-text { flex: 1; }
.lbtn-text small {
  display: block; font-size: 0.68rem;
  font-weight: 400; opacity: 0.65; margin-top: 1px;
}
.lbtn-arrow { font-size: 0.75rem; opacity: 0.5; }

/* Files panel */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.rz-file-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-main);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s;
}
.rz-file-btn:hover {
  background: #f0fff4; border-color: var(--viz-green);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.rz-file-btn .ficon {
  width: 36px; height: 36px;
  background: #dcfce7; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.fmeta { flex: 1; }
.fmeta small {
  display: block; font-size: 0.68rem;
  font-weight: 400; color: var(--text-muted); margin-top: 1px;
}

/* Info panel */
.info-content { line-height: 1.75; color: var(--text-muted); font-size: 0.9rem; }
.info-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--navy);
  margin: 16px 0 6px;
}
.info-content h4:first-child { margin-top: 0; }
.info-content p { margin-bottom: 10px; }
.info-content ul { margin: 0 0 10px 18px; }
.info-content li { margin-bottom: 4px; }
.info-content strong { color: var(--text-main); }
.info-tip {
  display: flex; gap: 10px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 8px; padding: 12px 14px;
  margin-top: 12px;
}
.info-tip .tip-icon { font-size: 1.1rem; flex-shrink: 0; }
.info-tip p { margin: 0; font-size: 0.82rem; color: #1e40af; }

/* ── HOSTINGER BANNER (persistent footer bar) ── */
.hostinger-bar {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.hostinger-bar p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.hostinger-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 8px 18px;
  text-decoration: none; transition: all 0.2s;
}
.hostinger-link:hover { background: rgba(255,255,255,0.14); }
.hostinger-link span {
  color: rgba(255,255,255,0.42);
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.5px;
}

/* ── MAIN FOOTER ── */
.main-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.8rem;
}
.main-footer strong { color: rgba(255,255,255,0.85); }
.main-footer a { color: var(--orange); text-decoration: none; }
.main-footer a:hover { text-decoration: underline; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  justify-content: center; margin-top: 10px;
}

/* ── FLOATING CALCULATOR ── */
#float-calc { position: fixed; bottom: 26px; right: 26px; z-index: 1000; }
.float-btn {
  width: 54px; height: 54px;
  background: var(--orange); border: none; border-radius: 50%;
  color: #fff; font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,140,42,0.45);
  transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.float-btn:hover { transform: scale(1.1); background: var(--orange-dark); }
.float-panel {
  position: absolute; bottom: 66px; right: 0;
  width: 272px; background: var(--navy);
  border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-lg);
  display: none; border: 1px solid var(--navy-light);
}
.float-panel.open { display: block; animation: slideUp 0.25s ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.float-panel h4 {
  color: #fff; font-size: 0.8rem; font-weight: 700;
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.calc-display {
  background: rgba(0,0,0,0.3); border-radius: 8px; padding: 10px 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--orange);
  text-align: right; margin-bottom: 8px;
  min-height: 50px; word-break: break-all;
}
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.k {
  padding: 11px 0; background: rgba(255,255,255,0.08);
  border: none; border-radius: 7px;
  color: rgba(255,255,255,0.88); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.12s;
  font-family: 'Source Sans 3', sans-serif;
}
.k:hover { background: rgba(255,255,255,0.17); }
.k.op { color: var(--orange); }
.k.eq { background: var(--orange); color: #fff; }
.k.eq:hover { background: var(--orange-dark); }
.k.zero { grid-column: span 2; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { display: none; }
  .calc-body { padding: 18px; }
  .rz-panel { padding: 16px; }
  .link-grid, .file-grid { grid-template-columns: 1fr; }
  .page-wrap { padding: 24px 14px 60px; }
  .hostinger-bar { flex-direction: column; gap: 10px; text-align: center; }
}


/* ════ FAQ ACCORDION ════ */
.faq-seo-section {
  max-width: 860px; margin: 0 auto 40px; padding: 0 20px;
}
.faq-seo-inner { }
.faq-seo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--navy); margin-bottom: 14px;
}
.faq-item-seo {
  border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 8px;
  background: var(--warm-card); overflow: hidden;
}
.faq-item-seo summary.faq-q-seo {
  padding: 14px 18px;
  font-size: 0.92rem; font-weight: 700;
  color: var(--navy); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px;
  transition: background 0.15s;
}
.faq-item-seo summary.faq-q-seo:hover {
  background: var(--warm-muted);
}
.faq-item-seo summary.faq-q-seo::after {
  content: '＋'; color: var(--orange);
  font-size: 1.1rem; flex-shrink: 0;
}
.faq-item-seo[open] summary.faq-q-seo::after {
  content: '－';
}
.faq-item-seo summary.faq-q-seo::-webkit-details-marker { display: none; }
.faq-a-seo {
  padding: 0 18px 14px;
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* ════ AFFILIATE SECTION ════ */
.aff-section {
  max-width: 860px; margin: 0 auto 32px; padding: 0 20px;
}
.aff-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.aff-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
}
.aff-header-badge {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--orange);
  background: rgba(255,140,42,0.1); border: 1px solid rgba(255,140,42,0.3);
  border-radius: 100px; padding: 2px 8px;
}
.aff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.aff-card {
  background: var(--warm-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.aff-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--aff-color, var(--orange));
}
.aff-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--aff-color, var(--orange));
}
.aff-card-top {
  display: flex; align-items: center; justify-content: space-between;
}
.aff-card-name {
  font-weight: 700; font-size: 0.95rem; color: var(--navy);
}
.aff-card-tag {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 2px 7px; border-radius: 100px;
  background: rgba(0,0,0,0.06); color: var(--text-muted);
}
.aff-card-desc {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
  flex: 1;
}
.aff-card-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--aff-color, var(--orange));
  margin-top: 4px;
}
.aff-card-cta::after { content: '→'; }
.aff-note {
  font-size: 0.68rem; color: var(--text-light);
  margin-top: 10px; font-style: italic;
}
/* Mobile: single column on small screens */
@media (max-width: 500px) {
  .aff-grid { grid-template-columns: 1fr; }
  .aff-section { padding: 0 14px; }
}

/* ════════════════════════════════════════════
   МОБИЛНА ОПТИМИЗАЦИЯ v5-fixed
   ════════════════════════════════════════════ */

/* ── TABLET (до 768px) ── */
@media (max-width: 768px) {
  .header-inner { height: 54px; padding: 0 14px; }
  .logo { font-size: 1.35rem; }
  .page-hero { padding: 36px 16px 28px; }
  .page-hero h1 { font-size: 1.5rem; line-height: 1.2; }
  .page-hero p { font-size: 0.88rem; }
  .page-wrap { padding: 20px 14px 60px; }
  .calc-header { padding: 16px 18px; gap: 10px; }
  .calc-icon { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 10px; }
  .calc-header h1 { font-size: 1.15rem; }
  .calc-header .calc-sub { font-size: 0.75rem; }
  .calc-body { padding: 18px 16px; }
  .field-row { grid-template-columns: 1fr !important; gap: 10px; }
  .calc-btn { padding: 16px; font-size: 1rem; border-radius: 10px; }
  .result-box { padding: 14px; }
  .result-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .result-item { padding: 10px 12px; }
  .r-value { font-size: 1.1rem; }
  .r-label { font-size: 0.65rem; }
  .h-bar-wrap { height: 26px; }
  .h-bar-seg { font-size: 0.62rem; }
  .stack-label { width: 80px; font-size: 0.7rem; }
  .stack-val { width: 65px; font-size: 0.7rem; }
  .meter-grid { gap: 6px; }
  .meter-track { height: 80px; }
  .donut-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .donut-svg { width: 100px; height: 100px; }
  .rz-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .rz-tab { white-space: nowrap; padding: 10px 14px; font-size: 0.75rem; flex-shrink: 0; }
  .rz-panel { padding: 14px; }
  .link-grid { grid-template-columns: 1fr; gap: 8px; }
  .file-grid { grid-template-columns: 1fr; gap: 8px; }
  .rz-link-btn { padding: 10px 12px; font-size: 0.82rem; }
  .lbtn-icon { width: 28px; height: 28px; font-size: 0.9rem; }
  .faq-seo-section { padding: 0 14px; margin-bottom: 24px; }
  .faq-seo-title { font-size: 1.05rem; }
  .faq-item-seo summary.faq-q-seo { padding: 12px 14px; font-size: 0.85rem; }
  .faq-a-seo { padding: 0 14px 12px; font-size: 0.82rem; }
  .aff-section { padding: 0 14px; margin-bottom: 24px; }
  .aff-header-title { font-size: 0.95rem; }
  .aff-grid { grid-template-columns: 1fr; gap: 10px; }
  .aff-card { padding: 14px; }
  .aff-card-name { font-size: 0.9rem; }
  .aff-card-desc { font-size: 0.76rem; }
  .hostinger-bar { flex-direction: column; gap: 8px; padding: 12px 16px; text-align: center; }
  .main-footer { padding: 20px 16px; font-size: 0.75rem; }
  .footer-links { gap: 4px 12px; }
  .breadcrumb { font-size: 0.72rem; margin-bottom: 16px; }
  #float-calc { bottom: 16px; right: 16px; }
  .float-btn { width: 48px; height: 48px; font-size: 1.2rem; }
  .float-panel { width: 240px; }
  .calc-display { font-size: 1.4rem; padding: 8px 12px; }
  .k { padding: 9px 0; font-size: 0.85rem; }
}

/* ── SMALL PHONE (до 400px) ── */
@media (max-width: 400px) {
  .logo { font-size: 1.2rem; }
  .header-inner { height: 50px; }
  .page-hero h1 { font-size: 1.3rem; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .r-value { font-size: 1rem; }
  .calc-body { padding: 14px 12px; }
  .calc-header { padding: 14px 12px; }
  .calc-header h1 { font-size: 1rem; }
  .float-panel { width: 210px; bottom: 58px; }
  .k { padding: 8px 0; font-size: 0.8rem; }
  .calc-display { font-size: 1.2rem; }
  .tabs-bar { padding: 0 12px; gap: 4px; }
  .tab-btn { font-size: 0.72rem; padding: 7px 10px; }
  .donut-legend .legend-item { font-size: 0.72rem; }
}

/* ── TOUCH — уголемяване на интерактивни елементи ── */
@media (hover: none) and (pointer: coarse) {
  input[type=number], input[type=text], input[type=email],
  input[type=date], input[type=time], select, textarea {
    min-height: 44px;
    font-size: 16px !important;
  }
  .calc-btn { min-height: 50px; }
  .rz-tab { min-height: 44px; }
  .tab-btn { min-height: 40px; }
  .dir-btn { min-height: 44px; }
  .dest-btn { min-height: 40px; }
  .k { min-height: 42px; }
  nav a { padding: 8px 10px; }
  .calc-card-home:hover { transform: none; }
  .aff-card:hover { transform: none; }
  .rz-link-btn:hover { transform: none; background: var(--warm-bg); color: var(--text-main); border-color: var(--border); }
}

/* ── PRINT ── */
@media print {
  header, #float-calc, footer { display: none !important; }
  .hostinger-bar { display: none !important; }
  .aff-section { display: none !important; }
  .result-box { display: block !important; border: 1px solid #ccc; }
  body { background: white; }
}

/* ── HAMBURGER MOBILE NAV ── */
.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  position: fixed; top: 54px; left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0 20px;
  z-index: 199;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  max-height: calc(100vh - 54px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.mobile-nav a {
  display: block; padding: 13px 24px;
  color: rgba(255,255,255,0.85); font-size: 0.95rem;
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a.nav-active {
  background: rgba(255,140,42,0.15); color: var(--orange);
}
@media (max-width: 700px) {
  .hamburger { display: flex; }
}

/* ── COOKIE CONSENT BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1a2f5a;
  border-top: 3px solid #ff8c2a;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#cookie-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem; line-height: 1.5;
  margin: 0; max-width: 600px;
}
#cookie-banner a { color: #ff8c2a; text-decoration: underline; }
.cookie-btn-wrap { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: #ff8c2a; color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.cookie-accept:hover { background: #e6751a; }
.cookie-decline {
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
  padding: 9px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
@media(max-width:600px) {
  #cookie-banner { padding: 14px 16px; gap: 12px; }
  #cookie-banner p { font-size: 0.78rem; }
  .cookie-btn-wrap { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}
