/* ═══════════════════════════════════════════════
   Стили для лендинга
   ═══════════════════════════════════════════════ */

/* ─── Сброс и базовые настройки ───────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

/* ─── Шапка сайта ─────────────────────────────── */
header {
  background: linear-gradient(135deg, #1e90ff, #00bfff);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.9;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.contacts-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.phone {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.phone:hover {
  opacity: 0.9;
}

/* ─── Hero секция ─────────────────────────────── */
.hero {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%2387ceeb" width="1200" height="400"/></svg>');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* ─── Кнопка CTA с глянцевым блеском ✨ ───────── */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff6b35;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.479), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

/* Глянцевый блик сверху (статичный) */
.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  border-radius: 50px 50px 60% 60% / 50px 50px 45px 45px;
  pointer-events: none;
}

/* Бегущий блеск при наведении */
.cta-button::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -80%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    45deg,
    transparent 35%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 65%
  );
  transform: rotate(20deg);
  transition: left 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(53, 255, 70, 0.89), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-button:hover::after {
  left: 130%;
}

.cta-button:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* ─── Бейджи ──────────────────────────────────── */
.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ─── Секции ──────────────────────────────────── */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e90ff;
  font-weight: 700;
}

/* ─── Преимущества ────────────────────────────── */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background: #f8f9fa;
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ─── Услуги ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 1.5rem;
  position: relative;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: #1e90ff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-card.popular {
  border-color: #ff6b35;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: #ff6b35;
  color: #fff;
  padding: 0.3rem 3rem;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b35;
  margin: 1rem 0;
}

.service-features {
  list-style: none;
  margin: 1rem 0;
}

.service-features li {
  padding: 0.3rem 0;
  color: #555;
  font-size: 0.95rem;
}

.service-features li::before {
  content: "✓ ";
  color: #28a745;
  font-weight: 700;
  margin-right: 4px;
}

/* ─── Таблица цен ─────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-table th,
.price-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.price-table th {
  background: #1e90ff;
  color: #fff;
  font-weight: 600;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover {
  background: #f8f9fa;
}

/* ─── Контактная форма ────────────────────────── */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1e90ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  background: #ff6b35;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.submit-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ─── Футер ───────────────────────────────────── */
footer {
  background: #2c3e50;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #1e90ff;
  font-size: 1.1rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  display: block;
  margin: 0.3rem 0;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #34495e;
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* ─── Адаптив ─────────────────────────────────── */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  nav ul {
    justify-content: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .contacts-header {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  section {
    padding: 2rem 0;
  }

  .service-card,
  .advantage-card {
    padding: 1.2rem;
  }
}
