body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #444;
    line-height: 1.6;
}

:root {
    --orange: #ff4a18;
    --text: #444;
    --text-light: #b7b7b7;
    --container-radius: 12px;
    --container-shadow: 0 0 20px 0 rgba(0, 0, 0, .2);
}

.container, .heroIcons {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Header */
.site-header {
    padding: 50px 0;
    background: #f9f9f9;
}

.header-top-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.secondary-nav ul {
    display: flex;
}

.secondary-nav li {
    margin-right: 15px;
}

.secondary-nav a {
    font-size: 0.9em;
    color: #555;
}

.header-phone {
    font-size: 1em;
    font-weight: bold;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-nav.navLeft,
.primary-nav.navRight {
    flex: 1;
}

.logo img {
    width: 75px;
}

.logo {
    flex-shrink: 0;
    margin: 0 15px;
}

.primary-nav ul {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.primary-nav.navRight ul {
    justify-content: space-around;
}

.primary-nav a {
    font-weight: 500;
    font-size: .9rem;
}

.button-primary, .button-secondary {
    padding: 18px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 500;
}

.button-primary {
    background-color: #ff4a18;
    color: #fff;
}

.button-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

/* Hero Section */
.hero {
    padding: 50px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.hero .container, .officesList .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 40px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.officesList .container {
    margin-bottom:70px;
}

.officesList .container:nth-of-type(even), .hangar.first .container {
    flex-direction: row-reverse;
}

.officesList .container:nth-of-type(even) .hero-image, .hangar.first .container .hero-image {
    justify-content: flex-start;
}

.hero-content {
    margin-bottom: 30px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

img.heroImageImg {
    max-width: 86%;
    margin: 40px 0;
    box-shadow: 0 0 28px -9px;
}

.officesList img.heroImageImg {
    transform: translateX(0);
}

.hero h1 {
    font-size: 2.5em;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--orange);
    text-transform: uppercase;
}

.hero-content h1 span {
    font-size: 1.2rem;
    display: block;
    font-weight: 100;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions button {
    margin: 0 10px;
}

.hero-stats {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.hero-stats div {
    margin: 0 20px;
    font-size: 1.2em;
}

.hero-stats span {
    font-size: 2em;
    font-weight: 100;
    color: var(--text-light);
}

.heroIcons {
    margin-top: 100px;
    text-align: left;
    position: relative;
}

.heroIcons h2, section h2 {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--orange);
    line-height: 3rem;
}

.heroIcons h2{
    margin-left: 0;
    margin-right: 0;
}

.heroIcons h2 span, section h2 span {
    color: var(--text);
    display: block;
}
.officesList h2 span, .gallery h2 span, .heroIcons h2 span, section h2 span {
    color: var(--text-light);
}

.heroIconsContainer {
    display: flex;
    justify-content: center;
    justify-items: start;
    align-content: space-evenly;
    gap: 35px;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1200px;
}

.heroIcon {
    box-shadow: var(--container-shadow);
    border-radius: var(--container-radius);
    padding: 25px;
    flex: 1 1 33%;
    max-width: calc(33.333% - 80px);
}

/* Hero Form Container */
#bg {
    display: none;
}

#bg.active {
    display: block;
    position: fixed;
    z-index: 101;
    inset: 0;
    background: rgba(255, 74, 24, 0.65);
    opacity: 1;
    transition: all .6s ease;
    cursor: pointer;
}
.hero-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: fixed;
    z-index: 102;
    align-items: center;
    top: 8vh;
    left: calc(50% - 220px);
    width: 380px;
    max-width: 90vw;
    height: 340px;
    max-height: 90vh;
    transform: translateY(-120%);
    opacity: 0;
    transition: all .6s ease;
}

.hero-form-container.active {
    transform: translateY(0);
    opacity: 1;
}

.hero-form-container-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 36px;
    height: 36px;
    border: none;
    border-top: solid 3px #444;
    transform: rotate(45deg);
    cursor: pointer;
}

.hero-form-container-close::after {
    content: '';
    width: 36px;
    height: 3px;
    border: none;
    border-bottom: solid 3px #444;
    transform: rotate(90deg);
    top: -4px;
    right: -1px;
    display: block;
    position: absolute;
}

.hero-form-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.hero-form-container p {
    margin-bottom: 20px;
    font-size: 0.9em;
}

.hero-form input[type="text"],
.hero-form input[type="tel"] {
    width: calc(100% - 22px); /* Учитываем padding и border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-label {
    display: block;
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: left;
}

.checkbox-label input {
    margin-right: 8px;
}

.hero-form .button-primary {
    width: 100%;
}

/* Responsive for hero */
@media (min-width: 768px) {
    .hero .container, .officesList .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .hero-content {
        flex-basis: 55%;
        margin-bottom: 0;
        margin: 0 0 40px 3vw;
    }
    .hero-form-container {
        flex-basis: 40%;
    }
    .hero-subtitle,
    .hero-actions,
    .hero-stats {
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }
    .hero-actions button:first-child {
        margin-left: 0;
    }
    .hero-stats div:first-child {
        margin-left: 0;
    }
}

/* Features Section */
.features {
    padding: 50px 0;
    text-align: center;
}

.features h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #222;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: left;
}

.feature-item h3 {
    font-size: 1.3em;
    color: #ff4a18;
    margin-top: 0;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

/* Office Showcase Section */
.office-showcase {
    padding: 50px 0;
}

.office-showcase h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #222;
    text-align: center;
    line-height: 1.3;
}

.office-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.office-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    text-align: center;
}

.office-card h3 {
    font-size: 1.4em;
    color: #ff4a18;
    margin-top: 0;
    margin-bottom: 10px;
}

.office-card p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}

.office-card .button-primary,
.office-card .button-secondary {
    width: auto;
    display: inline-block;
}

.office-showcase-cta {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.office-showcase-cta p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.inline-form input[type="text"],
.inline-form input[type="tel"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.inline-form .checkbox-label {
    display: block;
    text-align: left;
}

.inline-form button {
    width: 100%;
}

@media (min-width: 768px) {
    .inline-form {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
        justify-content: center;
    }

    .inline-form input[type="text"],
    .inline-form input[type="tel"] {
        width: auto;
        flex-grow: 1;
        margin-bottom: 0;
    }

    .inline-form .checkbox-label {
        width: 100%;
        order: 3;
        margin-top: 0;
        text-align: center;
    }

    .inline-form button {
        width: auto;
        flex-grow: 1;
        order: 2;
    }
}

/* Warehouse */
.hero h2 {
    margin-left: 0;
}

.hero-content h2 {
    width: 100%;
}

section.hero.warehouse {
    padding-top: 70px;
}

.warehouse, .hangar {
    padding-top: 30px;
}

h2.hangarTitle {
    margin-left: auto;
    text-align: left;
    font-size: 2rem;
}

/* Gallery Section */
.gallery {
    padding: 50px 0;
}

.gallery h2 {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    width: 100%;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 40px auto;
    overflow: hidden;
    box-shadow: 0 0 40px 12px rgba(0, 0, 0, 0.15);
    border-radius: var(--container-radius);
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    touch-action: pan-y;
}

.gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.gallery-slide img {
    width: 100%;
    display: block;
    height: auto;
    /* max-height: 650px; */
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 5 / 3;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 74, 24, 0.75);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.5em;
    z-index: 10;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

.gallery-cta {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.gallery-cta h3 {
    font-size: 1.6em;
    color: #222;
    margin-bottom: 15px;
}

.gallery-cta p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Contacts Section */
.hero.contacts p.hero-subtitle {
    margin-bottom: 10px;
    margin-top: 0;
}

.hero.contacts .hero-actions {
    margin-top: 25px;
}

#contacts .hero-image {
    flex-basis: 43%;
}

#contacts .container.yaMap {
    margin-top: 35px;
    box-shadow: none;
}

/* Footer */
footer {
    background-color: #333;
    color: #bbb;
    padding-top: 40px;
    font-size: 0.9em;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    text-align: left;
}

footer h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

footer p, footer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-menu ul {
    list-style: none;
    padding-left: 0;
}

/* Стили для contact-form-footer будут наследоваться от .inline-form */
.contact-form-footer input[type="text"],
.contact-form-footer input[type="tel"] {
    background-color: #444;
    color: #fff;
    border-color: #555;
}

.contact-form-footer input::placeholder {
    color: #aaa;
}

.contact-form-footer .checkbox-label {
    color: #ccc;
}

.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85em;
    color: #999;
}

.footer-bottom p {
    margin: 5px 0;
}
.burgerButton {
    display: none;
}
.mobileNav {
    opacity: 0;
    transition: all .6s ease;
    transform: translateX(-100vw);
    position: absolute;
    bottom: 0;
}

.burgerButton {
    width: 40px;
    height: 40px;
    border: none;
    border-top: solid 3px;
    position: relative;
    transform: translateY(30px);
}

.burgerButton::before {
    content: '';
    width: 30px;
    height: 3px;
    border: none;
    border-top: solid 3px;
    position: absolute;
    top: -15px;
}

.burgerButton::after {
    content: '';
    width: 30px;
    height: 3px;
    border: none;
    border-top: solid 3px;
    position: absolute;
    top: 10px;
}

nav.mobileNav.active {
    opacity: 1;
    position: fixed;
    inset: 0;
    background: var(--text);
    color: white;
    transform: translateX(0);
    transition: all .6s ease;
}

.mobileNav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    border-top: solid 3px white;
    transform: rotate(45deg);
}

.mobileNav-close::after {
    content: '';
    width: 50px;
    height: 50px;
    position: absolute;
    border: none;
    border-top: solid 3px white;
    transform: rotate(-90deg);
    top: -27px;
    left: 25px;
}

.mobileNav ul {
    margin: 4rem;
    font-size: 1.2rem;
}

.mobileNav ul li {
    margin-top: 1.8rem;
}

button.buttonSendForm {
    padding: 10px;
    background: var(--orange);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

/* sections galleries */
.hangar .hero-image, .officesList .hero-image, .warehouse .hero-image {
    width: 48%;
}

.hangar .gallery-slider-container, .officesList .gallery-slider-container, .warehouse .gallery-slider-container {
    margin: 2rem 0;
    border-radius: 0;
}

.hangar .gallery-slide img, .officesList .gallery-slide img, .warehouse .gallery-slide img {
    border-radius: 0;
}
/* EOF sections galleries */

.toTop {
    display: none;
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    cursor: pointer;
}

.toTop svg {
    width: 64px;
    height: 64px;
}

.privacyLink {
    text-decoration: underline;
}

.contactActions.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.yandexReviews {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.yandexReviews img {
    width: 100px;
}

.yandexReviewsText {
    font-size: .8rem;
}

.vkLink img {
    width: 50px;
}

@media (max-width: 768px) {
    .logo {
        margin: 0 auto;
    }
    nav.primary-nav {
        display: none;
    }
    .heroIcon {
        flex: 0 0 96%;
        max-width: 96%;
    }
    .hero-image {
        justify-content: center;
    }
    img.heroImageImg {
        transform: translateX(0);
        margin: 0 0 25px 0;
    }
    .hero-stats {
        justify-content: space-around;
    }
    .hero-stats div {
        margin: 0px 4px;
    }
    .hero-stats span {
        display: inline;
    }
    .mainHero .hero-stats span {
        display: block;
    }
    .hero h1 {
        line-height: 3rem;
        margin: 30px 0;
    }
    .hero-content h1 span {
        line-height: 2rem;
        margin: 20px 0;
    }
    .hero-content {
        padding: 15px;
    }
    .heroIcons h2::after {
        display: none;
    }
    .heroIconsContainer {
        width: 90%;
        margin: 0 auto;
    }
    p.hero-subtitle {
        text-align: left;
    }
    .hero-actions button {
        margin: 15px 0 0 0;
    }
    .officesList .container:nth-of-type(even), .hangar.first .container {
        flex-direction: column;
    }
    .officesList .container:nth-of-type(even) .hero-image, .hangar.first .container .hero-image {
        justify-content: center;
    }
    .officesList .container {
        margin-bottom: 30px;
    }
    .site-header {
        padding: 30px 0;
    }
    .burgerButton {
        display: block;
    }
    .header-main svg {
        width: 40px;
        height: 40px;
        transform: translateY(9px);
    }
    .hangar .hero-image, .officesList .hero-image, .warehouse .hero-image {
        width: 100%;
    }
    .contactActions.hero-actions {
        align-items: flex-end;
    }
    .contactActions.hero-actions button.button-primary {
        padding: 18px 16px;
    }
}

@media (min-width: 768px) {
    a.header-phone {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-form-container {
        height: 400px;
    }
    .hero-form-container {
        max-width: 70%;
        left: 8.5%;
        width: 70%;
    }
}
