/* ══ НЕВА КЛИН — общие стили для внутренних страниц ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background:          #f6f8fc;
  --foreground:          #111827;
  --card:                #ffffff;
  --card-foreground:     #111827;
  --primary:             #2563eb;
  --primary-fg:          #ffffff;
  --secondary:           #0d9488;
  --secondary-fg:        #ffffff;
  --muted:               #f1f5f9;
  --muted-fg:            #64748b;
  --border:              #e2e8f0;
  --input-bg:            #f1f5f9;
  --ring:                #2563eb;
  --radius:              0.75rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; background: var(--background); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-fg); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,252,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem; max-width: 1152px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-icon {
  position: relative; background: var(--primary);
  border-radius: 12px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { color: #fff; }
.logo-dot {
  position: absolute; top: -4px; right: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--secondary); border: 2px solid var(--background);
}
.logo-text span:first-child {
  display: block; font-weight: 700; font-size: 1.1rem;
  color: var(--foreground); line-height: 1.2;
}
.logo-text span:last-child {
  display: block; font-size: .65rem; letter-spacing: .12em;
  color: var(--muted-fg); text-transform: uppercase;
}
nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  font-size: .875rem; font-weight: 500;
  color: var(--muted-fg); text-decoration: none; transition: color .2s;
}
nav a:hover { color: var(--foreground); }
.btn-call {
  display: flex; align-items: center; gap: .4rem;
  background: var(--primary); color: #fff;
  padding: .6rem 1.25rem; border-radius: 99px;
  font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: box-shadow .2s, transform .15s; white-space: nowrap;
}
.btn-call:hover { box-shadow: 0 8px 20px rgba(37,99,235,.3); transform: translateY(-1px); }
@media (max-width:768px) { nav { display: none; } .btn-call-text { display: none; } }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(to bottom, rgba(37,99,235,.05), var(--background));
  padding: 3.5rem 0;
}
@media (min-width:768px) { .page-hero { padding: 5rem 0; } }
.page-hero-inner { position: relative; max-width: 768px; margin: 0 auto; padding: 0 1rem; text-align: center; }
.page-badge {
  display: inline-block; background: rgba(37,99,235,.1); color: var(--primary);
  border-radius: 99px; padding: .375rem 1rem;
  font-size: .875rem; font-weight: 500; margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em; margin-bottom: 1rem;
}
.page-hero p { font-size: 1.05rem; color: var(--muted-fg); line-height: 1.7; max-width: 40rem; margin: 0 auto; }

/* ── BREADCRUMB / BACK ── */
.crumbs { padding: 1rem 0; font-size: .875rem; }
.crumbs a { color: var(--muted-fg); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--foreground); }

/* ── GENERIC SECTION ── */
.section { padding: 3.5rem 0; }
@media (min-width:768px) { .section { padding: 5rem 0; } }
.section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; margin-bottom: .75rem; }
.section-head p { color: var(--muted-fg); max-width: 40rem; margin: 0 auto; line-height: 1.7; }

/* ── SERVICE CARDS (частным лицам) ── */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width:640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius)*1.25); padding: 1.75rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(37,99,235,.35); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(37,99,235,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.svc-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.svc-card > p { color: var(--muted-fg); font-size: .95rem; line-height: 1.6; margin-bottom: 1rem; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.25rem; }
.svc-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--foreground); }
.svc-list li svg { flex-shrink: 0; color: var(--secondary); margin-top: 2px; }
.svc-price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted-fg); }
.svc-price strong { color: var(--primary); font-size: 1.1rem; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary); color: #fff; padding: 1rem 2rem;
  border-radius: 99px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37,99,235,.3); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--card); color: var(--foreground); padding: 1rem 2rem;
  border-radius: 99px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--border); cursor: pointer;
  transition: background .2s;
}
.btn-outline:hover { background: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* ── О НАС ── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width:900px) { .about-grid { grid-template-columns: 1.1fr .9fr; } }
.about-text p { color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }
.about-text h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.value-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width:640px) { .value-grid { grid-template-columns: repeat(2,1fr); } }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.value-card .svc-icon { margin-bottom: .9rem; }
.value-card h4 { font-weight: 700; margin-bottom: .35rem; }
.value-card p { color: var(--muted-fg); font-size: .9rem; line-height: 1.6; }
.stats-inline { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin: 2rem 0; }
@media (min-width:640px) { .stats-inline { grid-template-columns: repeat(4,1fr); } }
.stats-inline .stat-val { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stats-inline .stat-lbl { font-size: .85rem; color: var(--muted-fg); margin-top: .25rem; }

/* ── ОТЗЫВЫ ── */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width:640px) { .reviews-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px) { .reviews-grid { grid-template-columns: repeat(3,1fr); } }
.review-card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius)*1.25); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review-stars { display: flex; gap: 2px; color: #f59e0b; margin-bottom: .85rem; }
.review-card p { color: var(--foreground); line-height: 1.65; font-size: .95rem; margin-bottom: 1.1rem; }
.review-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(37,99,235,.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.review-name { font-weight: 600; font-size: .95rem; }
.review-meta { font-size: .8rem; color: var(--muted-fg); }

/* ── FORM ── */
.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2); padding: 2rem;
  box-shadow: var(--shadow-lg); max-width: 640px; margin: 0 auto;
}
.form-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width:640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .875rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background); color: var(--foreground);
  font-family: 'Inter', sans-serif; font-size: .9375rem; outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-fg); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ring); box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-group textarea { resize: vertical; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; }
.rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-input label { cursor: pointer; color: var(--border); transition: color .15s; margin: 0; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #f59e0b; }
.btn-submit {
  width: 100%; padding: 1rem; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius); font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: box-shadow .2s, transform .15s;
}
.btn-submit:hover { box-shadow: 0 8px 24px rgba(37,99,235,.3); transform: translateY(-1px); }

/* ── АКЦИИ ── */
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width:768px) { .promo-grid { grid-template-columns: repeat(2,1fr); } }
.promo-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius)*1.5); padding: 2rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.promo-card.featured { border-color: rgba(37,99,235,.4); box-shadow: var(--shadow-lg); }
.promo-badge {
  align-self: flex-start; background: var(--secondary); color: #fff;
  border-radius: 99px; padding: .35rem 1rem; font-size: .8rem; font-weight: 700;
  margin-bottom: 1rem; letter-spacing: .02em;
}
.promo-discount { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .5rem; }
.promo-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .6rem; }
.promo-card p { color: var(--muted-fg); line-height: 1.65; margin-bottom: 1.25rem; }
.promo-card .btn-primary { margin-top: auto; align-self: flex-start; }
.promo-terms { font-size: .8rem; color: var(--muted-fg); margin-top: 1rem; }

/* ── EMPTY STATE (примеры работ) ── */
.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: 3rem 0; }
.empty-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: rgba(37,99,235,.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.empty-state h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.empty-state p { color: var(--muted-fg); line-height: 1.7; }

/* ── FOOTER ── */
footer { background: rgba(241,245,249,.6); border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1rem;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2rem;
}
.footer-copy { font-size: .875rem; color: var(--muted-fg); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: .2rem; }
.footer-nav a { font-size: .9rem; color: var(--foreground); text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--primary); }

/* ── PRICE TABLE ── */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: calc(var(--radius)*1.25); box-shadow: var(--shadow-sm); background: var(--card); }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th, .price-table td { padding: .9rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
.price-table thead th { background: rgba(37,99,235,.06); font-weight: 700; color: var(--foreground); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: rgba(37,99,235,.03); }
.price-table .td-center { text-align: center; color: var(--muted-fg); }
.price-table .td-price { text-align: right; font-weight: 700; color: var(--primary); white-space: nowrap; }
.price-cards { display: none; }
@media (max-width:560px) {
  .price-table-wrap { display: none; }
  .price-cards { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  .price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); }
  .price-card-name { font-weight: 600; margin-bottom: .5rem; }
  .price-card-row { display: flex; align-items: center; justify-content: space-between; }
  .price-card-unit { font-size: .85rem; color: var(--muted-fg); }
  .price-card-val { font-weight: 700; color: var(--primary); }
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: #1e293b; color: #f8fafc; padding: 1rem 1.5rem;
  border-radius: var(--radius); font-size: .9375rem; box-shadow: var(--shadow-lg);
  transform: translateY(120%); opacity: 0;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── ANIM ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.anim { animation: fadeUp .5s both; }

/* ══ Портфолио: галерея примеров работ ══ */
.gallery-title {
  font-size: 1.4rem;
  margin: 2.5rem 0 1.25rem;
}
.gallery-title:first-of-type {
  margin-top: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: .75rem 1rem;
  font-size: .9rem;
  color: #4b5563;
}
