:root {
  --yellow: #c5cf52;
  --yellow-light: #d4de5e;
  --yellow-dark: #b0ba46;
  --black: #000000;
  --gray: #0a0a0a;
  --gray-light: #1a1a1a;
  --white: #ffffff;
  --text-on-dark: #c8cdd0;
  --text-muted: #7a8084;
  --font-display: "Russo One", "Arial Black", sans-serif;
  --font-heading: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text-on-dark);
  line-height: 1.65;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

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

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 2px solid var(--yellow);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

/* ===== ЛОГОТИП С ДОМИКОМ ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--yellow);
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo__icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  color: var(--yellow);
  transition: color 0.3s ease;
}

.logo:hover,
.logo:hover .logo__icon {
  color: var(--white);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav__link {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--black);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}

/* Hero Banner */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding-top: 80px;
  overflow: hidden;
}

.hero__diagonal {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  clip-path: polygon(0 0, 65% 0, 50% 100%, 0 100%);
  z-index: 0;
  opacity: 0.85;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  width: min(1140px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero__content {
  padding-left: 1rem;
}

.hero__mobile-car {
  display: none;
  width: min(160px, 40vw);
  height: auto;
  margin-bottom: 0.5rem;
  margin-top: -1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: var(--black);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  color: var(--black);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  max-width: 420px;
  margin-bottom: 1.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__services-list {
  list-style: none;
  color: var(--black);
}

.hero__services-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.hero__services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--black);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: auto;
  padding-right: 1rem;
}

.hero__car-image {
  width: min(280px, 55vw);
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

/* ===== ТЕЛЕФОН НА БАННЕРЕ (УВЕЛИЧЕННЫЙ С ЭФФЕКТОМ НАВЕДЕНИЯ) ===== */
.hero__call-section {
  margin-top: 1rem;
}

.hero__call-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 0.3rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__phone--large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--black);
  transition: color 0.3s ease;
  text-decoration: none;
}

.hero__phone--large:hover {
  color: var(--white);
}

.hero__phone--large:hover svg {
  fill: var(--white);
}

.hero__phone--large svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  fill: var(--black);
  transition: fill 0.3s ease;
}

/* Кнопки на ПК — черные с желтой окантовкой */
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: var(--yellow);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.6rem 1.8rem;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  transition: background 0.25s, color 0.25s;
  min-width: 180px;
  cursor: pointer;
}

.hero__btn:hover,
.hero__btn:focus,
.hero__btn:active {
  background: var(--yellow);
  color: var(--black);
}

.hero__btn--services {
  margin-top: 0.25rem;
}

.hero__btn--consult {
  margin-top: 0.2rem;
}

/* Кнопки для мобильной версии */
.hero__mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: var(--yellow);
  background: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  transition: background 0.25s, color 0.25s;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  cursor: pointer;
}

.hero__mobile-btn:hover,
.hero__mobile-btn:focus,
.hero__mobile-btn:active {
  background: var(--yellow);
  color: var(--black);
}

.hero__mobile-btn--services {
  margin-top: 0.5rem;
}

.hero__mobile-btn--consult {
  margin-top: 0.3rem;
}

/* ===== ИКОНКА ВК (ОФИЦИАЛЬНЫЙ СТИЛЬ) ===== */
.vk-icon {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Для кнопок с иконкой ВК */
.hero__btn--consult .vk-icon,
.hero__mobile-btn--consult .vk-icon,
.btn-consult .vk-icon,
.contact-vk-btn .vk-icon {
  margin-right: 0.4rem;
}

/* Section common */
.section {
  padding: 5rem 0;
  position: relative;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60%;
  height: 3px;
  background: var(--yellow);
}

/* Home / About */
.section--home {
  background: var(--gray);
}

.section--home .section__title {
  color: var(--yellow);
}

.home-layout {
  overflow: hidden;
}

.home-text {
  font-size: 0.98rem;
  color: var(--text-on-dark);
}

.home-text p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* ===== КАРТОЧКИ НА ГЛАВНОЙ ===== */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.home-card {
  background: var(--gray);
  padding: 1.5rem 1.5rem 1.8rem;
  border-radius: 8px;
  border-left: 4px solid var(--yellow);
  transition: transform 0.25s;
}

.home-card:hover {
  transform: translateY(-4px);
}

.home-card__icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.home-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.home-card__text {
  font-size: 0.92rem;
  color: var(--text-on-dark);
  line-height: 1.5;
}

/* Services */
.section--services {
  background: var(--yellow);
  color: var(--black);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  padding: 6rem 0;
}

.section--services .section__title {
  color: var(--black);
}

.section--services .section__title::after {
  background: var(--black);
}

.services-intro {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2rem;
  max-width: 720px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--black);
  color: var(--white);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 4px solid var(--yellow);
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--yellow);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.service-card__text {
  font-size: 0.92rem;
  flex-grow: 1;
  color: var(--text-on-dark);
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--yellow);
  background: transparent;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
}

.btn-consult:hover,
.btn-consult:focus,
.btn-consult:active {
  background: var(--yellow);
  color: var(--black);
}

/* Technology */
.section--tech {
  background: var(--black);
}

.section--tech .section__title {
  color: var(--yellow);
}

.tech-content {
  max-width: 900px;
}

.tech-steps {
  list-style: none;
}

.tech-step {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--yellow);
}

.tech-step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.tech-step p {
  font-size: 0.95rem;
  color: var(--text-on-dark);
  text-align: justify;
}

/* Contacts */
.section--contacts {
  background: var(--yellow);
  color: var(--black);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
  padding: 6rem 0 4rem;
}

.section--contacts .section__title {
  color: var(--black);
}

.section--contacts .section__title::after {
  background: var(--black);
}

.contacts-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem 2.5rem;
  max-width: 900px;
}

.contact-block h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.contact-block p,
.contact-block a {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* Жирный адрес в контактах */
.contact-address {
  font-weight: 700;
}

.contact-phone {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--black);
  margin: 0.5rem 0 0.2rem;
}

.contact-phone a {
  color: var(--black);
}

.contact-phone-mobile {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 0.5rem;
}

.contact-phone-mobile a {
  color: var(--black);
}

.contact-hours {
  margin-top: 0.5rem;
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  background: var(--black);
  color: var(--yellow);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
}

/* ===== КНОПКА ВК В КОНТАКТАХ ===== */
.contact-vk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--yellow);
  background: var(--black);
  border: 2px solid var(--yellow);
  border-radius: 4px;
  text-align: center;
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
  text-decoration: none;
  margin-top: 0.3rem;
}

.contact-vk-btn:hover,
.contact-vk-btn:focus,
.contact-vk-btn:active {
  background: var(--yellow);
  color: var(--black);
}

/* Карта в контактах */
.contact-map {
  grid-column: 1 / -1;
}

.map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  margin-top: 0.5rem;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  border-top: 2px solid var(--yellow);
}

.footer span {
  color: var(--yellow);
  font-weight: 600;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ТЕЛЕФОНА (ТОЛЬКО ДЛЯ МОБИЛЬНОЙ ВЕРСИИ) ===== */
.float-phone {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 65px;
  height: 65px;
  background: #0077FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(0, 119, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  animation: float-pulse 2s ease-in-out infinite;
}

.float-phone:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 35px rgba(0, 119, 255, 0.7);
}

.float-phone svg {
  width: 32px;
  height: 32px;
  color: white;
  stroke: white;
  fill: none;
}

@keyframes float-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 640px) {
  .float-phone {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .float-phone svg {
    width: 26px;
    height: 26px;
  }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 2rem;
  }

  .hero__diagonal {
    clip-path: none;
    opacity: 1;
  }

  .hero__content {
    padding-left: 0;
    padding-top: 0.5rem;
    order: -1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__mobile-car {
    display: block;
  }
  
  .hero__title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--black);
  }
  
  .hero__subtitle {
    color: var(--black);
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    font-weight: 700;
    max-width: 100%;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  .hero__services-list {
    color: var(--black);
    text-align: left;
    padding-left: 0.5rem;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: flex-start;
  }
  
  .hero__services-list li {
    padding-left: 1.2rem;
    margin-bottom: 0.3rem;
    display: block;
    position: relative;
    font-weight: 700;
  }
  
  .hero__services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: var(--black);
    display: block;
  }

  .hero__visual {
    display: none;
  }
  
  .hero__call-text {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--black);
  }
  
  .hero__phone--large {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero__mobile-btn {
    display: inline-flex;
  }
  
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--black);
    padding: 1rem;
    border-bottom: 2px solid var(--yellow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    text-align: center;
    padding: 0.7rem;
  }

  .header__inner {
    position: relative;
  }

  .section--services,
  .section--contacts {
    clip-path: none;
  }

  .hero__inner {
    padding: 1rem 0 1.5rem;
    gap: 0.5rem;
  }

  .hero__mobile-car {
    width: min(140px, 35vw);
    margin-top: -2rem;
    margin-bottom: 0.3rem;
  }
  
  .hero__title {
    font-size: 1.5rem;
  }
  
  .hero__subtitle {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  .hero__services-list {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 700;
    padding-left: 0.5rem;
    width: 100%;
  }
  
  .hero__services-list li {
    padding-left: 1.2rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
  }
  
  .hero__services-list li::before {
    width: 6px;
    height: 6px;
    top: 0.6em;
  }
  
  .hero__call-text {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  
  .hero__phone--large {
    font-size: 1.6rem;
  }
  
  .hero__phone--large svg {
    width: 1em;
    height: 1em;
  }

  .hero__mobile-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    max-width: 220px;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .contact-phone {
    font-size: 1.3rem;
  }
  
  .contact-phone-mobile {
    font-size: 0.9rem;
  }

  .map-wrapper iframe {
    height: 220px;
  }
  
  .home-grid {
    grid-template-columns: 1fr;
  }
  
  .home-card {
    padding: 1.2rem;
  }
  
  .home-card__icon {
    font-size: 1.8rem;
  }
}

/* На ПК кнопка скрыта */
@media (min-width: 901px) {
  .float-phone {
    display: none !important;
  }
}