/* Общие стили (можно настроить) */
body {
    margin: 0; /* Убираем стандартные отступы body */
    font-family: sans-serif;
    overflow-x: hidden
}

/* Контейнер Grid */

/* Элементы Grid */
.hero-test {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /*   8 колонок */
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr; /*  Определяем расположение в Grid */
    background: url(img/fon2.jpg) bottom center/cover no-repeat;
    height: 100vh;
    color: white;
    
}
.testtext1{ /*Customized*/
    grid-area: 3 / 1 / 3 / 8;
    padding-bottom: 40px;
    margin-left: 4%;
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    margin: 0 0 18px 0;
    
}
.testtext2{ /*Efficient, reliable margin-left: -11%;
    margin-top: 0.2%;*/
    grid-area: 4 / 1 / 3 / 8;
    align-self: end;
    
    margin-left: 4%
}
.button1{
    grid-area: 4 / 1 / 4 / 8;
    align-self: center;
    margin-left: 4%
}

.shading{
    grid-area: 1 / 1 / 4 / 12;
    overflow: hidden;
}
.logo{
    grid-area: 1 / 1 / 2 / 12;
    overflow: hidden;
}
.logo img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}


.main-test {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /*   8 колонок */
    grid-template-rows: 1% 1fr 1fr 1fr 1fr 1fr; /*  Определяем расположение в Grid */
    
    color: white;
}

.testtext3{ /*Our carriers*/
    grid-area: 4 / 3 / 3 / 9;
    justify-self: center;
    text-align: center;
    margin-top: 8%;
    color: #4D4343;
    place-items: center;
}
    
    
.Rectangle8 {
    grid-area: 2 / 2 / 2 / 11; /* Задайте правильные области */
    overflow: hidden;
    justify-content: center;
    margin-top: 5%;
    place-items: center;

}
.Rectangle9 {
    grid-area: 3 / 2 / 3 / 11; /* Задайте правильные области */
    overflow: hidden;
    place-items: center;
    margin-top: 12%; 
   
}
.Rectangle8 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.Rectangle9 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.testtext5 /*Customized*/{
    grid-area: 4 / 2 / 4 / 6;
    
    place-items: center;
    color: #4D4343;
}
.testtext6{ /*Customized*/
    grid-area: 4 / 2 / 4 / 6;
    justify-self: start;
    align-self: center;
    place-items: center;
    margin-top: -20%;
    color: #4D4343;
}
.photo5 {
    grid-area: 4 / 6 / 4 / 11; /* Задайте правильные области */
    overflow: hidden;
    place-items: center;
    margin-left: 5%;
    
}
.photo5 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.testtext7 /*Customized*/{
    grid-area: 5/ 3 / 5 / 10;
    place-items: center;
    text-align: center;
    color: #4D4343;
}

.cards-container {
    grid-area: 5 / 2 / 5 / 11;
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 4%;
    margin-top: 10%;
    position: relative; /* Для z-index контекста */
}

/* Стили карточки */
.image-swapi {
    position: relative;
    width: 100%;
    max-width: 415px;
    height: 400px;
    border-radius: 37px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


[class^="image-swapi"]:hover .image-caption,
[class^="image-swapi"]:hover .item2a {
    transform: translateY(-10px);
}

.image-swapi:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.image-main {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.image-swapi:hover .image-main {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 50px;
    left: 5%;
    right: 15%; /* Оставляем место для иконки */
    padding: 15px;
    color: #4D4343;
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 24px;
    border-bottom-left-radius: 37px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100% - 80px); /* 80px = ширина иконки + отступ */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-wrap: break-word; /* Современный аналог */
    hyphens: auto; /* Перенос слов с дефисами */
    pointer-events: none;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .image-caption {
        font-size: 20px; /* Уменьшаем размер текста */
        right: 25%; /* Больше места для иконки */
        max-width: calc(100% - 100px);
        line-height: 1.3; /* Улучшаем читаемость */
    }
    
    .item2a {
        width: 30px; /* Уменьшаем иконку */
        height: 30px;
        bottom: 40px;
        right: 20px;
    }
}

.item2a {
    position: absolute;
    bottom: 50px;
    right: 20px;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.image-swapi:hover .item2a {
    transform: translateY(-15px) scale(1.1);
}
.card-static-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.static-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    
}

.photo6{
    grid-area: 6 / 7 / 6 / 12; /* Задайте правильные области */
    overflow: hidden;
    margin-right: 10%;
    
    justify-self: start;
    align-self: start;
    place-items: center;
    
    
}
.photo6 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.form-container {
    position: relative;
    grid-area: 6 / 2 / 8 / 7; /* Настройте по своей сетке */
}

.testtext8 {
    position: relative;
    z-index: 1;
    color: #4D4343;
    
}

.testtext8 img {
    width: 80%;
    margin-top: 5%;
    display: block;
}
.form-overlay {
    position: absolute;
    top: 33%;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 50px 50px 100px;
    gap: 27px;
    z-index: 2;
    padding: 20px; /* Регулируйте отступы */
}
.input-field {
    grid-column: 1 / 4;
    grid-row: 1;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border: none;         /* Убирает границу */
    outline: none; 
}

.input-field:nth-of-type(2) {
    grid-column:1 / 4;
    grid-row: 2;
}

.input-field3 {
    grid-column: 1 / 4;
    grid-row: 3;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    border: none;         /* Убирает границу */
    outline: none; 
}
@media (max-width: 1478px) {
  .testtext8 {
    font-size: 0.8em;           /* Увеличение размера шрифта */
    margin-bottom: 20px;       /* Дополнительный отступ снизу */
  }
}
.testareat{
    grid-area: 7 / 2 / 8 / 6;
    justify-self: center;
    place-items: center;
    color: #4D4343;
    z-index: 4;
}
.Rectangle22{
    grid-area: 6 / 2 / 8 / 6; /* Задайте правильные области */
    overflow: hidden;
    justify-self: start;
    align-self: end;
    place-items: center;
    margin-bottom: 5%;
    z-index: 2;
}

@media (min-width: 768px) {
    .test-grid {
        grid-template-columns: 250px 1fr; /* Две колонки на широких экранах */
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "header header"
            "main main";

    }
}

.main-test2{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; /*   8 колонок */
    grid-template-rows: 1% 0.8fr 1fr 0.8fr 0.5fr 1fr; /*  Определяем расположение в Grid */
    
    color: rgb(255, 255, 255);
}
.Rectangle11{
    place-items: center;
    grid-area: 2 / 2 / 6 / 11;
}
.Rectangle11 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.Rectangle12{
    place-items: center;
    grid-area: 3 / 2 / 3 / 11;
    margin-bottom: 10%
}
.Rectangle12 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.Rectangle13{
    grid-area: 4 / 2 / 5 / 11;
    
}
.Rectangle13 img { /*  Применяем стили к тегу <img> внутри .logo */
    max-width: 100%; /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.bottomindex3{
    grid-area: 4 / 7 / 5 / 11;
    align-self: end;
    margin-bottom: 32%;
    margin-left: 5%;
}

.container2 {
    grid-area: 5 / 6 / 5 / 12;
    position: relative;
    margin-left: 5%;
    min-height: 500px;
}

.photo8 {
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 1;
}

.photo8 img {
    width: 80%;
    margin-top: 5%;
    display: block;
}

.form-content2 {
    position: relative;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 55px  0.2fr 0.2fr 0.2fr 0.2fr 100px ; /* 6 колонок как в примере */
    grid-template-rows: 0.45fr 0.25fr 0.5fr 0.2fr;   
    padding: 20px;
}

.input1{
    grid-area: 1 / 2 / 2 / 3;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: 62%;
    margin-left: 8%;
}

/*1.25ПИКСЕЛЯ*/
@media (min-resolution: 120dpi) {
  .input1 {
    grid-area: 1 / 2 / 2 / 3;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: 23%;
    margin-left: 0%;
  }
}
.input2{
    grid-area: 1 / 4 / 2 /7;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: 29%;
    margin-left: 9%;
}
@media (min-resolution: 120dpi) {
    .input2{
    grid-area: 1 / 4 / 2 /7;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: 16%;
    margin-left: -3%;
}
}
.input3{
    grid-area: 2 / 2 / 2 / 5;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px; 
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: 8%;
    margin-left: 3%;
}
@media (min-resolution: 120dpi) {
    .input3{
    grid-area: 2 / 2 / 2 / 5;
    font-family: 'Sarabun', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px; 
    background-color: transparent;
    border: none;
    outline: none;         
    box-shadow: none; 
    margin-top: -3%;
    margin-left: 0%;
}
}
.bottom44 {
    grid-area: 1 / 2 / 5 / 6;
    align-self: center;
    margin-top: 18%;
}

/*1.25ПИКСЕЛЯ*/
@media (min-resolution: 120dpi) {
  .bottom44 {
    grid-area: 1 / 2 / 5 / 6;
    align-self: center;
    margin-left: -4%;
    margin-top: 0%;
  }
}

.testtext9{
    grid-area: 5 / 2 / 5 / 6;
    color: #4D4343;
}
.bottom4{
    margin-top: 3%;
    place-items: center;
    margin-left: 0%;
}
.car3{
    grid-area: 5 / 2 / 5 / 6;
    justify-self: end;
    align-self: center;
    margin-top: 14%;
}
.main-end{
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 1fr 1fr 0.6fr 1fr 1fr 1fr 1fr 0.5fr; /*   8 колонок */
    grid-template-rows: 8% 1fr 1fr 1fr 10%;/*  Определяем расположение в Grid */
    background-color: #4D4343;
}
.testtext10{
    grid-area: 2 / 2 / 4 / 6;
    color:#ffffff;
    
}
.cccs{
    color: #ECA351;
}
.testtext11{
    grid-area: 2 / 7 / 4 / 11;
    
    color:#ffffff;
    
}
.testtext12{
    grid-area: 4 / 7 / 4 / 11;
    color:#ffffff;
    align-self: center;
    line-height: 25px;
    z-index: 10;
}
.testtext13{
    grid-area: 4 / 9 / 4 / 11;
    color:#ffffff;
    align-self: center;
    line-height: 25px;
    z-index: 10;
}
.Rectangle23{
    
    z-index: 4;
    grid-area: 4 / 2 / 5 / 12;
}
.Rectangle23 img { /*  Применяем стили к тегу <img> внутри .logo */
   /*  Изображение не может быть шире, чем .logo */
    height: auto;    /*  Сохраняет пропорции */
    display: block; /* Убирает небольшое пространство снизу, которое иногда появляется у изображений */
}
.bottom15{
    grid-area: 3 / 2 / 4 / 8;
}
.swaper-wrapper {
    grid-area: 3 / 7 / 4 / 8;
    justify-self: center;
    margin-left: -22%;
    margin-top: 10%;
}
.swaper-link {
    position: absolute;
    transform: translate(-50%, -50%);
    display: block;
    z-index: 59;
    text-decoration: none;
}

.swaper {
    transition: all 0.3s ease;
    display: block;
    width: auto; /* Укажите нужный размер */
    height: auto;
    filter: none;
}

/* Эффекты при наведении */
.swaper:hover {
    filter: url(#orangeFilter);
    cursor: pointer;
    transform: scale(1.1); /* Опциональная анимация */
}
   















/* Заголовки */
h1 {
    font-family: 'Sarabun', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 70px;
    margin: 0 0 20px 0;
}

h2 {
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    margin: 0 0 18px 0;
}

h3 {
    font-weight: 700;
    font-size: 36px;
    line-height: 45px;
    margin: 0 0 16px 0;
}

h4 {
    font-weight: 700;
    font-size: 24px;
    line-height: 34px;
    margin: 0 0 14px 0;
}

h5 {
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    margin: 0 0 12px 0;
}

/* Кнопки */
.buttons {
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: normal;
}

/* Параграфы (если нужно отдельный класс) */
.p1 {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

/* Или для всех параграфов */
p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 10px 0;
}