:root {
  --ink: #142033;
  --muted: #647086;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --surface-warm: #fff8ec;
  --line: #dce8f7;
  --brand-blue: #0060d3;
  --brand-blue-dark: #004fae;
  --amber: #0060d3;
  --coral: #ef6d4a;
  --shadow: 0 18px 55px rgba(20, 32, 51, 0.14);
  --header-height: 104px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 3.4vw, 54px);
  padding: 0 clamp(24px, 5vw, 86px);
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(20, 32, 51, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: auto;
  height: min(86px, calc(var(--header-height) - 18px));
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  color: #111927;
  font-size: 0.98rem;
  font-weight: 850;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--header-height);
  padding: 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  height: 2px;
  background: #111927;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:first-child::after,
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

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

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 86px;
  padding: 4px;
  background: #edf5ff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-button {
  min-width: 0;
  height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-button.is-active {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(20, 32, 51, 0.15);
}

.catalog-button,
.primary-button,
.secondary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.catalog-button {
  color: #ffffff;
  background: var(--brand-blue);
  border-radius: 999px;
  min-height: 52px;
  padding-inline: 28px;
  box-shadow: 0 14px 30px rgba(0, 96, 211, 0.24);
}

.catalog-button:hover,
.primary-button:hover,
.submit-button:hover {
  background: var(--brand-blue-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #edf5ff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  padding-top: var(--header-height);
  background: #ffffff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding: clamp(56px, 6vw, 88px) clamp(26px, 6vw, 88px) clamp(44px, 5vw, 76px) clamp(28px, 7vw, 126px);
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  position: relative;
  z-index: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(100%, 980px);
  height: min(68svh, 660px);
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: min(720px, 100%);
  color: var(--ink);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0;
  color: #111927;
  font-size: clamp(1.85rem, 3.2vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 26px 0 0;
  color: #6a7282;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

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

.primary-button {
  min-height: 58px;
  padding-inline: 32px;
  color: #111927;
  background: #b8f000;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(184, 240, 0, 0.28);
}

.secondary-button {
  min-height: 58px;
  padding-inline: 28px;
  color: #111927;
  background: #ffffff;
  border: 1px solid #dce8f7;
  border-radius: 999px;
}

.primary-button:hover {
  background: #9fda00;
}

.secondary-button:hover {
  background: #f4f8ff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 44px);
  max-width: 660px;
  margin-top: clamp(46px, 7vw, 96px);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats strong {
  display: block;
  color: #111927;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 950;
  line-height: 0.95;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: #242c3a;
  font-size: clamp(0.88rem, 1vw, 1.02rem);
  font-weight: 850;
  line-height: 1.14;
}

.slider-controls {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(18px, 4vw, 46px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-arrow,
.gallery-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.slider-arrow {
  color: var(--ink);
  background: #ffffff;
  border-color: #dce8f7;
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.12);
  backdrop-filter: none;
}

.slider-arrow:hover,
.gallery-button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.slider-arrow:hover {
  background: #f4f8ff;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #cbd8ea;
  border: 0;
  border-radius: 999px;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.slider-dot.is-active {
  width: 30px;
  background: var(--brand-blue);
}

.section {
  padding: clamp(70px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(300px, 1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.about-section {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.section h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-copy {
  color: #31405a;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: clamp(38px, 5vw, 70px) auto 0;
}

.stats-row div {
  min-height: 148px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 32, 51, 0.06);
}

.stats-row strong {
  display: block;
  color: var(--brand-blue);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
}

.stats-row span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.references-section {
  overflow: hidden;
  background: #111113;
  color: #ffffff;
}

.references-section .section-heading {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-right: auto;
  margin-bottom: 28px;
  margin-left: auto;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.references-section .section-kicker {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.64);
  letter-spacing: 0.08em;
}

.references-section .references-title {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 950;
  text-align: center;
}

.reference-marquee {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reference-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: reference-scroll 34s linear infinite;
}

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

.reference-set {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
}

.reference-logo {
  display: grid;
  flex: 0 0 206px;
  height: 96px;
  place-items: center;
  padding: 18px 24px;
  background: #19191c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: none;
}

.reference-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.82);
  transition:
    filter 0.22s ease,
    transform 0.22s ease;
}

.reference-logo:hover img {
  filter: grayscale(0) saturate(1) contrast(1) opacity(1);
  transform: scale(1.04);
}

.services-section {
  background: #ffffff;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: center;
}

.section-heading p:last-child {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 242px;
  overflow: hidden;
  padding: 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.service-card:nth-child(2n) {
  background: var(--surface-warm);
}

.service-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: rgba(0, 96, 211, 0.28);
  box-shadow: var(--shadow);
}

.service-media,
.gallery-media {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.service-media {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
}

.service-media img,
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.service-card:hover .service-media img,
.gallery-card:hover .gallery-media img {
  transform: scale(1.05);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 24px 28px 0;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 950;
}

.service-card:nth-child(3n + 1) .service-icon {
  background: var(--brand-blue);
}

.service-card:nth-child(3n + 2) .service-icon {
  background: var(--brand-blue);
}

.service-card:nth-child(3n) .service-icon {
  background: var(--coral);
}

.service-card h3 {
  margin: 22px 28px 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0 28px 28px;
  color: var(--muted);
}

.gallery-section {
  overflow: hidden;
  background: #081727;
  color: #ffffff;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.gallery-heading h2 {
  color: #ffffff;
}

.gallery-actions {
  display: flex;
  gap: 10px;
}

.gallery-track {
  display: grid;
  grid-auto-columns: minmax(238px, 308px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  max-width: 100%;
  padding: 8px max(18px, calc((100vw - 1180px) / 2)) 26px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.gallery-card {
  position: relative;
  height: 390px;
  margin: 0;
  overflow: hidden;
  background: #14263d;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  scroll-snap-align: start;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.gallery-card::after {
  display: none;
}

.gallery-media {
  height: 100%;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  padding: clamp(70px, 8vw, 118px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(0, 96, 211, 0.1), rgba(0, 96, 211, 0.08)),
    #ffffff;
}

.contact-copy {
  max-width: 560px;
  justify-self: end;
}

.contact-copy p:not(.section-kicker) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-highlights span {
  padding: 10px 14px;
  color: var(--brand-blue-dark);
  background: #e7f1ff;
  border: 1px solid rgba(0, 96, 211, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(100%, 720px);
  padding: clamp(20px, 3vw, 34px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form .full-field {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: #26364d;
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(0, 96, 211, 0.14);
}

.full-field,
.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.submit-button {
  min-height: 54px;
  color: #ffffff;
  background: var(--brand-blue);
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--brand-blue-dark);
  font-weight: 850;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: #dce8f7;
  background: #1b2b62;
}

.site-footer::before,
.site-footer::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.site-footer::before {
  bottom: 56px;
  left: 34px;
  width: 86px;
  height: 44px;
  border: 12px solid rgba(255, 219, 193, 0.9);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  opacity: 0.72;
}

.site-footer::after {
  right: 34px;
  bottom: 116px;
  width: 112px;
  height: 86px;
  border: 5px solid rgba(185, 216, 221, 0.48);
  border-bottom-color: transparent;
  border-radius: 44px 44px 36px 36px;
  transform: rotate(12deg);
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(180px, 0.54fr) minmax(280px, 0.78fr);
  gap: clamp(42px, 8vw, 128px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(70px, 8vw, 106px) clamp(22px, 6vw, 72px);
}

.footer-brand {
  width: fit-content;
}

.footer-brand .brand-logo {
  height: 106px;
}

.footer-about p {
  max-width: 330px;
  margin: 22px 0 0;
  color: #b8c4df;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.75;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.footer-socials a {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 950;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-socials a:hover,
.footer-contact-item:hover .footer-contact-icon {
  background: #f45c8a;
  transform: translateY(-2px);
}

.footer-column h2 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.1;
}

.footer-links {
  display: grid;
  gap: 15px;
  color: #b8c4df;
  font-weight: 850;
}

.footer-links a,
.footer-contact-item {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover,
.footer-contact-item:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact-list {
  display: grid;
  gap: 20px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  color: #b8c4df;
}

.footer-contact-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  background: #f45c8a;
  border-radius: 999px;
  font-size: 1.15rem;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-contact-item strong,
.footer-contact-item small {
  display: block;
}

.footer-contact-item strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.footer-contact-item small {
  margin-top: 5px;
  color: #b8c4df;
  font-size: 0.96rem;
  line-height: 1.35;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 18px clamp(18px, 5vw, 72px);
  background: #101b40;
  text-align: center;
}

.copyright {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.copyright a {
  display: inline-block;
  margin-left: 12px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copyright a:hover {
  color: #8fb8ff;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(3, 10, 18, 0.78);
  border: 0;
  backdrop-filter: blur(10px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: 86svh;
  overflow: hidden;
  background: #071221;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.lightbox-image {
  width: 100%;
  max-height: 86svh;
  object-fit: contain;
  background: #071221;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: rgba(20, 32, 51, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(20, 32, 51, 0.92);
}

:focus-visible {
  outline: 3px solid rgba(0, 96, 211, 0.72);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 3;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 16px 18px 24px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(20, 32, 51, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-130%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      opacity 0.18s ease,
      visibility 0s linear 0.22s;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .main-nav a {
    min-height: auto;
    padding: 16px 8px;
    border-bottom: 1px solid #e8f1fb;
  }

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

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 82px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    height: min(68px, calc(var(--header-height) - 14px));
  }

  .catalog-button {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.84rem;
  }

  .language-switch {
    width: 76px;
  }

  .lang-button {
    height: 30px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    align-items: center;
    gap: 28px;
    min-height: max(800px, calc(100svh - var(--header-height)));
    padding: clamp(28px, 6vw, 52px) 18px 92px;
  }

  .hero-slider {
    min-height: max(800px, calc(100svh - var(--header-height)));
  }

  .hero-slide img {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    width: 100%;
    height: clamp(260px, 42svh, 420px);
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(1.55rem, 4.8vw, 2.75rem);
  }

  .hero-stats {
    margin-top: 36px;
  }

  .slider-controls {
    right: auto;
    left: 18px;
  }

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

  .contact-copy {
    justify-self: start;
  }

  .stats-row,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .references-section .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .references-section .section-kicker {
    margin-bottom: 0;
  }

  .references-section .section-heading p:last-child {
    max-width: 100%;
  }

  .reference-logo {
    flex-basis: 176px;
    height: 86px;
    padding: 16px 20px;
  }

  .gallery-heading {
    align-items: start;
    flex-direction: column;
  }

  .gallery-track {
    grid-auto-columns: minmax(242px, 78vw);
    padding-inline: 18px;
  }

  .gallery-card {
    height: 360px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-about p {
    max-width: 560px;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: auto 44px;
    gap: 12px 14px;
    height: auto;
    min-height: var(--header-height);
    padding-block: 10px;
  }

  .nav-toggle {
    justify-self: end;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .main-nav {
    top: 140px;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-slider,
  .hero-slide {
    min-height: max(920px, calc(100svh - 140px));
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(1.35rem, 7vw, 2.1rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 14px;
    margin-top: 32px;
  }

  .hero-stats strong {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .hero-stats span {
    font-size: 0.78rem;
  }

  .hero-slide img {
    height: clamp(230px, 36svh, 330px);
  }

  .slider-arrow,
  .gallery-button {
    width: 40px;
    height: 40px;
  }

  .section,
  .contact-section {
    padding-block: 58px;
  }

  .stats-row div {
    padding: 22px;
  }

  .service-icon {
    margin-inline: 22px;
  }

  .service-card h3 {
    margin-inline: 22px;
  }

  .service-card p {
    margin: 0 22px 24px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reference-track {
    animation: none !important;
  }
}
