@font-face {
    font-family: OpenSans;
    src: url('../fonts/OpenSans.ttf');
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #4ECDC4;
    --background-color: #F7F9FC;
    --card-background: #FFFFFF;
    --text-color: #2E2E2E;
    --warning-color: #FFD166;
    --border-color: #E0E0E0;
    --footer-bg: #FFFFFF;
    --footer-text: #2E2E2E;
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --light-gray: #F5F5F5;
    --gray-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: OpenSans;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
}

.btn--primary:hover {
    background-color: #e05a2b;
}

.btn--secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn--secondary:hover {
    background-color: #3db8b0;
}

.btn--white {
    background-color: white;
    color: var(--text-color);
}

.btn--white:hover {
    background-color: #f0f0f0;
}

.btn--full {
    width: 100%;
}

.btn--cart {
    background-color: var(--primary-color);
    color: white;
    gap: 8px;
    font-size: 14px;
}

.btn--cart > a {
    background-color: var(--primary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    color: white;
    gap: 8px;
    font-size: 14px;
}



.btn--cart:hover, .btn--cart > a:hover {
    background-color: #e05a2b;
}

.btn--registration {
    background-color: white;
    color: var(--primary-color);
}

.btn--registration:hover {
    background-color: #f8f8f8;
}

/* Шапка сайта */
.header {
    background-color: var(--card-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo__text{
    font-size: 40px;
    font-weight: 800;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link.active {
    color: var(--primary-color);
    position: relative;
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.search:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search__input {
    border: none;
    padding: 8px 12px;
    width: 200px;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.search__input::placeholder {
    color: var(--gray-text);
}

.search__btn {
    padding: 5px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: var(--background-color);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 30px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Подвал сайта */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer__brand {
    max-width: 420px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-logo__text{
    font-size: 30px;
    font-weight: 800;
}

.footer__description {
    font-size: 14px;
    color: var(--gray-text);
}

.footer__nav {
    display: flex;
    gap: 60px;
    max-width: 780px;
    width: 100%;
    justify-content: space-between;
}

.footer__title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    color: var(--gray-text);
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--primary-color);
}

.footer__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer__link:hover::after {
    width: 100%;
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background-color: var(--card-background);
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

.modal__tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal__tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    cursor: pointer;
}

.modal__tab--active {
    color: var(--primary-color);
}

.modal__tab--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.modal__form {
    display: none;
}

.modal__form--active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
}

.form-link {
    color: var(--gray-text);
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .logo__text{
        font-size: 24px;
    }
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--card-background);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 99;
        padding: 80px 20px 20px;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 15px;
    }
    
    .burger {
        display: flex;
        z-index: 100;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .footer__inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer__nav {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .search__input {
        width: 150px;
    }
    
    .actions {
        gap: 10px;
    }
    
    .footer__nav {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .search {
        display: none;
    }
    
    .modal__content {
        margin: 20px;
        padding: 20px;
    }
    .footer__link{
        font-size: 14px;
    }
}