:root {
  --bg: #ececec;
  --dark: #0a123e;
  --text: #191d29;
  --muted: #5f6777;
  --brand: #5f8fa6;
  --white: #ffffff;
  --card: #f6f6f6;
  --line: #d6d6d6;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
}

.header-row {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  height: 100%;
}

.logo-mark {
  width: 109px;
  height: 109px;
  object-fit: contain;
  border: 0;
  background: transparent;
  padding: 0;
}

.ph {
  border: 1px dashed #bfc5d1;
  background: #f7f8fb;
  color: #7b8497;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #d8dce5;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #232938;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav a {
  text-decoration: none;
  color: #10131f;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a.active,
.nav a:hover {
  color: var(--brand);
}

.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 40px;
  min-height: 530px;
  padding-block: 32px;
}

.hero-title {
  font-size: clamp(56px, 8vw, 82px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
  letter-spacing: 0.01em;
}

.hero-title .accent {
  color: var(--brand);
}

.hero-media {
  width: 100%;
  height: min(72vw, 520px);
  max-height: 520px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(21, 24, 40, 0.17);
  position: relative;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s ease, transform 1.1s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(236, 236, 236, 0.96) 42%, rgba(236, 236, 236, 0.23) 78%, rgba(95, 143, 166, 0.62) 100%);
  z-index: 1;
}

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 30px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(11, 17, 56, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.about {
  padding: 56px 0 28px;
  background: #fff;
}

.title-xl {
  margin: 0 0 38px;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: 0.01em;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.75fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.about-slogan {
  font-size: clamp(26px, 2.55vw, 46px);
  line-height: 1.25;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  color: #252939;
  font-weight: 500;
}

.about-side {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding-top: 6px;
}

.about-logo {
  width: 215px;
  height: 176px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.logo-mark.ph,
.about-logo.ph,
.services-logo.ph {
  border: 0;
  background: transparent;
  padding: 0;
}

.about-quote {
  font-style: italic;
  text-align: center;
  font-size: 14px;
  line-height: 1.22;
  color: #2b2f3d;
  max-width: 245px;
  font-weight: 500;
}

.stats {
  padding: 30px 0 62px;
  background: #fff;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

.stat {
  background: transparent;
  text-align: left;
  padding: 8px 6px;
  color: #3b4860;
}

.stat .icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  object-fit: contain;
  display: block;
}

.stat .num {
  display: block;
  font-size: 48px;
  font-weight: 500;
  color: #2a3144;
  margin-bottom: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.stat .label {
  font-size: 22px;
  color: #2a3144;
  line-height: 1.35;
  font-weight: 500;
  max-width: 220px;
}

.services {
  padding: 16px 0 24px;
}

.services-wrap {
  margin: 0 auto;
  width: min(1380px, calc(100% - 24px));
}

.services-layout {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  min-height: 780px;
  background: #e8e8e8;
}

.services-photo {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: #d9dde0;
}

.services-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-panel {
  padding: 58px 56px 46px;
  background: #e8e8e8;
  display: flex;
  flex-direction: column;
  position: relative;
}

.services-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.services-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1f2432;
}

.services-logo {
  width: 150px;
  height: 120px;
  object-fit: contain;
  background: transparent;
}

.services-text {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.85;
  color: #2a2f3d;
  max-width: 95%;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.service {
  background: #5b6781;
  border: 0;
  padding: 22px 20px;
  min-height: 146px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--service-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.35s ease, transform 0.55s ease;
  z-index: -2;
}

.service::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 22, 48, 0.4), rgba(11, 22, 48, 0.65));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.service:hover::before,
.service:hover::after {
  opacity: 1;
}

.service:hover::before {
  transform: scale(1);
}

.service:nth-child(1) {
  --service-bg: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1200&q=80");
}

.service:nth-child(2) {
  --service-bg: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1200&q=80");
}

.service:nth-child(3) {
  --service-bg: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80");
}

.service:nth-child(4) {
  --service-bg: url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=1200&q=80");
}

.service .idx,
.service h3 {
  position: relative;
  z-index: 1;
}

.service .idx {
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 56px;
  line-height: 1;
}

.service h3 {
  margin: 0;
  font-size: 29px;
  line-height: 1.18;
  font-weight: 600;
  color: #fff;
}

.services-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #c8a545;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 33px;
  padding: 7px 16px;
  width: fit-content;
}

.contacts {
  padding: 0 0 52px;
}

.contacts-cta {
  background: #e3e3e3;
  text-align: center;
  padding: 42px 20px 40px;
  margin-bottom: 68px;
  font-weight: 600;
  font-size: clamp(30px, 3.3vw, 54px);
  color: #202433;
  letter-spacing: 0;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.ua-flag {
  width: 36px;
  height: 24px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
  background: linear-gradient(to bottom, #1f73c9 0 50%, #f5d137 50% 100%);
}

.contacts .title-xl {
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 600;
  letter-spacing: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.contact {
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 0;
}

.contact .caption {
  font-size: 15px;
  color: #3f4e67;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact .caption .ico {
  font-size: 14px;
  color: #4f6688;
}

.contact .value {
  font-size: 17px;
  color: #2a2f3f;
  font-weight: 500;
  line-height: 1.38;
}

.worktime {
  text-align: center;
  margin: 0 0 14px;
  color: #7c8596;
  font-size: 17px;
  font-weight: 500;
}

.map {
  border: 0;
  background: transparent;
  overflow: hidden;
  margin-top: 8px;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.contacts-final {
  text-align: center;
  font-style: italic;
  font-weight: 600;
  margin-top: 22px;
  color: #252938;
  font-size: 30px;
}

.footer {
  padding: 26px 0 34px;
  text-align: center;
  color: #666f82;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-logo {
    width: 220px;
    height: 170px;
  }
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  .header-row {
    height: 58px;
    min-height: 58px;
    padding-block: 0;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 31;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -290px;
    width: 270px;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid #eceff5;
    box-shadow: -16px 0 28px rgba(26, 31, 46, 0.12);
    padding: 96px 22px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 30;
    transition: right 0.28s ease;
  }

  .nav.is-open {
    right: 0;
  }

  .nav a {
    font-size: 14px;
    width: 100%;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f3f8;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 20px 0 24px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 54px);
    line-height: 1.04;
  }

  .hero-media {
    height: min(62vw, 360px);
    max-height: none;
  }

  .stats-row,
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat .num {
    font-size: 40px;
  }

  .stat .label {
    font-size: 20px;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-photo {
    min-height: 460px;
  }

  .services-panel {
    padding: 28px 20px 26px;
  }

  .services-text {
    max-width: 100%;
  }

  .contacts-final {
    font-size: 22px;
  }

  .contact .value {
    font-size: 18px;
  }

  .contact .caption {
    font-size: 13px;
  }

  .contacts-cta {
    gap: 10px;
  }

  .ua-flag {
    width: 30px;
    height: 20px;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 28px);
  }

  .header-row {
    height: 42px;
    min-height: 42px;
  }

  .logo-mark {
    width: 101px;
    height: 101px;
  }

  .hero {
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(30px, 12vw, 46px);
    letter-spacing: 0;
  }

  .hero-media {
    height: 250px;
    border-radius: 4px;
  }

  .hero-controls {
    right: 8px;
    bottom: 8px;
  }

  .hero-btn {
    width: 34px;
    height: 34px;
  }

  .stats-row,
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats {
    padding: 20px 0 38px;
  }

  .stat {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 4px;
    border-bottom: 1px solid #edf0f6;
  }

  .stat .icon {
    width: 54px;
    height: 54px;
    margin: 0;
    grid-row: 1 / 3;
  }

  .stat .num {
    font-size: 30px;
    line-height: 1;
  }

  .stat .label {
    font-size: 16px;
    max-width: none;
    line-height: 1.25;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-panel {
    padding: 22px 14px 20px;
  }

  .services-title {
    font-size: 31px;
  }

  .service h3 {
    font-size: 22px;
  }

  .contacts-cta {
    display: block;
    text-align: center;
    font-size: clamp(24px, 7.5vw, 34px);
    line-height: 1.12;
    padding: 24px 12px 22px;
    margin-bottom: 30px;
    border: 1px solid #dfe3ea;
    background: #e5e5e5;
  }

  .contacts-cta > span:first-child {
    display: block;
  }

  .contacts-cta .ua-flag,
  .contacts-cta > span:last-child {
    display: inline-block;
    vertical-align: middle;
  }

  .contacts-cta > span:last-child {
    margin-left: 6px;
  }

  .ua-flag {
    width: 28px;
    height: 18px;
  }

  .contacts .title-xl {
    text-align: center;
    margin-bottom: 18px;
    font-size: clamp(30px, 8vw, 40px);
  }

  .contacts-grid {
    gap: 16px;
    margin-bottom: 18px;
  }

  .contact .caption {
    margin-bottom: 8px;
  }

  .contact .value {
    font-size: 16px;
  }

  .map iframe {
    height: 220px;
  }

  .worktime {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .contacts-final {
    font-size: 18px;
    margin-top: 14px;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 34px;
  }

  .services-title {
    font-size: 28px;
  }

  .service .idx {
    font-size: 46px;
  }

  .service h3 {
    font-size: 20px;
  }
}
