:root {
  --black: #0a0a0a;
  --ink: #151515;
  --white: #ffffff;
  --paper: #fafafa;
  --panel: #f4f4f4;
  --muted: #6b6b6b;
  --soft: #8a8a8a;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--black);
  color: var(--white);
}
.container {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}
.logo {
  color: var(--black);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span {
  margin-left: 6px;
  color: var(--soft);
  font-weight: 400;
}
.nav__desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.nav__link,
.mobile-nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.nav__link:hover,
.mobile-nav-links a:hover {
  color: var(--soft);
}
.language-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.language-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.language-switch__btn:hover {
  color: var(--black);
}
.language-switch__btn.active {
  background: var(--black);
  color: var(--white);
  cursor: default;
}
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.mobile-nav-links a {
  font-size: 26px;
  font-weight: 700;
}
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 160px 0 90px;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
          linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.45) 100%),
          url("/images/diagnostics.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.02);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--black);
}
.hero__title {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 28px 0;
  transition: all .3s;
}
.hero__title:hover {
  scale: 1.01;
  text-shadow: 5px 5px 9px rgba(122, 122, 122, 0.6);
}
.hero__text {
  max-width: 710px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 38px;
}
.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.btn--full {
  width: 100%;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 48px;
}
.section-title,
.about__title,
.contact__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.services,
.about,
.prices,
.contact {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}
.about {
  background: var(--paper);
}
.services__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.service-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel);
}
.service-card__image-wrap::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 10px;
  width: 50px;
  height: 57px;
  opacity: .7;
  background-image: url('/images/expert-autoteenindus-white-100.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: all .45s ease;
}
.service-card:hover .service-card__image {
  transform: scale(1.05);
  filter: grayscale(0.55) contrast(1.02);
}
.service-card__body {
  padding: 26px;
}
.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.service-card__title {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.service-card__price {
  flex: 0 0 auto;
  color: var(--black);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.service-card__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about__text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin-top: 26px;
}
.about__text p + p {
  margin-top: 18px;
}
.about__media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.about__image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: all .45s ease;
}
.about__image:hover {
  transform: scale(1.05);
  filter: grayscale(0.55) contrast(1.05) brightness(1.02);
}
.about__rate {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.about__rate span {
  color: var(--muted);
  font-size: 13px;
}
.about__rate strong {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.about__watermark_top {
  position: absolute;
  top: 20px;
  left: 20px;
}
.about__watermark_bottom {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: .7;
}
.prices__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.prices__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--white);
}
.prices__table th,
.prices__table td {
  padding: 19px 26px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.prices__table th {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prices__table tbody tr {
  transition: background 0.2s ease;
}
.prices__table tbody tr:hover {
  background: var(--paper);
}
.prices__table td {
  color: var(--ink);
  font-size: 15px;
}
.prices__table td:last-child,
.prices__table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.prices__table tr:last-child td {
  border-bottom: 0;
}
.prices__note {
  max-width: 920px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  margin-top: 24px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  grid-template-rows: auto auto;
  row-gap: 20px;
  column-gap: 80px;
  align-items: start;
}
.contact__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 24px 0 30px;
}
.contact__lead span {
  display: block;
  padding: 10px 0;
  text-align: justify;
}
.contact__wrapper {
  margin: 15% 0 0 0;
}
.contact__item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-align: right;
}
.contact__item:last-child {
  border-bottom: 1px solid var(--line);
}
.contact__label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact__value {
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.contact__phone:hover {
  text-decoration: underline;
}
.contact__form {
  height: calc(100% - 100px);
  margin: 100px 0 0 0;
  padding: 32px 32px 18px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: all .5s ease;
}
.contact__form:hover {
  transform: scale(1.005);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
}
.contact__input,
.contact__textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--soft);
}
.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}
.contact__textarea {
  min-height: 138px;
  resize: vertical;
}
.contact__maps {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.contact__maps img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  object-position: center;
  transition: all .5s ease;
}
.contact__maps img:hover {
  transform: scale(1.005);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, .3);
}
.form-status {
  min-height: 22px;
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
}
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__copy {
  color: var(--soft);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .services__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .contact__wrapper {
    margin: 20px 0;
  }
  .contact__item {
    text-align: center;
  }
  .contact__form {
    margin: 0;
    height: 100%;
  }
}
@media (max-width: 820px) {
  .container,
  .nav,
  .hero__content {
    width: min(100% - 32px, 1320px);
  }
  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }
  .nav__desktop {
    display: none;
  }
  .language-switch {
    justify-self: end;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .logo {
    font-size: 18px;
  }
  .hero {
    min-height: 80vh;
    padding: 138px 0 64px;
  }
  .hero__media {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.95) 100%),
            url("/images/diagnostics.jpg") 58% center / cover no-repeat;
    filter: grayscale(1) contrast(1.02);
  }
  .hero__text {
    font-size: 17px;
  }
  .services,
  .about,
  .prices,
  .contact {
    padding: 72px 0;
  }
  .section-head {
    display: block;
  }
  .services__row {
    grid-template-columns: 1fr;
  }
  .contact__form {
    padding: 22px;
  }
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 520px) {
  .language-switch__btn {
    min-width: 36px;
    height: 32px;
  }
  .logo span {
    display: block;
    margin-left: 0;
  }
  .service-card__top,
  .about__rate {
    display: block;
  }
  .service-card__price {
    display: inline-flex;
    margin-top: 12px;
  }
  .about__rate strong {
    display: block;
    margin-top: 6px;
  }
}