:root {
  --bg: #07111f;
  --bg-soft: #0c1a2e;
  --panel: rgba(14, 27, 48, 0.78);
  --panel-strong: rgba(14, 27, 48, 0.95);
  --text: #f4f8ff;
  --muted: #afbdd4;
  --line: rgba(120, 163, 255, 0.16);
  --primary: #3b82f6;
  --primary-2: #38bdf8;
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 20px 70px rgba(7, 13, 28, 0.45);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(56,189,248,0.12), transparent 26%),
    linear-gradient(180deg, #06101d 0%, #081120 100%);
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 88%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 11, 22, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-contact-bar {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(59, 130, 246, 0.12);
}

.top-contact-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.94rem;
  color: #dcebff;
}

.top-phone { font-weight: 800; color: #fff; }
.top-location { color: #d7e7ff; text-align: right; }

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.brand-title { font-size: 1.05rem; font-weight: 800; }
.brand-subtitle { color: var(--muted); font-size: 0.92rem; line-height: 1.3; }

.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--muted); font-weight: 500; transition: 0.2s ease; }
.menu a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 1.1rem;
}

.hero { padding: 44px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; }

.hero-content, .hero-card, .card, .feature-box, .contact-card, .work-placeholder, .review-card, .modal-dialog, .review-form-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-content { border-radius: 30px; padding: 38px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  color: #cfe9ff;
  background: rgba(59, 130, 246, 0.12);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.15rem); line-height: 0.98; letter-spacing: -0.04em; }
.hero h1 span { color: var(--primary-2); text-shadow: 0 0 24px rgba(56, 189, 248, 0.32); }
.hero-text { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 680px; margin: 22px 0 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border-radius: 14px; font-weight: 700; border: 0; cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: white; }
.btn-outline { border: 1px solid rgba(120, 163, 255, 0.2); background: rgba(255,255,255,0.04); color: #fff; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.point { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: #d5e4fb; }

.hero-card {
  border-radius: 30px; padding: 28px;
  background: linear-gradient(180deg, rgba(59,130,246,0.15), rgba(8,17,32,0.1)), var(--panel-strong);
}
.hero-logo { width: min(100%, 430px); margin: 0 auto; border-radius: 26px; background: rgba(255,255,255,0.04); padding: 16px; }
.hero-stats { display: grid; gap: 14px; margin-top: 18px; }
.stat-card { border-radius: 18px; padding: 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.stat-card span { display: block; color: var(--muted); margin-bottom: 8px; }
.stat-card strong { font-size: 1rem; line-height: 1.5; }

.section { padding: 54px 0; }
.section-head { margin-bottom: 24px; }
.section-head.compact { margin-bottom: 18px; }
.section-head h2, .section-head h3 { margin: 0 0 10px; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.section-head h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.section-head p { margin: 0; color: var(--muted); line-height: 1.75; max-width: 720px; }
.narrow { max-width: 720px; }

.cards, .features-grid, .works-grid, .socials-grid, .reviews-grid, .modal-reviews-grid { display: grid; gap: 18px; }
.services-grid, .socials-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.works-grid, .reviews-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.modal-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card, .feature-box, .work-placeholder, .review-card, .review-form-wrap { border-radius: 24px; padding: 24px; }
.card h3, .feature-box h3, .review-card p { margin-top: 0; }
.card p, .feature-box p, .feature-box strong, .work-placeholder, .social-card p, .review-card p, .reviews-loading { color: var(--muted); line-height: 1.7; }
.feature-box strong { display: inline-block; color: var(--primary-2); font-size: 1rem; margin-bottom: 12px; }
.accent-section { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0)); }
.work-placeholder { min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.reviews-loading { grid-column: 1 / -1; padding: 24px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.review-top span { color: var(--muted); }
.review-stars { margin-bottom: 14px; color: #ffcc4d; letter-spacing: 0.08em; font-size: 1.08rem; }
.review-meta { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

.review-form-wrap { margin-top: 22px; }
.review-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-form label { display: grid; gap: 8px; }
.review-form span, .field-title { color: #e7f1ff; font-weight: 600; }
.review-form input, .review-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; color: #fff;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); outline: none;
}
.review-form input:focus, .review-form textarea:focus { border-color: rgba(56,189,248,0.6); box-shadow: 0 0 0 4px rgba(56,189,248,0.12); }
.review-form textarea { resize: vertical; min-height: 130px; }
.rating-field { display: grid; gap: 10px; }
.stars { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.star-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: #6b7280; font-size: 1.5rem; cursor: pointer;
}
.star-btn.active, .star-btn.preview { color: #ffcc4d; border-color: rgba(255,204,77,0.35); background: rgba(255,204,77,0.08); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-note { color: var(--muted); }
.form-note.success { color: var(--success); }
.form-note.error { color: var(--danger); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.contact-text { color: var(--muted); line-height: 1.8; }
.contact-card { border-radius: 28px; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card a { min-width: 0; border-radius: 18px; padding: 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 8px; }
.contact-card span { color: var(--muted); font-size: 0.92rem; }
.contact-card strong { font-size: 0.98rem; line-height: 1.45; word-break: break-word; }

.footer { padding: 24px 0 38px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; }

.modal { position: fixed; inset: 0; display: none; z-index: 80; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 9, 18, 0.7); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; width: min(calc(100% - 24px), 980px); margin: 5vh auto; max-height: 90vh; overflow: auto; border-radius: 28px; padding: 28px; background: rgba(9, 18, 33, 0.98); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: #fff; cursor: pointer; }

@media (max-width: 980px) {
  .hero-grid, .features-grid, .services-grid, .socials-grid, .contact-grid, .works-grid, .reviews-grid, .modal-reviews-grid, .form-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .top-contact-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 10px 0; }
  .top-location { text-align: left; }
  .nav { min-height: 72px; align-items: center; }
  .brand { flex: 1; min-width: 0; align-items: center; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { font-size: 0.84rem; display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .menu {
    position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; display: none;
    flex-direction: column; align-items: stretch; gap: 0; background: rgba(8, 17, 32, 0.98);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu a { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .menu a:last-child { border-bottom: 0; }
  .hero { padding-top: 28px; }
  .hero-content, .hero-card, .card, .feature-box, .review-card, .work-placeholder, .modal-dialog, .review-form-wrap { border-radius: 22px; padding: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .btn-outline { width: 100%; }
  .reviews-head { align-items: stretch; flex-direction: column; }
  .contact-card { padding: 8px; }
  .contact-card a { padding: 15px; }
  .footer-inner { flex-direction: column; }
  .form-actions { align-items: stretch; }
  .form-actions .btn { width: 100%; }
}
/* ===== ВРЕМЕННО СКРЫТЬ БЛОК ПРИМЕРОВ РАБОТ ===== */
#works{
    display: none !important;
}
