* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

@font-face {
    font-family: "forNumber";
    src: url("SN Pro/SNPro-ExtraBoldItalic.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "forText";
    src: url("SN Pro/SNPro-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

[id] {
    scroll-margin-top: 70px; /* Высота шапки + желаемый запас */
}

.hero {
    width: 100%;
    min-height: 150px;
    padding: 15px 30px;

    background-color: #FDF5E6;

    display: grid;
    grid-template-columns: minmax(220px, 400px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 25px;
}

.logo {
    display: block;

    width: 100%;
    max-width: 400px;
    height: auto;

    object-fit: contain;
}

.firstThree {
    font-family: "forNumber", Arial, sans-serif;
    font-size: 18px;
    color: gray;
    text-decoration: none;
}

.lastSeven {
    font-family: "forNumber", Arial, sans-serif;
    font-size: 38px;
    color: black;
    text-decoration: none;
}

.contact{
    
    text-align: right;
    flex-direction: column;
    font-family: "forText";
    font-size: 24px;
    color: black;

    a{
        color: #000;
        text-decoration: none;
    }

    :hover{
        color: #717171;
    }
}

.otclick {
    padding: 8px 16px;

    background-color: rgb(221, 221, 221);
    border: none;
    border-radius: 15px;

    font-family: "forText", Arial, sans-serif;
    font-size: 24px;
    color: black;

    cursor: pointer;
}


.menu-overlay{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1001;
}

.menu-overlay.open{
    display: flex;
}

.menu-content{

    background: white;
    width: 40vw;
    height: 35vw;
    min-width: 400px;
    min-height: 560px;
    max-height: 560px;
    padding: 30px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;

    p{
        padding: 10px;
        font-family: "forText";
        font-size: 32px;
        font-weight: 800;
        margin-top: 10px;
        margin-bottom: 25px;
        color: #000;
    }

    .input{
        position: relative;
        margin-bottom: 20px;
    }

    .input input{
        width: 100%;
        padding: 18px 20px;
        font-size: 16px;
        border: 1px solid #f0f2f5;
        background-color: #f8fafc;
        border-radius: 12px;
        box-sizing: border-box;
        color: #333;
        outline: none;
        transition: border-color 0.2s;
    }

    .agreement-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-family: "forText";
        color: #4a5568;
        cursor: pointer;
        margin-bottom: 30px;
        user-select: none;
        text-decoration: none;
    }

    .agreement-label input {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .submit-btn {
        display: block;
        width: 50%; 
        margin: 0 auto; 
        background-color: #C38E5F; 
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
        padding: 14px 0;
        border: none;
        border-radius: 25px; 
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .submit-btn:hover {
        background-color: #a7764b; 
    }

    .submit-btn:disabled {
        background-color: #a0aec0; 
        cursor: not-allowed; 
        opacity: 0.7;
    }
}

.close-overlay{
    top: 15px;
    background: none;
    border: none;   
    font-size: 24px;
    font-family: "forText";
    cursor: pointer;
    display: block;
    margin-right: auto;
}


.navigator {
    width: 100%;

    background-color: rgb(221, 221, 221);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.navig {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 40px;

    padding: 5px 20px;
}

.navig a {
    color: black;
    text-decoration: none;

    padding: 12px 20px;

    font-family: "forText", Arial, sans-serif;
    font-size: 22px;

    transition: 0.2s;
}

.navig a:hover {
    color: #FDF5E6;
}


.about {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 60px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.text {
    background-color: #FDF5E6;
    flex: 0 0 40%;
    max-width: none;
    min-width: 0;

    padding: 30px;

    border: 2px solid #000;
    border-radius: 30px;

    font-family: "forText", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
}

.text p {
    margin-top: 0;
    font-size: 22px;
}

.text ul {
    margin: 20px 0 0;
    padding-left: 25px;
}

.text li {
    margin-bottom: 10px;
}

.photo {
    flex: 1;
    min-width: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.photo img {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;

    border-radius: 20px;
}

.galary {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 40px 15px 60px;

    overflow: hidden;
}

.galary h2 {
    margin: 0 0 25px;

    font-family: "forText", Arial, sans-serif;
    font-size: 32px;
    text-align: center;
}

.photos {
    display: flex;
    gap: 30px;

    width: 100%;
    height: auto;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0 0 15px;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.photos .goriz {
    display: block;

    flex: 0 0 420px;
    width: 520px;
    height: 380px;

    object-fit: cover;
    border-radius: 15px;

    scroll-snap-align: start;
}

.photos .vert {
    display: block;

    flex: 0 0 auto;
    height: 380px;      /* Высота будет уменьшаться пропорционально ширине */
    width: auto;       /* Ширина будет уменьшаться пропорционально высоте */


    object-fit: contain;
    border-radius: 15px;

    scroll-snap-align: start;
}


.osob h3{
    font-family: "forText";
    font-size: 36px;
    margin: 0 0 10px 40px;
    text-align: center;
}

.ryad{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
}

.card{
    border: 2px solid black;
    background-color: #FDF5E6;
    border-radius: 15px;
    padding: 20px;
    width: 290px;
    height: 200px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title{
    font-size: 24px;
    margin: 0 0 10px 0;
    font-family: "forText";
}

.card-desc{
    font-size: 18px;
    font-family: "forText";
    margin: 0;
    color: black;
}


.haract {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 60px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.haract h4{
    font-family: "forText";
    font-size: 36px;
    margin: 15px 0 20px 0;
    text-align: center;
}

.textHaract ul{
    background-color: #FDF5E6;
    flex: 0 0 40%;
    max-width: none;
    min-width: 0;

    padding: 40px;
    margin: 0 0 0 20px;

    border: 2px solid #000;
    border-radius: 30px;

    font-family: "forText", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
}

.photoHaract {
    flex: 1.2;
    min-width: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.photoHaract img {
    display: block;

    width: 100%;
    max-width: 1100px;
    height: auto;

    border-radius: 20px;
}


.plusi h5{
    font-family: "forText";
    font-size: 36px;
    margin: 0 0 10px 40px;
    text-align: center;
}

.ryadPlusov{
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
}

.plus{
    border: 2px solid black;
    background-color: #FDF5E6;
    border-radius: 15px;
    padding: 20px;
    width: 310px;
    height: 240px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    font-family: "forText";
}

.plus a{
    font-size: 24px;
    margin: 0 0 10px 0;
}

.plus p{
    font-size: 18px;
    margin: 0;
    color: black;
}


.footer {
    background-color: rgb(45, 45, 45);
    width: 100%;
    box-sizing: border-box;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Линейный ряд: логотип -> почта -> телефон -> кнопка */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Позволяет элементам красиво переноситься, если экран слишком узкий */
    gap: 100px;
    width: 100%;
}

.footer-logo img {
    display: block;
    max-width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
}

.footer-contact {
    font-family: "forText", Arial, sans-serif;
    font-size: 20px;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap; /* Чтобы телефон и почта не разрывались на две строчки */
}

.footer-contact:hover {
    color: #717171;
}

/* Стили для кнопки внутри футера */
.footer-top .otclick {
    padding: 10px 24px;
    background-color: rgb(221, 221, 221);
    border: none;
    border-radius: 15px;
    font-family: "forText", Arial, sans-serif;
    font-size: 18px;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
}

.footer-top .otclick:hover {
    background-color: #717171;
    color: white;
}

/* Линия растягивается на 100% ширины контента */
.footer-line {
    width: 100%;
    height: 1px;
    background-color: rgb(221, 221, 221);
    margin: 5px 0;
}

/* Низ футера: распределение по краям */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.footer-rights {
    color: white;
    font-family: "forText", Arial, sans-serif;
    font-size: 16px;
}

.footer-up {
    font-family: "forText", Arial, sans-serif;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-up:hover {
    color: #717171;
}


@media (max-width: 1100px) {

    .hero {
        display: flex;
        flex-direction: column;
        align-items: center;

        gap: 18px;
        padding: 20px;
    }

    .logo {
        width: 300px;
        max-width: 100%;
    }

    .mailContact {
        max-width: 100%;
    }

    .mailText {
        font-size: 21px;
    }

    .phoneBlock {
        align-items: center;
    }

    .lastSeven {
        font-size: 34px;
    }

    .otclick {
        font-size: 20px;
    }

    .navig {
        gap: 10px;
        padding: 5px 10px;

        flex-wrap: wrap;
    }

    .navig a {
        padding: 10px 12px;
        font-size: 16px;
    }


    .about {
        flex-direction: column;

        padding: 50px 20px;

        gap: 40px;
    }

    .text {
        width: 100%;
        max-width: 700px;
    }

    .photo {
        width: 100%;
    }

    .photo img {
        max-width: 600px;
    }

    .photos .goriz {
        flex: 0 0 420px;
        width: 520px;
        height: 380px;
    }

    .photos .vert {
        flex: 0 0 auto;
        height: 380px;
        width: auto;
    }


    .haract{
        flex-direction: column;
    }

    .haract img{
        max-width: 600px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start; /* Выравнивание элементов по левому краю */
        gap: 20px;
    }

    .footer-top .otclick {
        width: 100%;
        max-width: 280px; /* Чтобы кнопка на мобильном не была гигантской */
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column-reverse; /* На мобильных кнопка "Наверх" будет над копирайтом */
        align-items: flex-start;
        gap: 15px;
    }

    .footer-image {
        width: 100%;
    }

    .footer-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-content {
        align-items: center;
        text-align: center;
    }

    .footer-link {
        font-size: 18px;
    }

    .lineFooter{
        margin: 0 auto;    
    }

    .rights{
        text-align: center;
    }
}

@media (max-width: 480px) {

    .hero {
        gap: 15px;
        padding: 15px 12px;
    }

    .logo {
        width: 240px;
    }

    .mailText {
        font-size: 16px;
    }

    .mailLogo {
        width: 16px;
        height: 16px;
    }

    .phoneContact {
        gap: 5px;
    }

    .phone {
        width: 15px;
        height: 15px;
    }

    .firstThree {
        font-size: 15px;
    }

    .lastSeven {
        font-size: 28px;
    }

    .otclick {
        width: 100%;
        max-width: 280px;
        font-size: 17px;
    }

    .navig {
        gap: 0;
        padding: 5px;
        flex-wrap: wrap;
    }

    .navig a {
        padding: 8px 10px;
        font-size: 14px;
    }

    .about {
        padding: 35px 15px;
        gap: 30px;
    }

    .text {
        padding: 20px;
        font-size: 16px;
        line-height: 1.5;
        border-radius: 20px;
    }

    .text ul {
        padding-left: 20px;
    }

    .text li {
        margin-bottom: 8px;
    }

    .photo img {
        max-width: 100%;
    }

    .galary {
        padding: 30px 15px 40px;
    }

    .galary h2 {
        font-size: 22px;
    }

    .photos {
        gap: 12px;
    }

    .photos .goriz {
        flex: 0 0 300px;
        width: 300px;
        height: 220px;
    }

    .photos .vert {
        flex: 0 0 auto;
        height: 220px;
        width: auto;
    }

    
    .haract{
        flex-direction: column;
    }

    .haract img{
        max-width: 600px;
    }
    
    .osob h3 {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 0 10px;
        text-align: center;
    }

    /* Блок технических характеристик */
    .haract {
        width: 100%;
        padding: 35px 15px;
        gap: 25px;
    }

    .textHaract {
        width: 100%;
        min-width: 0;
    }

    .haract h4 {
        width: 100%;
        margin: 0 0 20px 0;
        text-align: center;
    }

    .textHaract ul {
        width: 100%;
        margin: 0;
        padding: 20px;
        overflow-wrap: anywhere;
    }

    .photoHaract {
        width: 100%;
    }

    .photoHaract img {
        width: 100%;
        max-width: 100%;
    }

    /* Заголовок «Преимущества клюшки АРКТИОН» */
    .plusi h5 {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 0 10px;
        text-align: center;
    }


}
