:root {
  --font-main: "Montserrat Alternates", "Segoe UI", sans-serif;
  --bg: #0e1217;
  --bg-soft: #151c24;
  --surface: #1b242f;
  --surface-2: #202b37;
  --text: #e7edf3;
  --text-muted: #a8b5c3;
  --line: #2b3a49;
  --accent: #ff7a1a;
  --accent-2: #ff9f3f;
  --success: #44ca8f;
  --error: #ff6363;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --container: min(1160px, 92vw);
  --header-height: 84px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background:
    linear-gradient(rgba(7, 11, 15, 0.86), rgba(7, 11, 15, 0.9)),
    url("/assets/images/landing-bg.jpg") center / cover fixed no-repeat;
  line-height: 1.6;
}

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

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

section {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  border-radius: 0 0 6px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(8, 11, 15, 0.86);
  border-color: rgba(106, 126, 148, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-main);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.22s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-link:hover,
.lang-link:focus-visible {
  color: var(--text);
}

.lang-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: #f7fbff;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #151111;
  box-shadow: 0 8px 22px rgba(255, 122, 26, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.45);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  font-family: var(--font-main);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  max-width: 840px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
}

.section-head p {
  color: var(--text-muted);
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 28px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* ЗМІНА HERO-ЗОБРАЖЕННЯ: замініть шлях нижче на ваше фото у assets/images/ */
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.9) 0%, rgba(8, 11, 15, 0.78) 52%, rgba(8, 11, 15, 0.68) 100%),
    url("/assets/images/landing-bg.jpg") center/cover no-repeat;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 26%, rgba(255, 134, 48, 0.2), transparent 24%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 0;
}

.hero-label {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 18px;
  color: #d6e0ea;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.hero-text {
  max-width: 650px;
  color: #d0dae3;
  font-size: clamp(1.01rem, 2.2vw, 1.2rem);
}

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

.services {
  background: linear-gradient(180deg, rgba(20, 28, 36, 0.5) 0%, rgba(18, 24, 31, 0.95) 100%);
  border-top: 1px solid rgba(157, 176, 196, 0.08);
  border-bottom: 1px solid rgba(157, 176, 196, 0.08);
}

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

.services-carousel {
  position: relative;
  padding: 0 46px;
  touch-action: pan-y;
}

.services-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 14, 19, 0.86);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.22s ease, transform 0.22s ease;
}

.services-arrow-left {
  left: 0;
}

.services-arrow-right {
  right: 0;
}

.services-arrow:hover,
.services-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(calc(-50% - 1px));
}

.services-dots {
  margin-top: 16px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.services-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 214, 227, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease;
}

.services-dot.active {
  width: 18px;
  background: #f6f9fc;
}

.service-card {
  position: relative;
  background: linear-gradient(160deg, rgba(31, 42, 54, 0.85) 0%, rgba(27, 36, 47, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 159, 63, 0.6);
}

.service-card h3 {
  margin-bottom: 10px;
}

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

.text-link {
  color: var(--accent-2);
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  color: #ffc182;
}

.cta-band {
  padding: 74px 0;
  background: linear-gradient(120deg, rgba(255, 122, 26, 0.18), rgba(22, 30, 39, 0.92));
  border-top: 1px solid rgba(255, 159, 63, 0.35);
  border-bottom: 1px solid rgba(157, 176, 196, 0.1);
}

.cta-band-inner {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(14, 20, 26, 0.78);
  box-shadow: var(--shadow);
  padding: 28px;
}

.cta-band-inner h2 {
  margin-bottom: 8px;
}

.cta-band-inner p {
  color: var(--text-muted);
}

.cta-band-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.works {
  position: relative;
}

.works::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 122, 26, 0.12), transparent 25%);
  pointer-events: none;
}

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

.works-carousel {
  position: relative;
  padding: 0 46px;
  touch-action: pan-y;
}

.works-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(10, 14, 19, 0.86);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.22s ease, transform 0.22s ease;
}

.works-arrow-left {
  left: 0;
}

.works-arrow-right {
  right: 0;
}

.works-arrow:hover,
.works-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(calc(-50% - 1px));
}

.works-dots {
  margin-top: 16px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.works-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 214, 227, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.22s ease, background 0.22s ease;
}

.works-dot.active {
  width: 18px;
  background: #f6f9fc;
}

.work-card {
  background: linear-gradient(180deg, rgba(31, 42, 54, 0.88) 0%, rgba(24, 33, 42, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 159, 63, 0.58);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.work-content {
  padding: 18px;
}

.work-content h3 {
  margin-bottom: 8px;
}

.work-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  min-height: 70px;
}

.about {
  background: linear-gradient(180deg, rgba(18, 24, 31, 1) 0%, rgba(12, 17, 23, 1) 100%);
  border-top: 1px solid rgba(157, 176, 196, 0.08);
  border-bottom: 1px solid rgba(157, 176, 196, 0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 26px;
}

.about-main p {
  color: var(--text-muted);
  margin-top: 14px;
}

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

.advantage-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(29, 39, 50, 0.8);
}

.advantage-card h3 {
  margin-bottom: 8px;
}

.advantage-card p {
  color: var(--text-muted);
}

.contacts {
  position: relative;
}

.contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 122, 26, 0.06), transparent 32%);
  pointer-events: none;
}

.contacts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contacts-info p {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 560px;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-family: var(--font-main);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.contact-phone:hover,
.contact-phone:focus-visible {
  color: #ffc78b;
}

.contact-cta {
  display: inline-flex;
}

.contact-map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(32, 43, 55, 0.9), rgba(25, 34, 44, 0.96));
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-map-card h3 {
  margin-bottom: 14px;
}

.contact-address {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-map-note {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-map {
  width: 100%;
  height: 280px;
  border: 1px solid #3a4e62;
  border-radius: 12px;
  background: #0e131a;
}

.map-link {
  margin-top: 14px;
}

.faq {
  background: linear-gradient(180deg, rgba(16, 22, 29, 0.9), rgba(9, 14, 19, 0.96));
  border-top: 1px solid rgba(157, 176, 196, 0.08);
}

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

.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: rgba(29, 39, 50, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.faq-card h3 {
  margin-bottom: 8px;
}

.faq-card p {
  color: var(--text-muted);
}

.form-status {
  min-height: 24px;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

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

.footer {
  padding: 26px 0;
  border-top: 1px solid rgba(157, 176, 196, 0.12);
  background: rgba(7, 10, 14, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.footer-phone {
  color: var(--text-muted);
}

.footer-phone:hover,
.footer-phone:focus-visible {
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.footer-copy {
  color: #7d8c9b;
  text-align: right;
  font-size: 0.93rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.76);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: #131a22;
  border: 1px solid #344253;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 24px;
}

.modal-kicker {
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.modal-body h3 {
  margin-bottom: 10px;
}

.modal-body p {
  color: var(--text-muted);
}

.modal-details {
  margin-top: 12px;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(15, 20, 27, 0.85);
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #1f2a37;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-page {
  padding-top: calc(var(--header-height) + 30px);
}

.service-page-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(31, 42, 54, 0.88), rgba(24, 33, 42, 0.98));
  box-shadow: var(--shadow);
  padding: 24px;
}

.service-back {
  display: inline-flex;
  margin-bottom: 14px;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #3a4b5c;
}

.service-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.service-points {
  list-style: none;
  margin-top: 14px;
}

.service-points li {
  color: #d3dde8;
  margin-bottom: 9px;
  padding-left: 16px;
  position: relative;
}

.service-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
}

.service-cta {
  margin-top: 18px;
}

@media (max-width: 1040px) {
  .services-grid,
  .works-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contacts-grid,
  .modal-content,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .modal-content img {
    max-height: 280px;
  }

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

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .header-call {
    display: none;
  }

  .burger {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 4vw;
    width: min(320px, 90vw);
    background: rgba(13, 18, 24, 0.96);
    border: 1px solid #304252;
    border-radius: 12px;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.35);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 76px;
  }

  .section {
    padding: 76px 0;
  }

  .services-grid,
  .works-grid,
  .advantages-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .work-content p {
    min-height: auto;
  }

  .cta-band-actions {
    width: 100%;
  }

  .cta-band-actions .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

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

  .works-carousel {
    padding: 0;
  }

  .services-carousel {
    padding: 0;
  }

  .works-arrow {
    display: none;
  }

  .services-arrow {
    display: none;
  }

  .works-dots {
    display: flex;
  }

  .services-dots {
    display: flex;
  }
}
