﻿:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --ink: #182226;
  --accent: #0f7a58;
  --accent-dark: #0b5c43;
  --muted: #5c686d;
  --line: #dbe3e6;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 14px 34px rgba(7, 34, 26, 0.08);
  --shadow-strong: 0 24px 46px rgba(6, 28, 22, 0.14);
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(25, 139, 103, 0.2) 0%, transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(232, 196, 124, 0.28) 0%, transparent 34%),
    var(--bg);
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.topbar {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: .2px;
  color: #12362c;
}
.brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(8, 32, 25, 0.18);
  background: #0d2337;
}
.menu { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Hamburger toggle --- */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-collapse {
  display: contents;
}
.menu a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .92rem;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #8fd2bb;
  background: linear-gradient(180deg, #ecfbf5 0%, #dff6ed 100%);
  color: #0f5b43;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(14, 104, 76, 0.18);
}
.nav-phone span {
  font-weight: 700;
  color: #1d7158;
  font-size: .82rem;
  text-transform: uppercase;
}
.nav-phone:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 104, 76, 0.24);
}
.menu a:hover {
  border-color: #b7d5cb;
  text-decoration: none;
  background: #eef7f3;
}
.notice {
  margin-top: 12px;
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(90deg, #f0f9f5 0%, #f8fbfa 100%);
  padding: 14px 18px;
  font-size: .94rem;
  line-height: 1.7;
  color: #2a3b36;
}
main { padding: 32px 0 60px; }
.hero { display: grid; gap: 12px; margin-bottom: 22px; }
.hero.compact { margin-bottom: 18px; }
.hero-premium {
  background: linear-gradient(130deg, #0f3b32 0%, #134f41 48%, #0e6a50 100%);
  color: #f3fff9;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 42px);
  box-shadow: var(--shadow-strong);
}
.hero-premium .lead { color: rgba(242, 255, 249, 0.92); max-width: 840px; font-size: 1.08rem; }
.hero-badge {
  display: inline-flex;
  width: fit-content;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ebfff6;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2px;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
h1 { line-height: 1.2; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.01em; }
h2 { line-height: 1.25; font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
h3 { line-height: 1.3; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.lead { margin: 0; color: #4a5a56; font-size: 1.05rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}
.trust-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.trust-item { min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.trust-item p { color: #4a5a56; font-size: .95rem; line-height: 1.6; margin: 0; }
.trust-grid.compact .trust-item {
  min-height: 120px;
}
.quality-strip { margin: 0 0 24px; }
.quality-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: .96rem; line-height: 1.6; color: #3a4d47; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-premium:hover { transform: translateY(-4px); box-shadow: 0 24px 40px rgba(8, 37, 29, 0.14); }
.card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card-link:hover { text-decoration: none; }
.thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  padding: 10px;
  background: linear-gradient(180deg, #f5f8f7 0%, #eaf0ed 100%);
}
.thumb-category {
  aspect-ratio: 1/1;
  object-fit: contain;
  padding: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(24, 113, 86, 0.08), transparent 42%),
    linear-gradient(180deg, #f5f9f7 0%, #edf3f0 100%);
}
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.card-title { min-height: 2.6em; line-height: 1.3; }
.card-description { margin: 0; color: #4a5a56; font-size: .95rem; line-height: 1.55; }
.card-bottom { margin-top: auto; display: grid; gap: 7px; align-content: end; }
.card-cta { margin-top: auto; align-self: flex-start; }
.chip {
  margin: 0;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf7f1;
  border: 1px solid #c8e2d7;
  color: #14523e;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2px;
}
.price { margin: 2px 0 0; font-weight: 800; font-size: 1.05rem; color: var(--accent-dark); }
.deposit-note {
  margin: 0;
  font-size: .93rem;
  color: #3d5f52;
  font-weight: 600;
}
.product-documents { margin-top: 16px; }
.product-documents h3 { font-size: 1.08rem; margin-bottom: 8px; }
.document-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.document-list li { display: flex; align-items: center; gap: 8px; }
.document-list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.document-list a:hover { text-decoration: underline; }
.doc-badge { display: inline-block; background: #e74c3c; color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  letter-spacing: .01em;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-link { background: #eff8f4; color: #184336; border: 1px solid #bfd9d1; }
.btn-link:hover { background: #e0f0ea; }
.btn-danger { background: #a03636; }
.btn-danger:hover { background: #7d2929; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.split { display: grid; gap: 28px; grid-template-columns: 1.15fr .85fr; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.stack { display: grid; gap: 16px; }
.admin-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
.inline { display: inline; }
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.flash { margin-bottom: 14px; border-left: 4px solid #d1b564; background: #fff8df; border-radius: 10px; padding: 10px 12px; }
.flash.ok { border-left-color: #4d9970; background: #e8f7ee; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .96rem; color: #2a3b36; }
input, textarea, select { width: 100%; border: 1px solid #c8d0d4; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1rem; }
textarea { min-height: 100px; resize: vertical; }
.breadcrumbs { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0 0 18px; color: #5a6e68; font-size: .92rem; }
.footer { border-top: 1px solid var(--line); padding: 24px 0 38px; color: #4a5a56; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-left {
  display: grid;
  gap: 8px;
}
.footer-right {
  text-align: right;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(8, 32, 25, 0.16);
  background: #0d2337;
}
.footer-brand-text {
  display: grid;
  gap: 2px;
}
.footer-brand-text strong {
  color: #143a2f;
}
.footer-brand-text span {
  font-size: .88rem;
}
.footer-contact {
  font-size: .94rem;
}
.admin-auth { max-width: 520px; }
.admin-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-sidebar { position: sticky; top: 98px; display: grid; gap: 14px; }
.admin-sidebar-brand { font-size: 1.05rem; font-weight: 700; }
.admin-sidebar-nav { display: grid; gap: 8px; }
.admin-side-link { border: 1px solid #d4e2dd; border-radius: 10px; padding: 10px 11px; font-weight: 600; color: #20453a; background: #f6fbf9; }
.admin-side-link:hover { text-decoration: none; background: #edf7f3; }
.admin-side-link.active { border-color: var(--accent); background: #e7f5ef; }
.admin-content { min-width: 0; }
.admin-logout-form { margin-top: 6px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi-card { background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%); border: 1px solid #d9e9e2; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.kpi-value { font-size: 1.8rem; font-weight: 800; line-height: 1.1; color: #184336; }
.kpi-label { margin-top: 6px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; color: #3e5651; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.chart-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chart-toggle {
  border: 1px solid #c7d8d1;
  background: #f3f8f6;
  color: #2b4e43;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}
.chart-toggle.is-active {
  border-color: #0f7a58;
  background: #e8f5ef;
  color: #0d5d43;
}
.chart-scale-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #3d5a52; font-weight: 700; }
.chart-scale-label select { width: auto; min-width: 120px; padding: 7px 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.visits { background: #0f7a58; }
.dot.unique { background: #1e88e5; }
.dot.messages { background: #f39c12; }
.chart-wrap { overflow-x: auto; padding-bottom: 4px; }
.line-chart { width: 100%; min-width: 760px; height: 300px; display: block; }
.chart-grid-line { stroke: #dfe8e4; stroke-width: 1; }
.chart-axis-label {
  fill: #6a7c78;
  font-size: 11px;
  font-weight: 700;
}
.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.is-hidden { opacity: 0; }
.chart-line.visits { stroke: #0f7a58; }
.chart-line.unique { stroke: #1e88e5; }
.chart-line.messages { stroke: #f39c12; }
.chart-labels {
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(31, minmax(24px, 1fr));
  gap: 0;
  font-size: .74rem;
  color: #6a7c78;
}
.chart-labels span { text-align: center; white-space: nowrap; }
.dashboard-summary { display: flex; flex-wrap: wrap; gap: 10px; font-size: .88rem; color: #42605a; }
.dashboard-summary span { background: #eef5f2; border: 1px solid #d5e4de; border-radius: 999px; padding: 5px 10px; font-weight: 700; }
.products-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

/* ===  OLX-style product cards  === */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: background .12s ease;
}
.products-grid .product-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.products-grid .product-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.products-grid .product-card:only-child  { border-radius: var(--radius); }
.product-card + .product-card { border-top: none; }
.product-card:hover { background: #f6faf8; }

.product-card-link {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-height: 140px;
}
.product-card-link:hover { text-decoration: none; }

.product-card-img {
  background: linear-gradient(135deg, #f5f8f7 0%, #eaf0ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.product-card-img img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
}

.product-card-info {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.product-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.product-card-desc {
  margin: 0;
  font-size: .93rem;
  color: #4a5a56;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.product-card-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-dark);
}
.product-card-deposit {
  font-size: .88rem;
  color: #4a6b60;
  font-weight: 600;
}
.product-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .86rem;
  color: #5e726c;
  margin-top: 2px;
}
.product-card-location svg { flex-shrink: 0; }
.image-upload { display: grid; gap: 10px; }
.dropzone {
  border: 2px dashed #b7d2c8;
  border-radius: 12px;
  padding: 16px;
  background: #f7fbf9;
  color: #335a4d;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone strong { font-size: .98rem; }
.dropzone span { font-size: .88rem; color: #4f7064; }
.dropzone.dragover,
.dropzone:hover {
  border-color: #7ebea8;
  background: #edf7f2;
}
.upload-status { margin: 0; min-height: 1.2em; font-size: .88rem; color: #5f6f68; }
.upload-status.ok { color: #1f7f57; font-weight: 600; }
.upload-status.error { color: #a33636; font-weight: 600; }
.upload-preview {
  width: 100%;
  max-width: 360px;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #cfddd7;
  background: #edf2f0;
}
.upload-preview.is-hidden { display: none; }
@media (max-width: 960px) {
  .admin-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card-link { grid-template-columns: 140px 1fr; min-height: 120px; }
  .product-card-img img { height: 100px; }
}
@media (max-width: 860px) {
  .nav-row { justify-content: space-between; flex-wrap: wrap; }
  .menu-toggle { display: flex; }
  .nav-collapse {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 14px 0 6px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .nav-collapse.is-open { display: flex; }
  .menu {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #f7fbf9;
    text-align: center;
    font-size: 1rem;
  }
  .nav-phone {
    justify-content: center;
    width: 100%;
  }
  .split { grid-template-columns: 1fr; }
  .card-title { min-height: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-premium { border-radius: 18px; }
  .brand-logo { width: 44px; height: 44px; }
  .footer-logo { width: 54px; height: 54px; }
  .footer-right { text-align: left; }
}

/* SEO content sections */
.seo-content {
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(15,122,88,0.04) 0%, rgba(232,196,124,0.06) 100%);
  border: 1px solid rgba(15,122,88,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 34px 30px;
}
.seo-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(15,122,88,0.12);
}
.seo-content .faq-item {
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(7,34,26,0.04);
}
.seo-content .faq-item + .faq-item { margin-top: 12px; }
.seo-content h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-content h3::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.seo-content p {
  color: #4a5a56;
  line-height: 1.75;
  font-size: .97rem;
  margin: 0;
}
.seo-content > p:first-of-type {
  font-size: 1.02rem;
  color: #3a4e49;
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .seo-content { padding: 24px 18px 20px; }
}
.popular-links { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.popular-links li a {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .94rem;
  color: var(--accent-dark);
  transition: background .15s, border-color .15s;
}
.popular-links li a:hover { background: #eaf5f0; border-color: var(--accent); text-decoration: none; }
.mt-1 { margin-top: 10px; }

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card-link { grid-template-columns: 110px 1fr; min-height: 110px; }
  .product-card-img img { height: 85px; }
  .product-card-info { padding: 10px 14px; }
  .product-card-title { font-size: .98rem; }
  .product-card-price { font-size: 1rem; }
}
