/* Base */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b3b3b3;
  --accent: #0ea5e9; /* легкий голубой для CTA */
  --card: #111;
  --border: #222;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; letter-spacing:.3px }
.logo img { height: 36px; width: 36px; }

.nav-toggle { display:none; background: none; border: 1px solid var(--border); color: var(--fg); padding:8px 10px; border-radius:10px }
.menu { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--fg); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.menu a:hover { background: #0b0b0b; }
.menu .btn { margin-left: 6px; }

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
  background: #111;
  color: #fff;             /* ✅ текст всегда белый */
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:visited {   /* ✅ даже если visited */
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  background: url("bg.gif") center/cover no-repeat;

}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(6px);

  /* плавный градиент вниз */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.6) 0%,       /* затемнение сверху */
    rgba(0,0,0,0.85) 70%,     /* плавный переход */
    #000 100%                 /* чисто чёрный внизу */
  );

  z-index: 0;
}


.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 80px 0;
}
.hero h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; margin-bottom: 12px; }
.hero p { color: var(--muted); margin-bottom: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }


/* Sections */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section-accent { background: linear-gradient(180deg, #050505 0%, #000 100%); }
h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 12px; }
h3 { margin-top: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 860px){ .grid-2{grid-template-columns: 1fr} .grid-3{grid-template-columns: 1fr 1fr} }
@media (max-width: 560px){ .grid-3{grid-template-columns: 1fr} .menu{display:none} .nav-toggle{display:inline-block} }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }

.features, .checklist { margin: 8px 0 0; padding: 0 0 0 18px; }
.checklist li::marker { content: "✓ "; color: var(--accent); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table thead th { background: #0b0b0b; }

.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 720px){ .promo{grid-template-columns: 1fr} }
.promo-card { background: #0b0b0b; border: 1px dashed var(--accent); padding: 14px; border-radius: 12px; }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px){ .reviews{grid-template-columns: 1fr} }
.review { background: var(--card); border:1px solid var(--border); border-radius: 12px; padding: 14px; }
.review .author { display:block; color: var(--muted); margin-top: 10px; }
.leave-review summary { cursor: pointer; color: var(--accent); margin: 10px 0; }

/* Contacts */
.contacts-list { list-style: none; padding: 0; margin: 0 0 12px; }
.contacts-list li { margin: 4px 0; }
.map-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.map { width: 100%; height: 320px; display: block; }

/* Forms */
.form { display: grid; gap: 14px; }
.form.compact { grid-template-columns: 1fr 1fr; }
.form.compact label:nth-child(2){ grid-column: span 2; }
@media (max-width: 720px){ .form.compact{grid-template-columns: 1fr} .form.compact label:nth-child(2){grid-column: auto} }
label { display: grid; gap: 8px; }
input, select, textarea {
  width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: #0a0a0a; color: var(--fg);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; padding:16px 0; }
.to-top { color: var(--muted); text-decoration: none; }
.to-top:hover { color: var(--fg); }

.muted { color: var(--muted); }

/* Quick price cards */
.cards-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:12px 0 8px}
@media (max-width:1024px){.cards-quick{grid-template-columns:repeat(3,1fr)}}
@media (max-width:720px){.cards-quick{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.cards-quick{grid-template-columns:1fr}}
.pricecard{background:#0b0b0b;border:1px solid var(--border);border-radius:14px;padding:14px}
.pricecard .p-title{font-weight:600;margin-bottom:6px}
.pricecard .p-price{font-size:18px}
.full-price summary{cursor:pointer;color:var(--accent);margin-top:10px}
.price-image{margin:12px 0 0}
.price-image img{width:100%;height:auto;border:1px solid var(--border);border-radius:12px}

/* мобильное меню */
@media (max-width: 560px) {
  .menu {
    display: none; /* по умолчанию скрыто */
    flex-direction: column;   /* вертикально */
    gap: 14px;
    position: absolute;
    top: 60px;      /* чуть ниже шапки */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .menu.show {
    display: flex;  /* появляется только с классом */
  }
}
/* ссылки без фиолетового visited */
a, a:visited, a:active {
  color: inherit;          /* наследовать цвет из родителя */
  text-decoration: none;   /* без подчеркивания */
}

a:hover {
  color: var(--accent);    /* подсветка при наведении */
}

