@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-red-pale: #fff7f7;
  --color-text: #241c1c;
  --color-text-soft: #6f6262;
  --color-line: #ead6d6;
  --color-white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.5;
  background: var(--color-white);
}

body.admin-bar .site-header {
  top: 32px;
}

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

button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

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

img,
svg,
iframe {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.site {
  min-height: 100vh;
  background: var(--color-white);
}

.container {
  width: 100%;
  max-width: 2500px;
  margin: 0 auto;
  padding-right: 48px;
  padding-left: 48px;
}

.icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.icon--small {
  width: 17px;
  height: 17px;
}

.icon--tiny {
  width: 14px;
  height: 14px;
}

.icon--muted {
  color: #b8a9a9;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  color: var(--color-white);
  font-weight: 700;
  background: var(--color-red);
  border: 1px solid var(--color-red);
  border-radius: 2px;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  color: var(--color-white);
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
}

.button--small {
  min-height: 44px;
  padding: 10px 19px;
  font-size: 14px;
}

.button--outline {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(127, 29, 29, 0.25);
}

.button--outline:hover {
  color: var(--color-red-dark);
  background: var(--color-white);
  border-color: var(--color-red);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.at-top {
  background: rgba(255, 255, 255, 0.8);
  border-color: transparent;
}

.site-header:not(.at-top) {
  box-shadow: 0 6px 24px rgba(73, 23, 23, 0.07);
}

.site-header__inner {
  display: flex;
  height: 80px;
  justify-content: space-between;
  gap: 28px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-header__logo {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.site-header__name,
.site-footer__name {
  color: var(--color-red);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.site-nav__link {
  padding: 10px 0;
  color: #655858;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav__link:hover {
  color: var(--color-red);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.site-header__menu-line {
  width: 19px;
  height: 2px;
  background: var(--color-text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header__menu-button[aria-expanded="true"] .site-header__menu-line:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-header__menu-button[aria-expanded="true"] .site-header__menu-line:nth-child(2) {
  opacity: 0;
}

.site-header__menu-button[aria-expanded="true"] .site-header__menu-line:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  right: 0;
  left: 0;
  z-index: 45;
  display: none;
  padding: 12px 24px 24px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 16px 30px rgba(73, 23, 23, 0.09);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.mobile-menu__link {
  padding: 15px 0;
  color: #544747;
  text-align: left;
  border-bottom: 1px solid #f0e0e0;
}

.mobile-menu__apply {
  margin-top: 12px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-white);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: 0;
  transform: scale(1.08);
  transition: transform 120ms linear;
  will-change: transform;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  z-index: 1;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 92px;
}

.hero__dealer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.hero__eyebrow,
.section__label,
.timeline__year,
.vacancy-card__salary,
.vacancy-card__tag {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5e5050;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  width: 32px;
  height: 1px;
  content: "";
  background: var(--color-red);
}

.hero__brands {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 24px;
}

.hero__brand {
  width: auto;
  object-fit: contain;
}

.hero__brand--bestune,
.hero__brand--baic,
.hero__brand--jetta {
  height: 40px;
}

.hero__brand--foton {
  height: 27px;
}

.hero__title,
.section__title,
.advantage-card__title,
.vacancy-card__title,
.vacancies__resume-title,
.office-card__title,
.stats__value {
  font-family: "Outfit", Arial, sans-serif;
}

.hero__title {
  max-width: 1040px;
  font-size: 88px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--color-red);
}

.hero__text {
  max-width: 590px;
  margin-top: 30px;
  color: #594c4c;
  font-size: 18px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.ticker {
  overflow: hidden;
  padding: 18px 0;
  background: var(--color-red-pale);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.ticker__track,
.ticker__group,
.ticker__item {
  display: flex;
  align-items: center;
}

.ticker__track {
  width: max-content;
  animation: ticker-move 31s linear infinite;
}

.ticker__group {
  flex: 0 0 auto;
}

.ticker__item {
  gap: 30px;
  padding: 0 30px;
  color: #9b8888;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  white-space: nowrap;
}

.ticker__dot {
  width: 6px;
  height: 6px;
  background: var(--color-red);
  border-radius: 50%;
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 128px 0;
}

.section--soft {
  background: var(--color-red-pale);
}

.section__label {
  margin-bottom: 24px;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section__title--narrow {
  max-width: 800px;
  margin-bottom: 54px;
}

.section__intro {
  max-width: 680px;
  margin-top: 28px;
  color: var(--color-text-soft);
  font-size: 18px;
  line-height: 1.75;
}

.about__layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
  gap: 64px;
}

.about__photo {
  position: sticky;
  top: 112px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.about__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.timeline {
  margin-top: 46px;
  padding-left: 25px;
  border-left: 1px solid var(--color-line);
}

.timeline__item {
  position: relative;
  padding-bottom: 30px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  top: 6px;
  left: -31px;
  width: 11px;
  height: 11px;
  background: var(--color-red);
  border: 4px solid var(--color-white);
  border-radius: 50%;
  box-sizing: content-box;
}

.timeline__year {
  color: var(--color-red);
  font-size: 14px;
}

.timeline__text {
  max-width: 560px;
  margin-top: 5px;
  color: #554848;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 78px;
  overflow: hidden;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: 2px;
  gap: 1px;
}

.stats__item {
  padding: 36px;
  background: var(--color-white);
}

.stats__value,
.stats__label {
  display: block;
}

.stats__value {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stats__label {
  margin-top: 10px;
  color: var(--color-text-soft);
  font-size: 14px;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  
}

.advantage-card,
.vacancy-card,
.application__form,
.office-card,
.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.advantage-card {
  min-height: 310px;
  padding: 34px 30px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.advantage-card:hover {
  border-color: #d6acac;
  box-shadow: 0 16px 34px rgba(73, 23, 23, 0.07);
  transform: translateY(-4px);
}

.advantage-card__icon,
.office-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--color-red);
  background: #fff1f1;
  border: 1px solid #f0baba;
  border-radius: 2px;
}

.advantage-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.advantage-card__title {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.advantage-card__text {
  margin-top: 14px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.vacancies__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

}

.vacancy-card {
  display: flex;
  min-height: 260px;
  padding: 32px;
  flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.vacancy-card:hover {
  border-color: #d6acac;
  box-shadow: 0 14px 30px rgba(73, 23, 23, 0.06);
}

.vacancy-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.vacancy-card__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.vacancy-card__salary {
  margin-top: 10px;
  color: var(--color-red);
  font-size: 14px;
}

.vacancy-card__description {
  margin-top: 18px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.vacancy-card__description p + p {
  margin-top: 12px;
}

.vacancy-card__description-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-left: 20px;
}

.vacancy-card__description-list li::marker {
  color: var(--color-red);
}

.vacancy-card__requirement {
  margin-top: 14px;
  color: #8b7a7a;
  font-size: 14px;
  line-height: 1.6;
}

.vacancy-card__requirement strong {
  color: #554848;
  font-weight: 600;
}

.vacancy-card__tag {
  align-self: flex-start;
  margin-top: 20px;
  padding: 5px 12px;
  color: #7c6c6c;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--color-line);
  border-radius: 30px;
}

.vacancy-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #f0e2e2;
}

.vacancies__resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 46px;
  padding: 0;
  background: #fff8f8;
  border: 1px solid #edb9b9;
  border-radius: 2px;
}

.vacancies__resume > div {
  padding: 34px;
}

.vacancies__resume-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.vacancies__resume-text {
  margin-top: 8px;
  color: var(--color-text-soft);
}

@media (min-width: 768px) {
  .vacancies__resume {
    align-items: stretch;
  }

  .vacancies__resume .button {
    height: auto;
    min-height: 141px;
    align-self: stretch;
  }
}

.application__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: 64px;
}

.application__form {
  padding: 38px;
}

.chili-form-grid {
  display: grid;
  gap: 23px;
}

.chili-field > label {
  display: block;
  margin-bottom: 8px;
  color: #655858;
  font-size: 14px;
}

.chili-field__required {
  color: var(--color-red);
}

.chili-input,
.chili-file-input {
  width: 100%;
  padding: 14px 16px;
  color: var(--color-text);
  background: var(--color-white);
	border:0;
  border-bottom: 1px solid #d9c4c4;
  border-radius: 2px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.chili-input:focus,
.chili-file-input:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 1px var(--color-red);
}

.chili-file {
  padding: 8px;
  border-bottom: 1px dashed #d9bcbc;
  border-radius: 2px;
}

.chili-file-input {
  padding: 8px;
  border: 0;
}

.chili-file-input::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  color: var(--color-white);
  font-weight: 600;
  background: var(--color-red);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.chili-consent,
.chili-consent .wpcf7-list-item {
  margin: 0;
}

.chili-consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.chili-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--color-red);
}

.chili-submit {
  width: 100%;
  padding: 18px 28px;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  background: var(--color-red);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 180ms ease, opacity 180ms ease;
}

.chili-submit:hover {
  background: var(--color-red-dark);
}

.chili-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid #d9c4c4;
  border-left: 3px solid var(--color-red);
}

.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--color-red-dark);
  font-size: 13px;
}

.chili-form-notice a {
  color: var(--color-red);
}

input::placeholder,
textarea::placeholder {
  color: #9c8d8d;
}

.section.contacts {
  padding-top: 0;
}

.contacts__layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
}

.contacts__details {
  display: grid;
  gap: 22px;
}

.office-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
}

.office-card__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.office-card__title {
  font-size: 19px;
  font-weight: 600;
}

.office-card__text {
  margin-top: 5px;
  color: var(--color-text-soft);
  font-size: 14px;
}

.contact-card {
  display: grid;
  gap: 17px;
  padding: 26px;
}

.contact-card__link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #554848;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.contact-card__link:hover {
  color: var(--color-red);
}

.contacts__apply {
  width: 100%;
}

.contacts__map {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 2px;
}

.contacts__map-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  padding: 0 0 40px;
  background: var(--color-white);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 38px;
  border-top: 1px solid var(--color-line);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__logo {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.site-footer__name {
  font-size: 16px;
}

.site-footer__description,
.site-footer__copyright {
  color: #928282;
  font-size: 14px;
}

.basic-page {
  min-height: 100vh;
  padding: 150px 0 96px;
}

.basic-page__inner {
  max-width: 920px;
}

.basic-page__title {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.basic-page__content,
.basic-page__empty {
  margin-top: 28px;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 132px 24px 64px;
  background: var(--color-white);
}

.error-page__content {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.error-page__code {
  margin-bottom: -22px;
  color: #f9dddd;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 220px;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.error-page__label {
  margin-bottom: 18px;
  color: var(--color-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.error-page__title {
  color: var(--color-text);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 68px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.error-page__text {
  max-width: 470px;
  margin: 24px auto 0;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.error-page__button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 0 28px;
  color: var(--color-white);
  font-weight: 700;
  background: var(--color-red);
  border-radius: 2px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.error-page__button:hover {
  color: var(--color-white);
  background: var(--color-red-dark);
  transform: translateY(-2px);
}

.error404 .site-nav,
.error404 .site-header__apply,
.error404 .site-header__menu-button {
  display: none;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 20px;
  }

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

  .advantage-card {
    min-height: 270px;
  }
}

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }

  .site-header__menu-button,
  .mobile-menu {
    display: flex;
  }

  .mobile-menu {
    flex-direction: column;
  }

  .hero__title {
    font-size: 68px;
  }

  .section__title {
    font-size: 50px;
  }

  .about__layout,
  .application__layout,
  .contacts__layout {
    grid-template-columns: 1fr;
  }

  .about__photo {
    position: static;
  }

  .application__layout {
    gap: 46px;
  }

  .contacts__map {
    min-height: 480px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .mobile-menu {
    top: 126px;
  }
}

@media (max-width: 767px) {
  .container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .section {
    padding: 96px 0;
  }

  .hero__content {
    padding-top: 130px;
    padding-bottom: 64px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__text {
    font-size: 16px;
  }

  .ticker__item {
    font-size: 23px;
  }

  .section__title {
    font-size: 42px;
  }

  .section__intro {
    font-size: 16px;
  }

  .stats,
  .vacancies__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item {
    padding: 28px;
  }

  .stats__value {
    font-size: 38px;
  }

  .vacancies__resume,
  .site-footer__inner,
  .site-footer__brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .vacancies__resume {
    padding: 28px 24px;
  }

  .vacancies__resume .button {
    width: 100%;
  }

  .site-footer__inner {
    display: flex;
  }
}

@media (max-width: 639px) {
  .site-header__logo {
    height: 50px;
  }

  .site-header__name {
    font-size: 16px;
  }

  .site-header__apply {
    display: none;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__brand--bestune,
  .hero__brand--baic,
  .hero__brand--jetta {
    height: 32px;
  }

  .hero__brand--foton {
    height: 22px;
  }

  .section__title {
    font-size: 36px;
  }

  .section__title--narrow {
    margin-bottom: 38px;
  }

  .stats,
  .advantages__grid,
  .vacancies__grid {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 56px;
  }

  .advantage-card,
  .vacancy-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .vacancy-card__actions {
    margin-top: 28px;
  }

  .application__form {
    padding: 28px 24px;
  }

  .contacts__map,
  .contacts__map-frame {
    min-height: 380px;
  }

  .site-footer__brand {
    gap: 8px;
  }

  .site-footer__logo {
    height: 42px;
  }

  .error-page__code {
    font-size: 128px;
  }

  .error-page__title {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


.site-header .button.site-header__apply{height:100%}
.application__form{border:2px solid var(--color-red-pale);}

.gallery {
  overflow: hidden;
  background: var(--color-white);
}

.gallery__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 38px;
}

.gallery__header .section__title {
  margin-bottom: 0;
}

.gallery__intro {
  max-width: 470px;
  color: var(--color-text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.gallery__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.gallery__layout--single {
  grid-template-columns: 1fr;
}

.gallery__layout--double {
  grid-template-columns: 1.5fr 1fr;
}

.gallery__side {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.gallery__side .gallery__image {
  position: absolute;
  inset: 0;
}

.gallery__layout--double .gallery__side {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.gallery__item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--color-white);
  background: #2b2020;
  border: 0;
  cursor: zoom-in;
}

.gallery__item--lead {
  aspect-ratio: 16 / 9;
}

.gallery__grid .gallery__item {
  aspect-ratio: 16 / 9;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, opacity 300ms ease;
}

.gallery__item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(32, 12, 12, 0.72));
  content: '';
  pointer-events: none;
}

.gallery__item:hover .gallery__image,
.gallery__item:focus-visible .gallery__image {
  opacity: 0.92;
  transform: scale(1.035);
}

.gallery__item:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

.gallery__caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.gallery-is-open {
  overflow: hidden;
}

.gallery-lightbox {
  width: 94vw;
  max-width: 1260px;
  padding: 0;
  color: var(--color-white);
  background: transparent;
  border: 0;
  overflow: visible;
}

.gallery-lightbox::backdrop {
  background: rgba(20, 10, 10, 0.92);
  backdrop-filter: blur(8px);
}

.gallery-lightbox__figure {
  margin: 0;
  text-align: center;
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.gallery-lightbox__caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.gallery-lightbox__close,
.gallery-lightbox__control {
  position: fixed;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
}

.gallery-lightbox__close {
  top: 24px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
}

.gallery-lightbox__control {
  top: 50%;
  font-size: 25px;
  transform: translateY(-50%);
}

.gallery-lightbox__control--previous {
  left: 24px;
}

.gallery-lightbox__control--next {
  right: 24px;
}

@media (max-width: 900px) {
  .gallery__header {
    display: block;
  }

  .gallery__intro {
    margin-top: 18px;
  }

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

  .gallery__layout,
  .gallery__layout--double {
    grid-template-columns: 1fr;
  }

  .gallery__side {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
  }

  .gallery__layout--double .gallery__side {
    grid-template-columns: 1fr;
  }

  .gallery__side .gallery__item {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .gallery__side,
  .gallery__grid,
  .gallery__layout--single,
  .gallery__layout--double {
    grid-template-columns: 1fr;
  }

  .gallery__side {
    grid-template-rows: auto;
  }

  .gallery-lightbox__control {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .gallery-lightbox__control--previous {
    left: 24px;
  }

  .gallery-lightbox__control--next {
    right: 24px;
  }
}

body.success-is-open {
  overflow: hidden;
}

.success-dialog {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
  overflow: visible;
}

.success-dialog:not([open]) {
  display: none;
}

.success-dialog::backdrop {
  background: rgba(36, 10, 10, 0.68);
  backdrop-filter: blur(5px);
}

.success-dialog__panel {
  position: relative;
  padding: 52px 48px 46px;
  text-align: center;
  background: var(--color-white);
  border-top: 4px solid var(--color-red);
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(49, 14, 14, 0.28);
  animation: success-dialog-in 220ms ease-out;
}

.success-dialog__close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-text-soft);
  font-size: 30px;
  line-height: 1;
  border-radius: 50%;
  transition: color 180ms ease, background-color 180ms ease;
}

.success-dialog__close:hover {
  color: var(--color-red-dark);
  background: var(--color-red-pale);
}

.success-dialog__icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  color: var(--color-red);
  background: var(--color-red-pale);
  border: 1px solid var(--color-line);
  border-radius: 50%;
}

.success-dialog__icon svg {
  width: 36px;
  height: 36px;
}

.success-dialog__eyebrow {
  margin-bottom: 8px;
  color: var(--color-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.success-dialog__title {
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 44px;
  line-height: 1.05;
}

.success-dialog__text {
  max-width: 390px;
  margin: 18px auto 30px;
  color: var(--color-text-soft);
  font-size: 17px;
}

.success-dialog__button {
  width: 100%;
}

@keyframes success-dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .success-dialog__panel {
    padding: 46px 24px 32px;
  }

  .success-dialog__title {
    font-size: 36px;
  }

  .success-dialog__text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-dialog__panel {
    animation: none;
  }
}
