@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0d1b2a;
  --muted: #637083;
  --line: #d9e2ec;
  --primary: #173f70;
  --primary-light: #e8f0fb;
  --accent: #d71920;
  --accent-dark: #b51218;
  --danger: #f05454;
  --success: #12845b;
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.12);
  --shadow-soft: 0 14px 38px rgba(13, 27, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1500px;
  --font-main: "Inter", "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-main);
  line-height: 1.55;
}

body.modal-open,
body.mobile-menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

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

.section-pad {
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.22);
}

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

.btn-outline {
  color: var(--primary);
  border-color: rgba(23, 63, 112, 0.2);
  background: #fff;
}

.btn-outline:hover {
  border-color: rgba(23, 63, 112, 0.48);
  box-shadow: var(--shadow-soft);
}

.btn-lg {
  min-height: 56px;
  padding: 17px 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 226, 236, 0.95);
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.07);
}

.header-top {
  background: #fff;
  border-bottom: 1px solid rgba(217, 226, 236, 0.95);
}

.header-top-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns:
    minmax(170px, 260px) minmax(360px, 1fr)
    max-content minmax(185px, 220px);
  align-items: center;
  gap: 18px;
  padding: 8px 0;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 8px;
}

.burger span {
  display: block;
  width: 27px;
  height: 4px;
  margin: 3px auto;
  border-radius: 999px;
  background: #111;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.logo {
  min-width: 0;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
}

.logo-img {
  width: min(100%, 240px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.header-main-info {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, 165px) minmax(245px, 1fr);
  align-items: center;
  gap: 16px;
}

.header-address-group {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.header-contact {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #111827;
}

.header-contact-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.header-contact small {
  display: block;
  margin-bottom: 0;
  color: #6d7480;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-contact b {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-address-group .header-contact {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
}

.header-address-group .header-contact-icon {
  width: 22px;
  height: 22px;
  font-size: 17px;
}

.header-address-group .header-contact b {
  font-size: 12px;
  line-height: 1.15;
}

.header-phones {
  min-width: 0;
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 2px;
}

.messenger-icons {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}

.phone-link {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #20252e;
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-cta-stack {
  display: grid;
  gap: 9px;
}

.btn-header,
.header-cta-stack .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13px;
  box-shadow:
    inset 0 -3px 0 rgba(160, 8, 13, 0.45),
    0 8px 18px rgba(215, 25, 32, 0.22);
  white-space: nowrap;
}

.header-bottom {
  background: #fff;
  border-bottom: 1px solid rgba(217, 226, 236, 0.95);
}

.header-bottom-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu {
  min-width: 0;
}

.main-nav {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 34px);
  overflow-x: auto;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  color: #111827;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
}

.nav-icon {
  min-width: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.mobile-header-details,
.mobile-header-actions {
  display: none;
}

/* Hero */
.hero-main {
  position: relative;
  min-height: calc(100svh - 138px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 44px 0 72px;
  background:
    radial-gradient(circle at 82% 18%, rgba(215, 25, 32, 0.3), transparent 28%),
    linear-gradient(135deg, #081424 0%, #102d4f 52%, #07111f 100%);
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
}

.hero-main .container {
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  min-height: min(690px, calc(100svh - 175px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: clamp(36px, 6vw, 82px);
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(5, 14, 28, 0.96) 0%,
      rgba(8, 26, 49, 0.9) 43%,
      rgba(8, 26, 49, 0.38) 100%
    ),
    radial-gradient(
      circle at 76% 42%,
      rgba(255, 255, 255, 0.14),
      transparent 36%
    ),
    linear-gradient(135deg, #0b1b31, #173f70);
  box-shadow: 0 34px 90px rgba(4, 15, 30, 0.34);
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(215, 25, 32, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(10px, 4vw, 74px);
  opacity: 0.52;
  pointer-events: none;
}

.hero-bg-illustration img {
  width: min(52vw, 650px);
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.28));
  transform: translateX(2%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  color: #ffdadc;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero-company {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title-accent {
  display: block;
  max-width: 760px;
  color: #fff;
  /* font-size: clamp(34px, 4.8vw, 68px); */
  font-size: clamp(28px, 3.8vw, 54px);

  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-main .btn-primary {
  box-shadow: 0 18px 38px rgba(215, 25, 32, 0.34);
}

.hero-main .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-main .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Common cards and sections */
.advantages {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.advantage,
.service-card,
.process-step,
.documents-list article,
.contact-card,
.contact-form,
.faq-item,
.documents-package,
.legal-card,
.legal-list article,
.benefits-grid article {
  border: 1px solid rgba(217, 226, 236, 0.95);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.advantage {
  border-radius: 22px;
  padding: 24px;
}

.advantage-icon {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.advantage p,
.service-card p,
.process-step p,
.faq-intro p,
.about-content p,
.documents-list p,
.contact-info p,
.section-head p,
.documents p,
.legal p,
.outsourcing-content p,
.benefits-grid p {
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.service-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 30px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card-accent {
  border-color: rgba(215, 25, 32, 0.22);
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.service-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 20px;
  background: var(--primary-light);
}

.service-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.text-btn {
  width: fit-content;
  margin-top: auto;
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 900;
}

.text-btn::after {
  content: " →";
}

/* Outsourcing */
.outsourcing,
.legal {
  background: #fff;
}

.outsourcing-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: stretch;
}

.outsourcing-visual {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 36px;
  padding: 46px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.82)
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(215, 25, 32, 0.16),
      transparent 24%
    ),
    linear-gradient(135deg, #eef3f8, #ffffff);
  box-shadow: var(--shadow-soft);
}

.crumbs {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.red-check-list,
.check-list {
  display: grid;
  list-style: none;
}

.red-check-list {
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
}

.red-check-list li,
.check-list li {
  position: relative;
}

.red-check-list li {
  padding-left: 34px;
}

.red-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent);
  font-size: 22px;
}

.outsourcing-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.benefits-grid article {
  border-radius: 18px;
  padding: 20px;
  box-shadow: none;
}

.benefits-grid h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.benefits-grid p {
  margin-bottom: 0;
}

/* Documents and about */
.documents {
  background: linear-gradient(135deg, #f8fbff, #eef4fb);
}

.documents-grid,
.about-grid,
.certificates-grid,
.faq-grid,
.contacts-grid,
.legal-grid {
  display: grid;
  align-items: start;
}

.documents-grid,
.contacts-grid {
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
}

.documents-package {
  border-radius: 30px;
  padding: 34px;
}

.about {
  background: var(--surface);
}

.about-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 58px;
}

.about-visual {
  min-height: 440px;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(145deg, var(--primary-light), #fff);
  box-shadow: var(--shadow-soft);
}

.about-visual img {
  width: min(82%, 420px);
  max-height: 360px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.check-list {
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
}

.check-list li {
  padding-left: 32px;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 13px;
}

/* Legal and process */
.legal-grid {
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.legal-card,
.legal-list article {
  border-radius: 24px;
  padding: 28px;
}

.legal-card {
  position: sticky;
  top: 120px;
}

.legal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.legal-list article {
  min-height: 210px;
  box-shadow: none;
}

.legal-list h3 {
  color: var(--primary);
}

.process-step {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 26px;
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}

.process-step::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(23, 63, 112, 0.08);
}

/* Certificates */
.certificates {
  color: #fff;
  background: linear-gradient(135deg, #0d1b2a, #143b70);
}

.certificates .eyebrow,
.certificates p {
  color: rgba(255, 255, 255, 0.75);
}

.certificates-grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
}

.documents-list {
  display: grid;
  gap: 16px;
}

.documents-list article {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.documents-list span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.documents-list h3 {
  margin-bottom: 6px;
}

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

.certificate-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(3, 12, 24, 0.22);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.certificate-image {
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.certificate-image img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
}

.certificate-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.certificate-badge {
  width: fit-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(215, 25, 32, 0.9);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-text h3 {
  color: #fff;
}

.certificate-text p {
  margin-bottom: 0;
}

/* FAQ */
.faq-grid {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
  border-radius: 18px;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 22px 24px;
  color: var(--text);
  background: #fff;
  text-align: left;
  font-weight: 900;
}

.faq-item button::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: #ffe9ea;
}

.faq-item.active button::after {
  content: "−";
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq-item.active p {
  display: block;
}

/* CTA and contacts */
.cta {
  padding-top: 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 36px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0f5898);
  box-shadow: var(--shadow);
}

.cta-box .eyebrow,
.cta-box h2 {
  color: #fff;
}

.cta-box h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(28px, 3.6vw, 46px);
}

.cta-box .btn-primary {
  color: var(--accent);
  background: #fff;
  box-shadow: none;
  white-space: nowrap;
}

.contacts {
  background: var(--surface);
}

.contact-card {
  margin-top: 16px;
  border-radius: 18px;
  padding: 18px;
  box-shadow: none;
}

.contact-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.contact-form,
.modal-form {
  display: grid;
  gap: 16px;
}

.contact-form {
  border-radius: 30px;
  padding: 34px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #394c63;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(23, 63, 112, 0.55);
  box-shadow: 0 0 0 4px rgba(23, 63, 112, 0.09);
}

input.error,
textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(240, 84, 84, 0.08);
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

/* Footer, floating actions, modal */
.site-footer {
  color: #dbe7f5;
  background: var(--text);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 900;
}

.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  gap: 10px;
}

.floating-actions a,
.floating-actions button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-soft);
  font-size: 21px;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal.show {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, 0.62);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  width: min(100% - 32px, 520px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  border-radius: 28px;
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 28px;
  line-height: 1;
}

.modal-subtitle {
  margin-bottom: 22px;
  color: var(--muted);
}

.email-field,
.company-field {
  display: none;
}

.modal.consultation .email-field,
.modal.consultation .company-field {
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1500px) and (min-width: 1181px) {
  .header-top-inner {
    grid-template-columns:
      minmax(150px, 225px) minmax(315px, 1fr)
      max-content minmax(170px, 205px);
    gap: 14px;
  }

  .logo-img {
    width: min(100%, 215px);
    height: 50px;
  }

  .header-main-info {
    grid-template-columns: minmax(115px, 145px) minmax(210px, 1fr);
    gap: 12px;
  }

  .header-contact b,
  .header-address-group .header-contact b {
    font-size: 11.8px;
  }

  .phone-link {
    font-size: 14.5px;
  }

  .btn-header,
  .header-cta-stack .btn {
    min-height: 42px;
    padding-left: 13px;
    padding-right: 13px;
    font-size: 12.5px;
  }

  .hero-title-accent {
    /* font-size: clamp(32px, 4.4vw, 60px); */
    font-size: clamp(26px, 3.5vw, 48px);
  }
}

@media (max-width: 1320px) and (min-width: 1181px) {
  .header-top-inner {
    grid-template-columns:
      minmax(125px, 185px) minmax(260px, 1fr)
      max-content minmax(150px, 180px);
    gap: 10px;
  }

  .logo-img {
    width: min(100%, 178px);
    height: 46px;
  }

  .header-contact small {
    font-size: 9px;
  }

  .header-contact b,
  .header-address-group .header-contact b {
    font-size: 11px;
  }

  .phone-link {
    font-size: 13.5px;
  }

  .main-nav {
    gap: 18px;
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .section-pad {
    padding: 72px 0;
  }

  .header-top-inner {
    min-height: 74px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
  }

  .burger {
    position: relative;
    z-index: 130;
    display: grid;
    place-items: center;
    align-content: center;
  }

  .logo {
    max-width: 260px;
  }

  .logo-img {
    width: min(100%, 240px);
    height: 56px;
  }

  .header-main-info,
  .header-phones-desktop,
  .header-cta-desktop {
    display: none;
  }

  .header-bottom {
    height: 0;
    border: 0;
    background: transparent;
  }

  .header-bottom-inner {
    min-height: 0;
    padding: 0;
  }

  .site-header::before {
    content: "";
    position: fixed;
    inset: 74px 0 0;
    z-index: 115;
    background: rgba(13, 27, 42, 0.34);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  body.mobile-menu-open .site-header::before {
    opacity: 1;
    pointer-events: auto;
  }

  .header-menu {
    position: fixed;
    top: 86px;
    left: 14px;
    right: 14px;
    z-index: 120;
    max-height: calc(100dvh - 102px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    border: 1px solid rgba(217, 226, 236, 0.95);
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(13, 27, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px) scale(0.96);
    transform-origin: top center;
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .header-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .header-menu .main-nav {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.26s ease,
      transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .header-menu.show .main-nav {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
  }

  .header-menu .main-nav a {
    min-height: 46px;
    justify-content: center;
    border: 1px solid rgba(23, 63, 112, 0.1);
    border-radius: 14px;
    padding: 12px 10px;
    color: var(--text);
    background: #f8fbff;
    font-size: 14px;
    text-align: center;
    white-space: normal;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      transform 0.2s ease,
      color 0.2s ease;
  }

  .header-menu .main-nav a::after {
    display: none;
  }

  .header-menu .main-nav a:hover,
  .header-menu .main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
  }

  .mobile-header-details,
  .mobile-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.26s ease,
      transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
  }

  .mobile-header-details {
    order: 2;
    gap: 12px;
    border-radius: 18px;
    padding: 14px;
    background: #f8fbff;
  }

  .mobile-header-actions {
    order: 3;
    gap: 10px;
  }

  .header-menu.show .mobile-header-details,
  .header-menu.show .mobile-header-actions {
    opacity: 1;
    transform: translateY(0);
  }

  .header-menu.show .mobile-header-details {
    transition-delay: 0.1s;
  }

  .header-menu.show .mobile-header-actions {
    transition-delay: 0.15s;
  }

  .mobile-header-details .header-contact {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .mobile-header-details .header-contact b {
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
  }

  .mobile-header-details .header-contact small {
    font-size: 10px;
  }

  .mobile-header-actions .phone-link,
  .mobile-header-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .mobile-header-actions .phone-link {
    min-height: 48px;
    border: 1px solid rgba(23, 63, 112, 0.16);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
  }

  .mobile-header-actions .btn {
    min-height: 48px;
  }

  .hero-main {
    min-height: auto;
    padding: 32px 0 54px;
  }

  .hero-stage {
    min-height: 640px;
    align-items: flex-end;
    padding: 38px;
  }

  .hero-bg-illustration {
    align-items: flex-start;
    justify-content: center;
    padding: 18px 18px 0;
    opacity: 0.34;
  }

  .hero-bg-illustration img {
    width: min(86vw, 520px);
    max-height: 48%;
    transform: none;
  }

  .about-grid,
  .certificates-grid,
  .faq-grid,
  .contacts-grid,
  .documents-grid,
  .outsourcing-grid,
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .advantages-grid,
  .process-grid,
  .legal-list,
  .services-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-visual {
    min-height: 360px;
  }

  .legal-card {
    position: static;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .certificate-docs {
    grid-template-columns: 1fr;
  }

  .certificate-image {
    aspect-ratio: 16 / 10;
  }
}

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

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

  .header-top-inner {
    min-height: 70px;
  }

  .site-header::before {
    inset: 70px 0 0;
  }

  .header-menu {
    top: 80px;
    left: 10px;
    right: 10px;
    max-height: calc(100dvh - 92px);
    border-radius: 22px;
    padding: 14px;
  }

  .logo {
    max-width: 220px;
  }

  .logo-img {
    width: min(100%, 210px);
    height: 50px;
  }

  .header-menu .main-nav,
  .advantages-grid,
  .services-grid,
  .benefits-grid,
  .legal-list,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding: 24px 0 46px;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 28px;
    padding: 28px;
  }

  .hero-title-accent {
    /* font-size: clamp(30px, 10vw, 46px); */
    font-size: clamp(26px, 8.5vw, 38px);
  }

  .hero-company {
    font-size: clamp(20px, 6vw, 28px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-buttons,
  .hero-buttons .btn,
  .cta-box .btn,
  .contact-form .btn,
  .modal-form .btn,
  .hero-points span {
    width: 100%;
  }

  .advantages {
    margin-top: -18px;
  }

  .advantage,
  .service-card,
  .process-step,
  .contact-form,
  .documents-package,
  .legal-card,
  .legal-list article {
    padding: 24px;
  }

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

  .outsourcing-visual {
    min-height: auto;
    border-radius: 28px;
    padding: 28px;
  }

  .about-visual {
    min-height: 280px;
    border-radius: 26px;
  }

  .documents-list article {
    grid-template-columns: 1fr;
  }

  .cta-box {
    border-radius: 28px;
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
  }

  .floating-actions a,
  .floating-actions button {
    width: 48px;
    height: 48px;
  }

  .modal-dialog {
    padding: 26px 20px;
    border-radius: 22px;
  }
}

@media (max-width: 390px) {
  .logo {
    max-width: 190px;
  }

  .logo-img {
    height: 46px;
  }

  .mobile-header-actions .phone-link {
    font-size: 14px;
  }
}

/* =========================================================
   Header alignment + collapse top row on scroll
   ========================================================= */
@media (min-width: 1181px) {
  .site-header {
    transition: box-shadow 0.25s ease;
  }

  .header-top {
    max-height: 92px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
      max-height 0.3s ease,
      opacity 0.22s ease,
      transform 0.3s ease,
      border-color 0.22s ease;
  }

  .header-top-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(34px, 4.2vw, 82px);
    padding: 9px 0;
  }

  .logo {
    flex: 0 0 auto;
    max-width: 155px;
  }

  .logo-img {
    width: 150px;
    height: 52px;
  }

  .header-main-info {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(28px, 3.1vw, 58px);
  }

  .header-main-info > .header-contact,
  .header-address-group,
  .header-phones,
  .header-cta-stack {
    flex: 0 0 auto;
  }

  .header-address-group {
    min-width: max-content;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .header-contact,
  .header-address-group .header-contact {
    min-width: max-content;
    display: grid;
    grid-template-columns: 22px max-content;
    align-items: center;
    gap: 8px;
  }

  .header-contact-icon,
  .header-address-group .header-contact-icon {
    width: 22px;
    height: 22px;
    font-size: 17px;
  }

  .header-contact small {
    margin-bottom: 1px;
    font-size: 10px;
    line-height: 1;
  }

  .header-contact b,
  .header-address-group .header-contact b {
    overflow: visible;
    color: #111827;
    font-size: 12.5px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: nowrap;
  }

  .header-main-info > .header-contact b {
    font-size: 13px;
  }

  .header-phones {
    min-width: max-content;
    display: grid;
    justify-items: start;
    gap: 2px;
  }

  .messenger-icons {
    font-size: 18px;
  }

  .phone-link {
    font-size: 15.5px;
  }

  .header-cta-stack {
    width: 220px;
  }

  .btn-header,
  .header-cta-stack .btn {
    min-height: 44px;
    padding: 11px 18px;
    font-size: 13px;
  }

  .header-bottom-inner {
    min-height: 52px;
  }

  .main-nav {
    justify-content: center;
    gap: clamp(22px, 2.1vw, 40px);
  }
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .header-top-inner {
    gap: clamp(24px, 3vw, 54px);
  }

  .logo {
    max-width: 140px;
  }

  .logo-img {
    width: 135px;
    height: 50px;
  }

  .header-main-info {
    gap: clamp(22px, 2.5vw, 44px);
  }

  .header-contact,
  .header-address-group .header-contact {
    grid-template-columns: 20px max-content;
    gap: 7px;
  }

  .header-contact-icon,
  .header-address-group .header-contact-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
  }

  .header-contact b,
  .header-address-group .header-contact b,
  .header-main-info > .header-contact b {
    font-size: 11.8px;
  }

  .phone-link {
    font-size: 14.5px;
  }

  .header-cta-stack {
    width: 205px;
  }

  .main-nav {
    gap: clamp(16px, 1.65vw, 30px);
    font-size: 13.5px;
  }
}

@media (max-width: 1320px) and (min-width: 1181px) {
  .header-top-inner {
    gap: 20px;
  }

  .logo {
    max-width: 125px;
  }

  .logo-img {
    width: 122px;
    height: 46px;
  }

  .header-main-info {
    gap: 18px;
  }

  .header-contact small {
    display: none;
  }

  .header-contact b,
  .header-address-group .header-contact b,
  .header-main-info > .header-contact b {
    font-size: 10.8px;
  }

  .phone-link {
    font-size: 13px;
  }

  .header-cta-stack {
    width: 170px;
  }

  .btn-header,
  .header-cta-stack .btn {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .main-nav {
    gap: 15px;
    font-size: 12.5px;
  }
}
