:root {
  --ink: #101820;
  --muted: #637083;
  --line: #dbe3ea;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --dark: #0d2a34;
  --blue: #07528d;
  --green: #0f7b5f;
  --green-dark: #09503f;
  --gold: #caa45d;
  --shadow: 0 24px 70px rgba(15, 35, 45, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 234, 0.85);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  flex: 0 0 auto;
  width: 189px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}

.brand-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-width: 108px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dark);
  background: white;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.lang-toggle span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 6px;
}

.lang-toggle:not(.is-en):not(.is-ua) span:first-child,
.lang-toggle.is-en span:nth-child(2),
.lang-toggle.is-ua span:nth-child(3) {
  color: white;
  background: var(--blue);
}

.lang-toggle.is-en span:first-child,
.lang-toggle.is-ua span:first-child {
  color: var(--dark);
  background: transparent;
}

.nav {
  display: flex;
  gap: 24px;
  color: #344552;
  font-size: 14px;
}

.nav a:hover {
  color: var(--green-dark);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
}

.button.primary,
.nav-cta {
  color: white;
  background: var(--blue);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.button.compact {
  min-height: 42px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 23, 29, 0.92) 0%, rgba(7, 23, 29, 0.74) 48%, rgba(7, 23, 29, 0.18) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=86")
      center / cover;
}

.hero-logo-mark {
  position: absolute;
  top: clamp(92px, 11vw, 132px);
  right: clamp(28px, 8vw, 120px);
  z-index: 1;
  width: clamp(220px, 24vw, 360px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.hero-logo-mark img {
  width: 100%;
  height: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 92px clamp(22px, 6vw, 82px);
  color: white;
}

.hero-portrait {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 8vw, 120px);
  bottom: clamp(42px, 10vw, 120px);
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

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

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 7vw, 78px);
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.trust-row span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.quick-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1120px, calc(100% - 36px));
  margin: -58px auto 0;
  padding: 26px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.quick-panel strong,
.quick-panel span {
  display: block;
}

.quick-panel strong {
  font-size: 21px;
}

.quick-panel span {
  margin-top: 7px;
  color: var(--muted);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-copy {
  max-width: 720px;
  margin-bottom: 36px;
}

.section h2 {
  font-size: clamp(34px, 5vw, 58px);
}

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

.intro-grid article,
.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--blue);
  font-weight: 900;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

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

.services {
  width: 100%;
  padding-left: max(18px, calc((100% - 1120px) / 2));
  padding-right: max(18px, calc((100% - 1120px) / 2));
  background: var(--soft);
}

.service-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

.service-card.featured {
  color: white;
  background: var(--dark);
  border-color: var(--dark);
  grid-row: span 2;
}

.service-card.featured p,
.service-card.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.service-card ul {
  padding-left: 18px;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.image-block img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 22px;
  border-left: 4px solid var(--blue);
  background: var(--soft);
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 6px;
}

.expert {
  width: 100%;
  padding-left: max(18px, calc((100% - 1120px) / 2));
  padding-right: max(18px, calc((100% - 1120px) / 2));
  background:
    linear-gradient(rgba(13, 42, 52, 0.9), rgba(13, 42, 52, 0.9)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1600&q=82")
      center / cover;
}

.expert-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 900px;
  color: white;
}

.expert-card p {
  color: rgba(255, 255, 255, 0.8);
}

.portrait-wrap {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.82) contrast(1.04);
}

.expert-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.expert-points span {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.photo-section {
  padding-top: 76px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.photo-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 35, 45, 0.08);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
}

.photo-grid img {
  object-fit: cover;
}

.photo-grid figure.photo-placeholder {
  display: flex;
  flex-direction: column;
}

.photo-placeholder span {
  display: grid;
  flex: 1 1 auto;
  min-height: 260px;
  place-items: center;
  font-size: 0;
  background:
    linear-gradient(135deg, rgba(7, 82, 141, 0.08), rgba(15, 123, 95, 0.1)),
    var(--soft);
}

.photo-placeholder span::before {
  content: "+";
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px dashed rgba(7, 82, 141, 0.55);
  border-radius: 8px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 650;
}

.photo-grid figcaption {
  min-height: 76px;
  padding: 16px;
  color: #344552;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: start;
}

.contact-copy {
  align-self: center;
}

.contact-logo-card {
  width: min(360px, 100%);
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(15, 35, 45, 0.1);
}

.contact-logo-card img {
  width: 100%;
  height: auto;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(15, 35, 45, 0.1);
}

label {
  display: grid;
  gap: 8px;
  color: #344552;
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: white;
}

textarea {
  resize: vertical;
}

.testimonials {
  overflow: hidden;
  padding: 86px 0;
  background: var(--soft);
}

.testimonial-copy {
  padding: 0 0 34px;
}

.testimonial-copy h2 {
  max-width: 820px;
}

.testimonial-track {
  display: flex;
  width: 100%;
  gap: 18px;
  animation: testimonial-scroll 72s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-loop {
  flex: 0 0 auto;
  display: flex;
  gap: 18px;
}

.testimonial-card {
  flex: 0 0 320px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 38px rgba(15, 35, 45, 0.08);
}

.testimonial-card p {
  margin: 14px 0 20px;
  color: #344552;
}

.testimonial-card strong {
  color: var(--dark);
  font-size: 14px;
}

.stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0;
}

@keyframes testimonial-scroll {
  from {
    transform: translateX(calc(-50% - 9px));
  }

  to {
    transform: translateX(0);
  }
}

.faq {
  padding-top: 28px;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 54px);
  color: white;
  background: var(--dark);
}

.footer span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 152px;
    height: 51px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-bg {
    background:
      linear-gradient(rgba(7, 23, 29, 0.86), rgba(7, 23, 29, 0.64)),
      url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=82")
        center / cover;
  }

  .hero-portrait {
    right: 22px;
    bottom: 28px;
    width: 190px;
  }

  .hero-logo-mark {
    top: 86px;
    right: 22px;
    width: 190px;
    padding: 8px 10px;
  }

  .quick-panel,
  .process,
  .contact-section,
  .expert-card {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    display: grid;
  }

  .intro-grid,
  .service-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .service-card.featured {
    grid-row: auto;
  }

  .section {
    padding: 70px 0;
  }

  .testimonials {
    padding: 70px 0;
  }

  .testimonial-card {
    flex-basis: 282px;
    min-height: 250px;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 130px;
    height: 44px;
  }

  .lang-toggle {
    min-width: 92px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    max-width: 100%;
    padding: 126px 16px 76px;
  }

  .hero-logo-mark {
    top: 66px;
    right: 22px;
    width: 190px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-panel,
  .section {
    width: calc(100% - 32px);
  }

  .quick-panel {
    padding: 22px;
  }

  .service-card,
  .intro-grid article,
  .contact-form,
  .photo-grid figcaption {
    padding: 22px;
  }

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

  .testimonials {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-top: 62px;
    padding-bottom: 88px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .portrait-wrap {
    max-width: 240px;
  }
}
