header {
    padding: 2.3611111111rem 0 !important;
} 

@media (max-width: 1199px) {
    header {
        padding: 5rem 0 !important;
    } 
}

section {
    padding: 0 0 3.125rem 0 !important;
}

.hero h1 {
    font-weight: 500;
    line-height: 112%;
    font-size: 24px;
    margin: 0;
}

.hero{
    height: 180px;
}

@media (min-width: 420px) {
    .hero h1 {
        font-weight: 500;
        line-height: 112%;
        font-size: 32px;
        margin: 0;
    }

    .hero{
        height: 280px;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-weight: 500;
        line-height: 112%;
        font-size: 48px;
        margin: 0 !important;
    }

    .hero{
        height: 380px;
    }
}


.agreement .container {
    padding-top: 50px;
}

.agreement .container p {
    font-size: 16px;
    line-height: 26.25px;
    color: #54646D;
    font-weight: 300;
}

.agreement .container * + p {
    margin-top: 30px;
}

@media(min-width: 767px) {
    .global.agreement .container {
        width: 80rem;
    }
}

@media(min-width: 1200px) {
    .global.agreement .container {
        width: 60rem;
    }
}

.agreement .container h4, .h4 {
    font-size: 18px;
    line-height: 1.36364;
    font-weight: 400;
}

.agreement .container * + h1, * + h2, * + h3, * + h4, * + h5, * + h6, * + .h1, * + .h2, * + .h3, * + .h4, * + .h5, * + .h6 {
    margin-top: 20px;
}

.agreement {
    .section-hero {
        position: relative;
    }

    .parallax-container {
        position: relative;
        overflow: hidden;
    }

    .section-hero .parallax-container {
        padding: 80px 0;
    }

    @media (min-width: 992px) {
        .section-hero .parallax-container {
            padding: 100px 0 120px;
        }
    }

    @media (min-width: 1200px) {
        .section-hero .parallax-container {
            padding: 120px 0 150px;
        }
    }

    .material-parallax {
        position: absolute;
        top: 0;
        left: -1px;
        right: -1px;
        bottom: 0;
        z-index: 0;
    }
}

/* Базовое */
html { scroll-behavior: smooth; }

/* HERO с параллаксом */
.hero{
  --overscan: 160px;          /* запас высоты для параллакса */
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;              /* центрирование контента */
  align-items: center;
  justify-content: center;
}

/* Параллакс-слой */
.hero__media{
  position:absolute;
  left:0; right:0;
  top: calc(-1 * var(--overscan));
  height: calc(380px + 2 * var(--overscan));
  z-index:0;
  will-change: transform;
  pointer-events:none;
  user-select:none;
}
.hero__media img{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -50%);
  width:auto;
  height:100%;
  min-width:100%;
  min-height:100%;
  object-fit: cover;
}
.herobg {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position:absolute;
    left:0; right:0;
    top: calc(-1 * var(--overscan));
    height: calc(380px + 2 * var(--overscan));
    z-index:0;
    will-change: transform;
    pointer-events:none;
    user-select:none;
}

/* Центральный контент */
.hero__inner{
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;   /* просто безопасный отступ */
}
.hero__title{
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: clamp(28px, 6vw, 72px);
  color: #fff;
  text-transform: uppercase;
}

/* Custom FAQ Accordion Styles */
.faq-accordion {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-header {
    margin: 0;
}

.faq-button {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-button:hover {
    background: #f8f9fa;
}

.faq-button.active {
    background: #EF9837;
    color: #fff;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 500;
    flex: 1;
    margin-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-button.active .faq-icon {
    transform: rotate(0deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.faq-content.active {
    max-height: 500px; /* Достаточно большое значение для контента */
}

.faq-body {
    padding: 10px;
}
.container.container-sm {
    max-width: 40rem;
}
.faq-body p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}
.comand-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 50px;
}
.comand-item-img {
    height: 230px;
    margin-bottom: 10px;
}
.comand-name {
    text-align: center;
    color: #EF9837;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 10px;
}
.comand-teg {
    text-align: center;
    color: #686767;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px; 
}
.comand-doljnost {
    text-align: center;
    color: #a8a8a8;
    font-weight: 500;
    font-size: 16px;
}
.global.agreement {
    padding-bottom: 0 !important;
}
.global.agreement .hero.parallax-container {
    padding-bottom: 15px !important;
}
.container.padd {
     padding-left: 0 !important; 
     padding-right: 0 !important; 
}
@media (max-width: 1200px) {
    .comand-row {

        grid-template-columns: 1fr 1fr 1fr 1fr;

    }
}
@media (max-width: 1000px) {
    .comand-row {

        grid-template-columns: 1fr 1fr 1fr;

    }
}
@media (max-width: 768px) {
    .faq-button {
        padding: 10px;
    }
    .comand-row {

        grid-template-columns: 1fr;

    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-body {
        padding: 10px;
    }
    .container.container-sm {
         max-width: 100%; 
    }
    .faq-icon {
        font-size: 16px;
    }
    .faq-body p {
        font-size: 14px;
    }
    .faq-item {
        margin-bottom: 14px;
    }
}
