/* СтяжкаУфа — стили */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: #0f172a; background: #f1f5f9; line-height: 1.5; }

.header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1rem 1.5rem; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { font-weight: 700; color: #1d4ed8; text-decoration: none; font-size: 1.25rem; }
.nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.nav a, .nav-link { padding: .5rem 1rem; border-radius: .75rem; color: #475569; text-decoration: none; font-size: .875rem; }
.nav a:hover, .nav-link:hover { background: #f1f5f9; color: #0f172a; }
.nav a.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.header-phone { color: #475569; text-decoration: none; font-size: .875rem; }
.header-phone:hover { color: #1d4ed8; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: .75rem; font-size: .875rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
.btn-green { background: #059669; color: #fff; }
.btn-green:hover { background: #047857; }
.btn-outline { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.btn-outline:hover { background: #f9fafb; border-color: #9ca3af; }
.btn-white { background: rgba(255,255,255,.2); color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn-white:hover { background: rgba(255,255,255,.3); }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.form-group { margin-bottom: .75rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: .25rem; font-size: .875rem; }
.form-group input, .form-group textarea { width: 100%; padding: .75rem 1rem; border: 2px solid #e2e8f0; border-radius: .75rem; font-size: .875rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #3b82f6; }
.form-error { color: #dc2626; font-size: .875rem; margin-bottom: .5rem; }
.form-success { color: #059669; font-size: .875rem; margin-bottom: .5rem; }
.form-actions { display: flex; gap: .75rem; margin-top: 1rem; }

.main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1rem; }

.hero { background: #2563eb; color: #fff; padding: 3rem 2rem; border-radius: 1rem; margin-bottom: 2rem; }
.hero p { margin: 0; opacity: .9; font-size: .875rem; }
.hero h1 { margin: 1rem 0; font-size: 2rem; }
.hero-desc { max-width: 36rem; font-size: 1rem; margin: 1rem 0 !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.3); }
.hero-badges span { background: rgba(255,255,255,.1); padding: .5rem .75rem; border-radius: .5rem; font-size: .875rem; }
.hero-sm { padding: 2rem 2rem; }
.hero-sm h1 { margin: .5rem 0; font-size: 1.75rem; }

.section { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.section.alt { background: #f8fafc; }
.section h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.section h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
.section p { color: #475569; margin: 0 0 1rem; }
.section a { color: #2563eb; }
.section-actions { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.card-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1.25rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.card p { margin: 0; font-size: .875rem; color: #64748b; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: .5rem 0 .5rem 1.5rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: bold; }

.steps-list { list-style: none; padding: 0; margin: 1rem 0; }
.steps-list li { padding: .75rem 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; margin-bottom: .5rem; display: flex; align-items: center; gap: 1rem; }
.step-num { flex-shrink: 0; width: 1.5rem; height: 1.5rem; background: #2563eb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.service-card { border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.5rem; margin-bottom: 1.5rem; background: #fff; }
.service-card h2 { margin: 0 0 .75rem; font-size: 1.125rem; }

.zones-tags { color: #475569 !important; }

.faq { margin: 1rem 0; }
.faq dt { font-weight: 600; margin-top: 1rem; }
.faq dd { margin: .25rem 0 0; color: #64748b; font-size: .875rem; }

.price-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.price-table th, .price-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.price-table th { background: #f8fafc; font-weight: 600; }

.contact-value { font-weight: 700; color: #0f172a; }

.footer { background: #fff; border-top: 1px solid #e2e8f0; margin-top: auto; padding: 2.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; margin-bottom: 2rem; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #f1f5f9; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-title { font-size: .75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin: 0 0 .5rem; }
.footer-grid a { display: block; color: #64748b; text-decoration: none; margin-bottom: .25rem; font-size: .875rem; }
.footer-grid a:hover { color: #2563eb; }
.footer-copy { font-size: .75rem; color: #94a3b8; margin: 2rem 0 0; }

.modal { display: none; position: fixed; inset: 0; z-index: 100; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,41,59,.6); }
.modal-content { position: relative; background: #fff; border-radius: 1rem; max-width: 28rem; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,.15); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; padding: 0; line-height: 1; }
.request-form { padding: 1.5rem; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: #f1f5f9; }
.auth-card { background: #fff; padding: 2rem; border-radius: 1rem; max-width: 24rem; width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.auth-card h1 { margin: 0 0 1.5rem; font-size: 1.5rem; text-align: center; }
.auth-card form .form-group { margin-bottom: 1rem; }
.auth-card form .btn { margin-top: 1rem; }
.auth-card p { text-align: center; margin-top: 1rem; font-size: .875rem; }

.admin-header .nav a { color: #475569; text-decoration: none; }
.admin-main { padding: 2rem 1.5rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat-card { display: block; padding: 1.5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; text-decoration: none; color: #0f172a; text-align: center; }
.stat-card strong { display: block; font-size: 1.75rem; color: #2563eb; }
.admin-table-wrap { overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th, .admin-table td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.admin-table th { background: #f8fafc; font-weight: 600; }
.admin-table a { color: #2563eb; }

@media (max-width: 768px) {
  .header-right { margin-left: 0; width: 100%; }
  .nav { order: 3; width: 100%; }
}
