:root {
  --primary: #2a6dc6;
  --primary-dark: #1f5398;
  --white: #ffffff;
  --black: #10141d;
  --muted: #5a6370;
  --surface: #f3f6fb;
  --card-shadow: 0 20px 42px rgba(20, 38, 70, 0.08);
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--black);
  background: linear-gradient(165deg, #ffffff 0%, #f2f7ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.15;
}

p,
li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(42, 109, 198, 0.16);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px) saturate(120%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 30px rgba(17, 31, 56, 0.2);
  backdrop-filter: blur(16px) saturate(165%);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.header-phone {
  margin-left: auto;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(42, 109, 198, 0.28);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 0.94rem;
  color: var(--primary-dark);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  background: rgba(42, 109, 198, 0.12);
  color: var(--primary);
  border-color: rgba(42, 109, 198, 0.45);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(42, 109, 198, 0.1);
  color: var(--primary);
  outline: none;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(42, 109, 198, 0.2);
  background: var(--white);
  border-radius: 10px;
  color: var(--black);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(42, 109, 198, 0.26);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  color: var(--primary);
  border: 2px solid rgba(42, 109, 198, 0.28);
  background: var(--white);
}


.btn_2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn_2:hover {
  transform: translateY(-2px);
}


.btn_2:hover {
  background: var(--white) !important;
}



.service-hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 85% 20%, rgba(42, 109, 198, 0.18), transparent 32%),
    linear-gradient(165deg, #ffffff 0%, #f2f7ff 100%);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.service-hero-content {
  display: grid;
  gap: 20px;
}

.tag {
    display: inline-flex;
    align-self: start;
  
    width: fit-content;
    max-width: 260px;       

    padding: 7px 14px;
    border-radius: 999px;

    background: rgba(42, 109, 198, 0.12);
    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    text-align: center;
    line-height: 1.2;
    white-space: normal; 
    margin-bottom: 15px;
}



.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  letter-spacing: -0.04em;
}

.service-hero-content p {
  font-size: clamp(1.02rem, 2.1vw, 1.35rem);
  max-width: 760px;
  color: var(--muted);
    font-weight: 500;
  line-height: 1.2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.service-hero-visual {
  border-radius: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(42, 109, 198, 0.16);
  box-shadow: var(--card-shadow);
}

.service-hero-image {
  width: 100%;
  height: 360px;
  object-fit: contain;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(42, 109, 198, 0.1), rgba(42, 109, 198, 0.02));
}

.service-hero-badge {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(42, 109, 198, 0.08);
  border: 1px solid rgba(42, 109, 198, 0.14);
  display: grid;
  gap: 4px;
  text-align: center;
}

.service-hero-badge strong {
  color: var(--primary-dark);
}

.service-hero-badge span {
  color: var(--muted);
}

.service-section {
  padding: 82px 0;
  background: var(--white);
}

.service-section.surface {
  background: var(--surface);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.steps-card,
.problem-card,
.mini-card {
  background: var(--white);
  border: 1px solid rgba(42, 109, 198, 0.16);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 16px 36px rgba(20, 38, 70, 0.06);
}

.info-card {
  display: grid;
  gap: 14px;
}

.info-card.dark {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.info-card.dark p {
  color: rgba(255, 255, 255, 0.84);
}

.info-card.dark .tag {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.info-card h2,
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.035em;
}

.section-text {
  margin-top: 14px;
  max-width: 820px;
  font-size: 1.06rem;
}

.problems-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.problem-card,
.mini-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.problem-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 109, 198, 0.34);
  box-shadow: 0 22px 46px rgba(42, 109, 198, 0.1);
}

.number {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(42, 109, 198, 0.11);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.problem-card h3,
.mini-card h3,
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps-card {
  display: grid;
  gap: 0;
}

.step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(42, 109, 198, 0.22);
}

.step:first-child {
  padding-top: 0;
}

.step:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step span {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.faq-section {
  background: #0f1a2c;
  color: var(--white);
}

.faq-section .section-title {
  color: var(--white);
}

.service-faq-list {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.service-faq-list details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
}

.service-faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 800;
  font-size: 1.08rem;
  list-style: none;
}

.service-faq-list summary::-webkit-details-marker {
  display: none;
}

.service-faq-list details p {
  padding: 0 24px 22px;
  color: rgba(255, 255, 255, 0.76);
}

.service-faq-list .faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-faq-list .faq-question {
  background: transparent;
  color: var(--white);
}

.service-faq-list .faq-answer p {
  color: rgba(255, 255, 255, 0.76);
}

.service-faq-list .faq-icon {
  color: var(--white);
}

.cta-box {
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 42px;
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 24px 60px rgba(42, 109, 198, 0.22);
}

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 3.45rem);
}

.cta-box p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
}

.footer-note {
  padding: 22px 1rem 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--white);
  border-top: 1px solid rgba(42, 109, 198, 0.16);
}

.footer-note a {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 960px) {
  .service-nav {
    display: none;
  }

  .service-hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-hero-image {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .service-header-inner {
    min-height: 74px;
  }

  .logo {
    height: 46px;
  }

  .header-phone {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .service-hero {
    padding: 44px 0 58px;
  }

  .service-section {
    padding: 58px 0;
  }

  .problems-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .steps-card,
  .problem-card,
  .mini-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .cta-box {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 22px;
    border-radius: 24px;
  }

  .cta-box .btn {
    width: 100%;
  }
}