:root {
  --color-bg: #fff;
  --color-text: #131924;
  --color-main: #1976d2;
  --color-accent: #50be87;
  --color-cta: #ffba00;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(.4,2,.5,1);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Manrope', 'Inter', sans-serif;
  line-height: 1.65;
  margin: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-family: inherit;
}

section {
  padding: 64px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero-section {
  background: linear-gradient(110deg,#1976d2 60%,#50be87 100%);
  color: #fff;
  padding: 64px 0 48px 0;
  border-radius: 0 0 48px 48px;
  position: relative;
  box-shadow: 0 16px 32px 0 rgba(25,118,210,0.18);
}
.hero-section h1 {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-section p.lead {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.btn, .hero-section a.btn {
  display:inline-block;
  font-weight:600;
  font-size:1.09em;
  border-radius:var(--border-radius);
  padding: 11px 30px; margin: 8px 0;
  text-align:center; outline: none;
  border:none; cursor:pointer;
  background: var(--color-main);
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
}
.btn.btn-cta{background: var(--color-cta);color:var(--color-text)}
.btn:hover{box-shadow:0 4px 24px 0 #1976d233;background:var(--color-accent);color:#fff}

.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px 0 #1976d213;
  transition: var(--transition);
  padding: 1.7rem 1.4rem;
  margin-bottom:2rem;
  position:relative;
}
.card:hover{box-shadow:0 8px 32px 0 #50be8721;transform:translateY(-4px);} 

.form-control, input, textarea {
  border-radius: var(--border-radius);
  border: 1.5px solid #dce3e8;
  padding: 11px 18px;
  outline: none; font-size: 1em;
  margin-bottom: 1rem; width: 100%;
  transition: box-shadow .2s;
  background: #f8fafd;
}
.form-control:focus, input:focus, textarea:focus {
  box-shadow: 0 0 0 2px var(--color-main)22;
  border-color: var(--color-main);
}

/* Удалены старые большие стили страницы услуг */

/* === Компактная страница услуг === */
.services-section { background:#f8fafd; padding:32px 0 !important; }

.services-section h1 { font-size:1.5rem; font-weight:800; color:#131924; margin-bottom:.75rem; }

.services-section h2 { font-size:1.1rem; font-weight:800; color: var(--color-accent); margin-bottom:.75rem; letter-spacing:.2px; }

/* Компактная сетка карточек услуг */
.services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; align-items:stretch; }

.service-card { background:#fff; border-radius:10px; box-shadow:0 1px 6px rgba(19,25,36,.06); transition:transform .15s ease, box-shadow .15s ease; border:1px solid #e8eef5; display:flex; flex-direction:column; box-sizing:border-box; height:100%; overflow:hidden; }

.service-card:hover { transform:translateY(-2px); box-shadow:0 6px 14px rgba(19,25,36,.08); }

.service-card .card-body { padding:.9rem .8rem; text-align:left; display:flex; flex-direction:column; flex:1 1 auto; }

.service-card .icon-wrapper { width:40px; height:40px; margin:0 0 .6rem 0; background:#1976d2; border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1rem; }

.service-card .card-title { font-size:.98rem; font-weight:800; color:#131924; margin:0 0 .25rem 0; }

.service-card .card-text { color:#5a6c7d; font-size:.9rem; line-height:1.35; margin:0 0 .55rem 0; flex:1 1 auto; }

.service-card .price { font-size:.88rem; font-weight:700; color:#1976d2; margin:.15rem 0 .6rem 0; }
.tariff-price { font-size:1.05rem; }

/* === Современные тарифные карточки === */
.pricing-section { padding: 40px 0; background:#f8fafd; }
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.pricing-card { position:relative; background:#fff; border:1px solid #e8eef5; border-radius:16px; overflow:hidden; box-shadow:0 6px 24px rgba(19,25,36,.06); transition:transform .2s ease, box-shadow .2s ease; display:flex; flex-direction:column; }
.pricing-card.popular { border-color:#50be87; box-shadow:0 10px 28px rgba(80,190,135,.18); }
.pricing-card:hover { transform:translateY(-3px); box-shadow:0 12px 30px rgba(19,25,36,.1); }
.pricing-badge { position:absolute; top:12px; left:12px; background:#e9f7f0; color:#1976d2; font-weight:700; font-size:.8rem; padding:6px 10px; border-radius:999px; }
.pricing-badge.accent { background:#e8fbf3; color:#2f9e6b; }
.pricing-card .card-body { padding:18px 16px 16px 16px; display:flex; flex-direction:column; gap:10px; height:100%; }
.pricing-card .title { font-size:1.1rem; font-weight:800; margin:0 0 2px 0; color:#131924; }
.pricing-card .price { font-size:1.6rem; font-weight:800; color:#1976d2; }
.pricing-card .price span { font-size:.95rem; font-weight:700; color:#5a6c7d; margin-left:4px; }
.pricing-card .features { list-style:none; padding:0; margin:4px 0 6px 0; display:flex; flex-direction:column; gap:6px; color:#5a6c7d; font-size:.95rem; }
.pricing-card .features li::before { content:'✔'; color:#50be87; margin-right:8px; font-weight:800; }
.pricing-card .btn-choose { margin-top:auto; width:100%; border:none; border-radius:10px; background:linear-gradient(135deg,#1976d2,#50be87); color:#fff; padding:10px 14px; font-weight:800; }
.pricing-card .btn-choose:hover { background:linear-gradient(135deg,#50be87,#1976d2); }

.card-actions { margin-top:auto; padding-top:.6rem; border-top:1px solid #eef3f7; }
.card-actions .btn { background:#1976d2; border:none; border-radius:8px; padding:8px 12px; font-size:.9rem; font-weight:700; width:100%; display:block; box-sizing:border-box; max-width:100%; }

.service-card .btn:hover { background:#50be87; }

/* Убираем анимации для компактности */
.fade-in-up {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .services-section { padding:20px 0 !important; }
  .services-section h1 { font-size:1.25rem; }
  .services-section h2 { font-size:1rem; }
  .services-grid { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
}

@media (max-width:840px) {
  .container {max-width:98vw;}
  section {padding:42px 0;}
  header>div,footer>div {flex-direction:column;align-items:flex-start;gap:20px;}
}
@media (max-width:600px) {
  .hero-section h1 {font-size:1.25em!important;}
  .hero-section{padding:32px 0 4px 0}
  section {padding:24px 0;}
}

.fade-in-section { opacity: 0; transform:translateY(56px); transition: opacity .7s, transform .7s; }
.fade-in-section.appeared { opacity:1; transform:none; }

/* ==== Главная: доп. стили продающего лендинга ==== */
.section-title { font-size:1.6rem; font-weight:800; color:#131924; margin:0 0 1rem 0; position:relative; }
.section-title::after { content:''; position:absolute; left:0; bottom:-8px; width:56px; height:3px; background:linear-gradient(90deg,#1976d2,#50be87); border-radius:2px; }
.badge-row { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px 0; }
.badge-row .badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#ffffff22; border:1px solid #ffffff33; color:#fff; font-weight:700; font-size:.9rem; }
.split { display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
.split .col { flex:1 1 320px; min-width:260px; }
.guarantee-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px 18px; }
.guarantee-list li::before { content:'✔'; color:#50be87; margin-right:8px; font-weight:800; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; }
.stat { text-align:center; }
.stat .num { font-size:2rem; font-weight:800; color:#1976d2; }
.stat .label { font-weight:600; margin-top:.25rem; color:#131924; }

/* Hero улучшенный слой */
.hero { position: relative; min-height: 72vh; display:flex; align-items:center; overflow:hidden; background:linear-gradient(110deg,#1976d2 20%,#50be87 120%); }
.hero::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(19,25,36,.45), rgba(19,25,36,.25)); }
.hero .hero-bg { position:absolute; inset:0; background-position:center; background-size:cover; opacity:.25; }
.hero-content { position:relative; z-index:1; color:#fff; text-align:left; max-width:1000px; margin:0 auto; padding:0 16px; }
.hero h1 { font-size:2.4rem; font-weight:900; line-height:1.1; margin:0 0 .6rem 0; }
.hero .hero-sub { font-size:1.1rem; opacity:.92; }
.hero .cta-row { margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }

@media (max-width: 768px) {
  .section-title { font-size:1.3rem; }
  .hero h1 { font-size:1.7rem; }
  .hero { min-height: 64vh; }
}
/* === Современная главная страница === */

.hero {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('{% static "images/hero-bg.jpg" %}') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(5px);
  transform: scale(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero .btn {
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Параллакс блок */
.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 0;
  color: white;
}

.parallax h2 {
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Карточки преимуществ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.advantage-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Анимации */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Отзывы с каруселью */
.testimonials {
  padding: 60px 0;
  background: #f8fafd;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  text-align: center;
  padding: 20px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

/* CTA блок */
.cta {
  background: linear-gradient(135deg, var(--color-main), var(--color-accent));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta .btn {
  background: white;
  color: var(--color-main);
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 50px;
}

.cta .btn:hover {
  background: var(--color-cta);
  color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  .parallax { background-attachment: scroll; padding: 60px 0; }
}
