/*!
Theme Name: RapidRentCar
Author: RapidRentCar
Version: 1.0.0
*/

/* montserrat-regular - cyrillic_latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/montserrat-v26-cyrillic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* montserrat-500 - cyrillic_latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/montserrat-v26-cyrillic_latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* montserrat-700 - cyrillic_latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/montserrat-v26-cyrillic_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

:root{
    --main-color: #000000;
    --hover-color: #fbd07a;
    --black-bg: #000;

}


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

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

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

ul, li {
    list-style: none;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.container {
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    position: relative;
}

p {
    margin-bottom: 15px;
}
 

.btn {
    font-weight: 700;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--main-color);;
    border-radius: 6px;
    height: 52px;
    display: flex;
    padding: 0 25px; 
    width: 100%;
    cursor: pointer;
    transition: all .3s;
    font-family: 'Montserrat';
    border: 0;
    font-size: 18px;
}

.btn:hover {
    background: var(--hover-color);
}

.btn-white {
    background: #fff;
    color: #3B3B3B; 
}

.btn-white:hover { 
    color: #fff; 
}
 

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.2;    
    font-weight: 400;
    color: #000;
    overflow-x: hidden;  
    padding-top: 75px;
}

/* header */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--black-bg);

    padding: 10px 0;
}

.header-row {
    display: flex;
    align-items: center;
    column-gap: 30px;
    align-items: center;
}

.header__phone a {
    color: #fff;
    font-weight: 500;
    transition: all .3s;
}

.header__phone a:hover {
    color: var(--hover-color); 
}


.header__lang {
    display: flex;
    column-gap: 6px;
}

.header__lang a {
    color: #fff;
    border: 1px solid transparent;
    padding: 3px;
}

.current-lang a {
    border-color: var(--hover-color);
}

.header__phone {
    margin-left: auto;
}

.header__logo {
    max-width: 50px;
}

.header__menu>li>.sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: 270px;
    height: auto;
    z-index: -10;
    opacity: 0;
    -webkit-transform: translateY(-25px);
    transform: translateY(-25px);
    pointer-events: none; 
    transition: all .2s ease;
    display: block;
    background: #FFFFFF;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 20px;
}

.header__menu>li:hover>.sub-menu, .header__menu>li>.sub-menu>li:hover>.sub-menu {
    z-index: 100;
    opacity: 1;
    -webkit-transform: translateY(5px);
    transform: translateY(5px);
    pointer-events: auto;
}  
 
.header__menu {
    display: flex;
    column-gap: 15px;
}

.header__menu>li>a {
    color: #fff;
    padding: 5px 0;
    transition: all .3s;
}

.header__menu>li.menu-item-has-children>a::after {
    content: "v";
    font-weight: 300;
    line-height: 1;
    font-size: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: scaleX(2) translateY(-50%);
}

.header__menu>li { 
    padding-left:  15px;
    padding-right:  15px;
}

.header__menu>li.menu-item-has-children {
    padding-right: 30px;
}


.header__menu a:hover {
    color: var(--hover-color);
}

.header__menu>li {
    position: relative;;
}

.header__menu>li>.sub-menu>li  { 
    padding: 10px 0;
}

.header__menu>li>.sub-menu>li a { 
    display: block;
    transition: all .3s;
}

.banner {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 50vh;
    justify-content: center;
    align-items: center; 
    color: #ffffff;
    text-align: center;
    font-size: 50px;
    text-transform: uppercase;
    margin-top: -5px;
   
}

.banner h1 {
    font-size: 36px;
}

.form-home {
    background: #21252a;
    padding: 50px 0;
    color: #fff;
}

.form-home h2,
.auto-home h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auto-home {
    padding: 50px 0 75px;
}

.auto-home-more {
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.auto-home-more .btn {
    max-width: 340px;
}

.about-num-box {
    background: #21252a;
    padding: 50px;
    color: #fff;
    border-radius: 20px;
}

.about-num {
    padding-bottom: 75px;
}

.about-num-box h2, .reviews h2,.home-term h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-num__items {
    display: grid;
    gap: 40px;
    text-align: center;
    grid-template-columns: repeat(3, 1fr);
}

.about-num__item span {
    display: block;
    font-weight: 700;
    font-size: 36px;
    padding-bottom: 10px;
}

.about-num__item { 
    font-size: 20px;
}

.reviews {
    padding-bottom: 75px;
}

.reviews__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
}

.reviews__item img {
    border-radius: 50%;
}

.reviews-box {
    padding: 0 100px;
    position: relative;
}

.reviews-box .swiper-button-next, 
.reviews-box .swiper-button-prev {
    background: var(--hover-color);
    width: 40px;
    height: 40px;
}

.reviews__item span {
    font-weight: 500;
    font-size: 18px;
}

.rev-text {
    text-align: center;
    font-size: 15px;
}

.reviews-pagination {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.reviews-pagination .swiper-pagination-bullet {
    background: var(--hover-color);
}

.home-term {
    padding-bottom: 75px;
}

.home-term-box {
    background: #ebebeb;
    padding: 50px;
    color: #000000;
    border-radius: 20px;
}

.home-term__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    font-size: 20px;
    font-weight: 500;
}

.home-term__item img { 
    width: 50px;
}

.home-term__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 40px;
}

h2 {
    margin-bottom: 30px;
}

/* category */

.auto__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.auto__item-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
}

.auto__item-teh {
    font-weight: 500;
    font-size: 17px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    column-gap: 5px;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.auto__item-teh img {
    width: 25px;
}

.auto__item-teh span {
    display: flex;
    align-items: center;
    column-gap: 5px;
}
.auto__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: #9a9c9e 1px solid;
    border-radius: 20px;
    overflow: hidden;
    row-gap: 20px;
    transition: all .3s;
}

.auto__item-price {
    background: #000000;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    color: #fff;
    font-size: 24px;
    transition: all .3s;
}

.auto__item:hover .auto__item-price {
    background: var(--hover-color); 
}

.auto__item:hover { 
    border: var(--hover-color) 1px solid;
}

.auto__item-img {
    width: 100%;
    height: 220px;           /* 👈 выбери нужную высоту */
    overflow: hidden;
    border-radius: 12px;     /* если дизайн позволяет */
    background: #f3f3f3;     /* запасной фон */
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 🔥 КЛЮЧЕВОЕ */
    object-position: center;
    display: block;
}


.auto__item-img img {
    transition: all .3s;
}

.auto__item:hover .auto__item-img img {
    transform: scale(1.10);
}

.auto__item-teh {
    font-weight: 500;
    font-size: 16px;
}

.auto__item-teh2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.auto__item-teh2 span {
    display: flex;
    align-items: center;
    column-gap: 8px;
    font-weight: 500;
    font-size: 17px;
}

.auto__item-teh2 span img {
    width: 25px;
}

.auto-archive {
    padding: 50px 0;
}

.auto-archive h1 {
    text-align: center;
    margin-bottom: 30px;
}

.auto__item-price i {
    font-style: normal;
    padding-left: 7px;
    color: red;
}

.auto__item-price del {
    font-size: 18px;
    color: #c5c5c5;
}


.archive-text {
    padding-top: 60px; 
}

.archive-text h2 {
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 700;
}

#sort-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 250px;
    gap: 20px;
    margin-bottom: 30px;
}

.pagination .nav-links { 
    display: flex; 
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.pagination .page-numbers {
    background: var(--hover-color);
    height: 30px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 30px;
}

.pagination .page-numbers.current {
    border-width: 1px;
    border: 2px solid var(--hover-color);
    background: 0 0;
    color: var(--hover-color);
}

/* card */

.auto-page {
    padding: 50px 0 50px;
}

.auto-page h1 {
    font-weight: 700;
    font-size: 30px; 
    margin-bottom: 25px;
    text-align: center;
}

.auto-page__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.auto-page__gallery { 
    position: relative;
    min-width: 100%;
}

.auto-main .swiper-slide img,
.auto-thumb .swiper-slide img {
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.auto-thumb .swiper-slide {
    cursor: pointer;
}

.auto-main {
    margin-bottom: 10px;
}

.auto-page__content {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}

.info-item-title {
    font-weight: 700; 
    margin-bottom: 20px;
    font-size: 18px; 
    text-transform: uppercase; 
}

.info-item-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 10px;
}

.info-item-row .center {
    display: flex;
    flex: 1;
    width: auto;
    border-bottom: #989898 1px dashed;
}

.info-item-row .left {
    padding-right: 5px;
    width: auto;
}

.info-item-row .right {
    padding-left: 5px;
    width: auto;
}

.info-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
}

.info-item-row .right del {
    color: #575757;
    font-size: 14px;
}

.info-item-row .right i {
    font-style: normal;
    padding-left: 5px;
    color: red;
}

.form-box {
    background: var(--black-bg);
    color: #fff;
    padding: 40px 20px 20px;
    border-radius: 6px;
}

.form-row {
    display: grid;
    gap: 30px; 
}

.form-box h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.form-row-3 { 
    grid-template-columns: repeat(3, 1fr);
}

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

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

.form-row-5 { 
  grid-template-columns: repeat(5, 1fr);
}

.form__field {
    font-size: 16px;
    line-height: 14px;
    height: 52px;
    width: 100%;
    font-weight: 500;
    padding: 0 15px;
    color: #000;
    background: #FFFFFF;
    border: 1px solid #909090;
    border-radius: 8px;
    font-family: 'Montserrat'; 
}

.form__select { 
    appearance: none;
    background: #fff url(img/down.svg) no-repeat 95% !important;
    cursor: pointer;
}

.form-group .form__lable {
    font-size: 14px;   
    color: #fff; 
    padding: 0 0 5px 5px;
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-row-flex {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.form-mess-items {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.form-mess-item {
    cursor: pointer;
}

.cont-box h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.cont-box {
    padding: 75px 0;
}

.contacts {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    font-size: 20px;
    font-weight: 500;
}

.cont-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}


.swiper-button-next:after, .swiper-button-prev:after {
    content: none;
}

/* footer */

footer {
    
    background: var(--black-bg);
    padding: 50px 0 0;
}

.footer-navigation__list li a, .footer__logo a {
    color: #fff;
    transition: all .3s;
}

.footer-navigation__list li a:hover, .footer__logo a:hover {
    color: var(--hover-color);
}

.footer-navigation__list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr repeat(4, 220px);
    gap: 30px;
    padding-bottom: 50px;
}

.footer__nav span {
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    display: block;
    position: relative;
    margin-bottom: 30px;
}

.footer__nav span::after {
    content: '';
    width: 60px;
    height: 1px;
    display: block;
    background: #8b8b8b;
    margin-top: 10px;
}

.footer__logo p {
    font-size: 14px; 
}

.footer__logo {
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 15px;
    color: #fff;
    width: 280px;
    height: auto;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    font-size: 14px;
    color: #fff;
    opacity: .8;
    text-align: center;
}

.modal:not(.fancybox-content) {
    display: none;
}

.thanks-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-contacts {
    padding-top: 50px;
}

.page-contacts h1 {
    text-align: center;
}

.page-contacts .cont-box h2 {
    display: none;
}

.text-page {
    padding: 50px 0;
}

.text-page h1{
    text-align: center;
    margin-bottom: 30px;
}

.text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.text-content h2 {
    padding-top: 20px;
    margin-bottom: 20px;
    font-size: 24px;
}

.text-content h3 {
    padding-top: 20px;
    margin-bottom: 20px;
    font-size: 19px;
}

.text-content ul,
.text-content ol {
    padding-left: 20px;
    margin-bottom: 25px; 
}

.text-content ul li {
    list-style: disc;
    margin-bottom: 10px; 
}

.text-content ol li {
    list-style: auto;
    margin-bottom: 10px; 
}

hr {
    margin: 30px 0px;
}

img.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.faq__items {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.faq__item {
    border: 1px solid #E6E6E6;
    border-radius: 10px;
}

.faq__item-answer {
    padding: 30px;
    font-size: 18px;
    line-height: 32px;
    display: none;
}

.faq__item-question {
    padding: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 20px; 
    transition: all .3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq__item-question.active { 
    border-bottom: 1px solid #E6E6E6;  
    color: var(--hover-color);
}
.faq__item-question:hover{  
    color: var(--hover-color);
}

.carret:after, .carret:before {
    background-color: var(--hover-color);
    content: '';
    position: absolute;
    top: 14px;
    width: 15px;
    height: 2px;
    transition: all .3s;
}

.carret:before { 
    transform: rotate(45deg);
    left: 3px;
}

.carret:after { 
    transform: rotate(-45deg);
    right: 3px;
}

.faq__item-question .carret { 
    width: 30px;
    height: 30px; 
    min-width: 30px;
    position:relative; 
}

.faq__item-question.active .carret:before {
    transform: rotate(-45deg); 
}

.faq__item-question.active  .carret:after { 
    transform: rotate(45deg); 
}

.text-content {
    font-size: 18px;
    padding-bottom: 50px;
}

blockquote {
    padding: 24px 24px 24px 60px;
    background: #ebebeb url(img/bq.svg) 24px 24px no-repeat;
    border-radius: 16px;
    color: #5F5F61;
    font-size: 18px;
    margin-bottom: 20px;
}

blockquote p:last-child {
    margin: 0;
}

label.error {
    color: red;
    position: absolute;
    left: 5px;
    bottom: -18px;
    font-size: 12px;
}

.social {
    position: fixed;
    bottom: 60px;
    right: 25px; 
    z-index: 99;
}

.social__list {  
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 0; 
    border-radius: 9999px;
}

.social__item-link > img {
    width: 35px;
    height: 35px; 
}

.social__item-link {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9358c;
}

.social__list-item:nth-child(2) a { 
    background:  #38649f;
}
.social__list-item:nth-child(3) a { 
    background:  #000;
}

.social__list-item:nth-child(4) a {
    background: #129533;
}

.footer__adress, .footer__phone, .footer__email, .footer__work {
    display: flex;
    align-items: center;
    column-gap: 6px;
}

.info-red {
    color: red;
    font-weight: 500;
}

.cont-note {
    padding-bottom: 50px;
    font-size: 20px;
}

.breadcrumbs .container .breadcrumbs-list {
    display: flex;
    column-gap: 10px;
    align-items: center;
    overflow: hidden;
}

.archive .breadcrumbs {
    padding-top: 26px;
}

.page-404-title {
    padding: 100px 0;
    font-size: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-info {
    max-width: 1320px; 
    margin: 0 auto;   
    background: #f3f3f3; 
    padding: 40px;    
    border-radius: 8px;
}


.home-info h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.home-info-box {
    max-height: 250px; 
    overflow-y: auto;
    padding-right: 10px; 
    line-height: 1.6;
}

.gold {

     color: #ff7504;
}


.banner {
    position: relative;
    overflow: hidden;
}

/* затемнение + виньетка */
.banner::before {
    content: "";
    position: absolute;
    inset: 0;

    /* мягкое затемнение + тёмные края */
    background:
        radial-gradient(
            ellipse at center,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0.55) 60%,
            rgba(0, 0, 0, 0.85) 100%
        );

    z-index: 1;
}

/* текст поверх затемнения */
.banner h1 {
    position: relative;
    z-index: 2;
}

/* Основная галерея */
.auto-main {
    width: 100%;
    height: 420px;
    margin-bottom: 15px;
}

.auto-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 одинаковый размер */
    border-radius: 12px;
}

/* Миниатюры */
.auto-thumb {
    height: 90px;
}

.auto-thumb .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
}

.auto-thumb .swiper-slide-thumb-active {
    opacity: 1;
}

.auto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Кнопки */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

/* ===================================
   АДАПТИВ — МОБИЛЬНЫЕ И ПЛАНШЕТЫ
=================================== */

/* ≤ 1200px — чуть уже контейнер */
@media (max-width: 1200px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ≤ 1024px — планшеты */
@media (max-width: 1024px) {
    .header-row {
        column-gap: 20px;
    }

    .header__phone a {
        font-size: 14px;
    }

    .banner h1 {
        font-size: 28px;
        padding: 0 20px;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .auto__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-num__items {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer__logo {
        width: auto;
        grid-column: span 2;
    }

    .cont-row {
        grid-template-columns: 1fr;
    }

    .maps iframe {
        width: 100%;
        height: 300px;
    }
}

/* ≤ 768px — маленькие планшеты и большие телефоны */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 8px 0;
    }

    .header__logo img {
        max-width: 40px;
    }

    .header__phone {
        margin-left: 0;
        margin-right: auto;
    }

    .header__phone a {
        font-size: 16px;
    }

    .header__lang {
        font-size: 14px;
    }

    .banner {
        height: 40vh;
    }

    .banner h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .form-home,
    .auto-home,
    .about-num,
    .cont-box {
        padding: 40px 0;
    }

    .form-home h2,
    .auto-home h2 {
        font-size: 24px;
    }

    .auto__items {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .auto__item-img {
        height: 200px;
    }

    .auto__item-title {
        font-size: 20px;
    }

    .auto__item-price {
        font-size: 22px;
    }

    .about-num-box {
        padding: 30px;
    }

    .home-info {
        padding: 30px 20px;
    }

    .home-info h2 {
        font-size: 22px;
    }

    .home-info-box {
        max-height: 350px;
        font-size: 16px;
    }
}

/* ≤ 480px — смартфоны */
@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .header-row {
        flex-wrap: wrap;
        row-gap: 10px;
        justify-content: center;
    }

    .header__logo {
        order: 1;
    }

    .header__phone {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .header__lang {
        order: 3;
    }

    .banner h1 {
        font-size: 20px;
        padding: 0 15px;
    }

    .form-home h2,
    .auto-home h2,
    .cont-box h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .btn {
        height: 48px;
        font-size: 16px;
    }

    .auto__item-teh,
    .auto__item-teh2 {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
        padding: 0 10px;
    }

    .auto__item-teh span,
    .auto__item-teh2 span {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__logo {
        grid-column: 1;
        align-items: center;
    }

    .footer__nav span {
        text-align: center;
    }

    .footer__nav span::after {
        margin: 10px auto 0;
    }

    .footer-navigation__list {
        align-items: center;
    }

    .cont-box h2 {
        font-size: 20px;
    }

    .contacts {
        font-size: 18px;
        text-align: center;
    }

    .maps iframe {
        height: 250px;
    }
}

/* ≤ 360px — очень маленькие экраны */
@media (max-width: 360px) {
    .banner h1 {
        font-size: 18px;
    }

    .auto__item-img {
        height: 180px;
    }

    .auto__item-title {
        font-size: 18px;
    }

    .auto__item-price {
        font-size: 20px;
    }
}

/* ===================================
   АДАПТИВНОЕ МЕНЮ В ШАПКЕ НА МОБИЛЬНЫХ
=================================== */

/* На экранах ≤ 768px — меню остаётся видимым, но становится прокручиваемым горизонтально */
@media (max-width: 768px) {
    .header-row {
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 10px;
        padding: 0 15px;
    }

    .header__logo {
        order: 1;
    }

    .header__phone {
        order: 2;
        margin-left: auto;
        margin-right: 0;
    }

    .header__lang {
        order: 3;
    }

    /* Меню — в отдельной строке, прокручивается горизонтально */
    .header__nav {
        order: 4;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
        padding: 8px 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE/Edge */
        align-items: center;
    }

    .header__nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .header__menu {
        display: flex;
        column-gap: 20px;
        padding: 0 15px;
        min-width: max-content; /* чтобы не сжималось */
    }

    .header__menu > li {
        padding: 0;
    }

    .header__menu a {
        font-size: 14px;
        white-space: nowrap;
    }
}

/* Для совсем узких экранов (≤ 480px) — чуть меньше шрифт и отступы */
@media (max-width: 480px) {
    .header__menu {
        column-gap: 15px;
    }

    .header__menu a {
        font-size: 13px;
    }

    .header__phone a {
        font-size: 15px;
    }
}

/* ===== HEADER NAV DESKTOP ===== */
nav {
    position: static;
    transform: none;
    background: transparent;
    height: auto;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.header__burger {
    margin-left: 20px;
    display: none;
}
.header__burger {
    width: 28px;
    height: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1100;
}

.header__burger span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Анимация крестика */
body.burger-active .header__burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

body.burger-active .header__burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
/* Контейнер формы */
.form-box {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 24px;
    background: #000;
    border-radius: 12px;
}

/* Общая сетка строк */
.form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

/* ===== DESKTOP ===== */
/* 4 колонки вместо 5 — визуально ровно */
.form-row-5 {
    grid-template-columns: repeat(4, 1fr);
}

/* Радиоблоки занимают всю строку */
.form-group-combined {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Убираем конфликт отступов */
.form-group {
    margin-bottom: 0;
}


.form-box .btn {
    background: linear-gradient(135deg, #f5b700, #ff8c00);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    height: 54px;
    border-radius: 8px;
    border: none;

    transition: all 0.25s ease;
    cursor: pointer;
}

.form-box .btn:hover {
    background: linear-gradient(135deg, #ffcc33, #ff9f1a);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 165, 0, 0.35);
}

/* Общий контейнер */
.form-box {
    max-width: 1200px;
    margin: 40px auto;
    padding: 48px 40px;
    background: #000;
    border-radius: 14px;
}

/* Сетка строк */
.form-row {
    display: grid;
    gap: 24px;
    margin-bottom: 28px;
}

/* 4 ровные колонки */
.form-row-5 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== ЯЧЕЙКА ===== */
.form-group {
    display: grid;
    grid-template-rows: 28px 54px; /* ⬅ фикс: label + field */
    gap: 6px;
}

/* ===== LABEL ===== */
.form__lable {
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
    line-height: 1.2;
    display: flex;
    align-items: flex-end; /* ⬅ выравниваем текст вниз */
}

/* ===== INPUT / SELECT ===== */
.form__field,
.form__select {
    height: 54px;
    padding: 0 14px;
    font-size: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* SELECT визуально как input */
.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

/* ===== RADIO BLOCKS ===== */
.form-group-combined {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.form-group-combined .form-group {
    grid-template-rows: 28px auto;
}

/* ===== CHECKBOX ===== */
.form-check {
    margin-top: 10px;
}

/* ===== BUTTON ===== */
.form-box .btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #f5b700, #ff8c00);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.form-box .btn:hover {
    box-shadow: 0 8px 22px rgba(255, 165, 0, 0.45);
    transform: translateY(-1px);
}