:root {
  --navy: #13294b;
  --ink: #142033;
  --muted: #637084;
  --paper: #f8f5ef;
  --surface: #ffffff;
  --line: #dfe5ed;
  --gold: #d9b66f;
  --red: #c83335;
  --telegram: #2aabee;
  --whatsapp: #168c4a;
  --viber: #665cac;
  --shadow: 0 20px 50px rgba(14, 33, 59, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(19, 41, 75, 0.92), rgba(19, 41, 75, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
}

.brand img {
  width: min(236px, 48vw);
  height: auto;
}

.header-actions,
.cta-row,
.footer-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen {
  min-height: 100svh;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 6vw, 86px) 64px;
  color: #ffffff;
  background: var(--navy);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 23, 42, 0.94) 0%, rgba(13, 31, 57, 0.82) 38%, rgba(19, 41, 75, 0.2) 72%),
    linear-gradient(0deg, rgba(10, 23, 42, 0.3), rgba(10, 23, 42, 0.12));
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 610px;
  margin: 24px 0 0;
  color: #e7edf5;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
}

.cta-row {
  flex-wrap: wrap;
  margin-top: 34px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.link-button:hover,
.mobile-telegram:hover {
  transform: translateY(-2px);
}

.link-button--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.link-button--telegram,
.mobile-telegram {
  background: var(--telegram);
}

.link-button--whatsapp {
  background: var(--whatsapp);
}

.link-button--viber {
  background: var(--viber);
}

.button-icon,
.button-icon svg,
.mobile-telegram svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.button-icon svg,
.mobile-telegram svg {
  fill: currentColor;
}

.services {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  padding: 72px clamp(18px, 5vw, 74px) 34px;
  background:
    linear-gradient(180deg, #f8f5ef 0%, #ffffff 54%, #eef3f6 100%);
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 36, 64, 0.06);
}

.service-card span {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.22;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.about-company {
  display: grid;
  gap: 8px;
  padding: 18px 0 20px;
  border-top: 1px solid rgba(19, 41, 75, 0.18);
  border-bottom: 1px solid rgba(19, 41, 75, 0.18);
}

.about-company h3 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.about-company p {
  max-width: 940px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.42;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.footer strong {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.footer-contacts {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 620px;
}

.footer-contacts a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.mobile-telegram {
  position: fixed;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform 160ms ease;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    position: absolute;
    padding: 12px 16px;
  }

  .brand img {
    width: 182px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding: 62px 18px 36px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 23, 42, 0.78) 0%, rgba(10, 23, 42, 0.5) 36%, rgba(10, 23, 42, 0.93) 100%),
      linear-gradient(90deg, rgba(10, 23, 42, 0.76), rgba(10, 23, 42, 0.3));
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.02;
  }

  .hero .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .hero-text {
    margin-top: 14px;
    font-size: 22px;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .link-button {
    min-height: 46px;
    padding: 12px 13px;
    font-size: 14px;
  }

  .services {
    min-height: auto;
    justify-content: flex-start;
    gap: 18px;
    padding: 24px 16px 132px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

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

  .service-card {
    min-height: 0;
    padding: 14px 16px;
  }

  .service-card span {
    font-size: 16px;
    line-height: 1.25;
  }

  .about-company {
    gap: 8px;
    padding: 14px 0 16px;
  }

  .about-company h3 {
    font-size: 24px;
  }

  .about-company p {
    font-size: 15px;
    line-height: 1.38;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 0;
  }

  .footer strong {
    margin-bottom: 4px;
    font-size: 16px;
  }

  .footer p {
    font-size: 11.5px;
    line-height: 1.2;
  }

  .footer-contacts {
    display: none;
  }

  .mobile-telegram {
    display: inline-flex;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 164px;
  }

  h1 {
    font-size: 38px;
  }

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