:root {
  --dark-blue: #163B6C;
  --blue: #1E4D8F;
  --accent: #2D6F67;
  --bg: #F7FAFC;
  --bg-blue: #EEF4FB;
  --text: #111827;
  --muted: #4B5563;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --shadow: 0 18px 48px rgba(22, 59, 108, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 14% 12%, rgba(30, 77, 143, 0.08), transparent 32%),
    radial-gradient(circle at 88% 6%, rgba(45, 111, 103, 0.09), transparent 34%),
    linear-gradient(135deg, #EEF4FB 0%, #F7FAFC 55%, #ECF5F4 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.logo-link {
  flex: 0 0 auto;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.header-nav a,
.header-phone {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-nav a:hover {
  color: var(--blue);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  
  border-radius: 999px;
  color: var(--dark-blue);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.header-phone:hover {
  color: var(--blue);
  border-color: rgba(30, 77, 143, 0.34);
  background: var(--bg-blue);
}

.hero {
  padding: 82px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: 64px;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1e4d8f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button,
.header-phone,
.service-card a {
  font-family: "Montserrat", "Ubuntu", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(30, 77, 143, 0.18);
}

.button--primary:hover {
  background: var(--dark-blue);
  box-shadow: 0 12px 26px rgba(22, 59, 108, 0.22);
}

.button--secondary {
  border: 1px solid rgba(30, 77, 143, 0.18);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
}

.button--secondary:hover {
  border-color: rgba(30, 77, 143, 0.34);
}

.hero__note {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.hero-visual__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section {
  padding: 68px 0;
}

.section-slim {
  padding: 24px 0;
}

.notice.section-slim {
  padding: 24px 0;
  border-top: 1px solid rgba(229, 231, 235, 0.65);
  border-bottom: 1px solid rgba(229, 231, 235, 0.65);
  background: rgba(255, 255, 255, 0.42);
}

#services {
  padding-top: 58px;
  padding-bottom: 44px;
}

.contact {
  padding-top: 58px;
  background: rgba(238, 244, 251, 0.58);
}

.notice-card {
  display: block;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.notice-card p,
.section-heading p {
  max-width: 790px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.notice-card h2 {
  margin-bottom: 6px;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
}

.notice-card p {
  max-width: 860px;
  font-size: 15px;
  line-height: 1.6;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading--wide {
  max-width: 900px;
}

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

.service-card,
.contact-info,
.contact-form-card {
  border: 1px solid rgba(229, 231, 235, 0.94);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(22, 59, 108, 0.08);
}

.service-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 24px;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 1px solid rgba(30, 77, 143, 0.1);
  border-radius: 16px;
  color: var(--blue);
  background: rgba(238, 244, 251, 0.86);
}

.service-card__icon svg {
  width: 30px;
  height: 30px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.services-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 24px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.services-cta::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid rgba(229, 231, 235, 0.72);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
  background: rgba(255, 255, 255, 0.42);
  content: "";
}

.services-cta > div:first-child,
.services-cta__text {
  max-width: 760px;
}

.services-cta h3 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.25;
}

.services-cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.services-cta__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.services-cta .button--secondary {
  border-color: var(--border);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(430px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-info,
.contact-form-card {
  padding: 30px;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.contact-list li {
  position: relative;
  padding-left: 24px;
}

.contact-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "—";
  font-weight: 900;
}

.messengers {
  display: grid;
  gap: 10px;
}

.messengers h3 {
  margin-bottom: 6px;
}

.messenger-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  color: #163b6c;
  font-family: "Montserrat", "Ubuntu", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.messenger-link:hover {
  transform: translateX(2px);
  color: #1e4d8f;
  border-color: transparent;
  box-shadow: none;
}

.messenger-link__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.messenger-link__fallback {
  display: none;
}

.contact-form-card {
  min-height: auto;
}

.form-placeholder {
  display: grid;
  min-height: 260px;
  place-content: center;
  padding: 28px;
  border: 1px dashed rgba(30, 77, 143, 0.22);
  border-radius: 18px;
  text-align: center;
  background:
    linear-gradient(rgba(30, 77, 143, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 77, 143, 0.05) 1px, transparent 1px),
    rgba(238, 244, 251, 0.52);
  background-size: 26px 26px;
}

.form-placeholder__title {
  margin-bottom: 8px;
  color: var(--dark-blue);
  font-size: 22px;
  font-weight: 700;
text-align: center;
}

.form-placeholder__text {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer__inner p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.footer__inner span {
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .header__inner {
    min-height: 66px;
  }

  .logo {
    max-height: 42px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding: 48px 0 34px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.16;
  }

  h2 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .hero__lead,
  .notice-card p,
  .section-heading p {
    font-size: 16px;
  }

  .hero__actions,
  .services-cta,
  .services-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    border-radius: 24px;
  }

  .section {
    padding: 58px 0;
  }

  .section-slim {
    padding: 22px 0;
  }

  #services {
    padding-top: 48px;
    padding-bottom: 38px;
  }

  .contact {
    padding-top: 48px;
  }

  .contact-info,
  .contact-form-card {
    padding: 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .service-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .services-cta {
    gap: 20px;
    margin-top: 18px;
    padding: 24px 0;
    border-radius: 0;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__inner span {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header__inner {
    gap: 10px;
  }

  .logo-link {
    min-width: 0;
  }

  .header-phone {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .logo {
    max-width: 144px;
    max-height: 34px;
  }

  .badge {
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
  }

  .messenger-link {
    align-items: center;
  }

  .form-placeholder {
    min-height: 220px;
    padding: 22px 16px;
  }
}
