/* HEADER */

header {
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo span {
  color: var(--primary);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-phone {
  font-size: 14px;
  font-weight: 500;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-fast), transform 0.1s ease,
    box-shadow 0.1s ease, border var(--transition-fast),
    color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background-color: var(--bg-white);
}

.btn-outline:hover {
  background-color: rgba(13, 127, 191, 0.06);
}

.btn-full {
  width: 100%;
}

/* HERO */

.hero {
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

/* Вариант hero с фоновым фото */
.hero.hero-bg {
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 110px 0 140px;
  position: relative;
}

/* Градиент, затемнение, мягкое размытие */
.hero.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.25)
  );
  backdrop-filter: blur(1.5px);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.18);
  color: #e5f1ff;
  font-size: 13px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 720px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}

.hero-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* SERVICES */

.services {
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-white);
}

.service-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(13, 127, 191, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon .ti {
  font-size: 20px;
  color: var(--primary);
}

.service-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-list li {
  margin-bottom: 4px;
}

.service-list li::before {
  content: "• ";
  color: var(--primary);
}

/* ADVANTAGES */

.advantages {
  background-color: var(--bg-light-blue);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.adv-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}

.adv-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.adv-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: rgba(13, 127, 191, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adv-icon .ti {
  font-size: 16px;
  color: var(--primary);
}

.adv-title {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 15px;
}

.adv-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* STEPS */

.steps {
  background-color: var(--bg-white);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-item {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  padding: 14px 14px 12px 14px;
  position: relative;
  padding-left: 44px;
  box-shadow: var(--shadow-soft);
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 0;
  line-height: 1.3;
}

.step-icon {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PRICES */

.prices {
  background-color: var(--bg-light-blue);
}

.prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.price-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.price-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.price-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.price-list li {
  margin-bottom: 4px;
}

.price-list li::before {
  content: "– ";
  color: var(--primary);
}

/* GUARANTEES */

.guarantees {
  background-color: var(--bg-white);
}

.guarantees-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  font-size: 14px;
}

.guarantee-item {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--primary);
  background-color: rgba(13, 127, 191, 0.03);
  line-height: 1.6;
}

/* FAQ */

.faq {
  background-color: var(--bg-light-blue);
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  margin-bottom: 10px;
  padding: 12px 14px;
}

.faq-question {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CONTACT / FORM */

.contact {
  background-color: var(--bg-light);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.contact-info {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-list li {
  margin-bottom: 4px;
}

.contact-form {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  background-color: var(--bg-white);
}

.form-row {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 14px;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(13, 127, 191, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* FOOTER */

footer {
  border-top: 1px solid var(--border-light);
  padding: 14px 0;
  font-size: 12px;
  color: var(--text-muted);
  background-color: var(--bg-white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* RESPONSIVE */

@media (max-width: 900px) {

  .hero-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-contacts {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-title {
    font-size: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .header-phone {
    font-size: 15px;
  }
}
