/* Общие стили */
:root {
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --secondary-gradient: linear-gradient(135deg, #3B82F6 0%, #2DD4BF 100%);
    --primary-color: #6366F1;
    --secondary-color: #8B5CF6;
    --text-color: #1F2937;
    --light-text: #6B7280;
    --background: #F9FAFB;
    
    /* Шрифты */
    --heading-font: 'Rubik', sans-serif;
    --body-font: 'Manrope', sans-serif;
}
html, body {
    touch-action: pan-x pan-y; /* или touch-action: none; */
}
.mobile-menu-nav *{
    outline:none !important;
}

body.menu-opened{
    overflow: hidden;
}

.burger {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: none;
    background: none;
    display: none;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* Обновляем стили логотипа */
.logo h1 {
    margin: 0;
    font-size: 32px;
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.logo span {
    color: var(--light-text);
    font-size: 14px;
    font-family: var(--body-font);
    font-weight: 600;
}

/* Кнопки */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Шапка */
.main-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.cart-icon a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Слайдер */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
}

.slider-container {
    height: 100%;
    position: relative;
    padding-top: 31%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
}


.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: white;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}
body{
    padding-top: 104px;
}
.logo a{
    text-decoration: none !important;
    display: flex;
    align-items: center;
}
.logo a .img{
    width: 58px;
}
.logo a .img img{
    max-width: 100%;
}

.logo a .cont{
    padding-left: 16px;
}
.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

.slider-dots {
    display: flex;
    gap: 12px;
    align-self: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-arrow.prev {
    margin-right: 10px;
}

.slider-arrow.next {
    margin-left: 10px;
}

@media (max-width: 768px) {

    .slider-container{
        padding-top: 114%;
    }
    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .logo span{
        font-size: 10px;
    }
    .logo h1{
        text-align: left;
    }

}

/* Каталог */
.catalog-section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 40px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    padding-top: 100%;
}
.product-image>a{
    display: none;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-family: var(--heading-font);
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.product-info .price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.product-info .old-price {
    font-size: 18px;
    color: var(--light-text);
    text-decoration: line-through;
}

.product-info .new-price {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-color);
}

/* Форма обратной связи */
.contact-section {
    padding: 80px 0;
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.pepe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-pepe {
    position: absolute;
    width: 100px;
    height: auto;
    opacity: 0.2;
    filter: grayscale(40%);
    animation: floatingPepe 20s linear infinite;
}

@keyframes floatingPepe {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(calc(100vw - 150px), 150px) rotate(90deg);
    }
    50% {
        transform: translate(calc(100vw - 200px), calc(100% - 150px)) rotate(180deg);
    }
    75% {
        transform: translate(50px, calc(100% - 100px)) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info h2 {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* FAQ секция */
.contact-faq {
    padding: 80px 0;
    background: #F9FAFB;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-family: var(--body-font);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
}

.faq-icon {
    color: var(--light-text);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 24px;
    color: var(--light-text);
    line-height: 1.6;
}

/* Активное состояние */
.faq-item.active {
    background: linear-gradient(to right, #ffffff, #f8f9ff);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-faq {
        padding: 40px 0;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-question h3 {
        font-size: 14px;
        padding-right: 15px;

    }

    .faq-answer {
        padding: 0 20px;
    }
    .faq-answer p{
        font-size: 14px;
    }
    .products-grid{
        gap:20px;
        grid-template-columns: repeat(2, calc((100% - 20px) / 2));
    }
    .product-info{
        padding: 15px;
    }
    .product-card .product-info{
        gap: 10px;
    }
    .product-info h3{
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 0;
    }
    .product-info .new-price{
        font-size: 16px;
    }
    .product-info .old-price{
        font-size: 14px;
    }
    #quickViewModal .product-info .new-price{
        font-size: 22px;
    }
    #quickViewModal .product-info .old-price{
        font-size: 18px;
    }
    .product-info .price{
        margin: 0;
    }
    .btn-primary{
        padding: 8px 20px;
        font-weight: 600;
    }
    .product-info .btn-primary{
        font-size: 14px;
        transform: none;
    }
    .contact-section{
        padding: 40px 0;
    }
    .contact-info h2{
        font-size: 28px;
        text-align: center;
    }
    .contact-info p{
        text-align: center;
    }
    .contact-wrapper{
        gap: 25px;
    }
}

/* Блок преимуществ */
.preim-section {
    padding: 80px 0;
    background: var(--background);
    position: relative;
}

.preim-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 25%, 
        rgba(139, 92, 246, 0.1) 75%, 
        transparent 100%
    );
}

.preim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

.preim-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.preim-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.preim-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.preim-content {
    flex-grow: 1;
}

.preim-content h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-color);
}

.preim-content p {
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
}

.preim-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-description {
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.6;
    color: var(--light-text);
    margin-top: 16px;
}

.section-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .order-alert-success h3{
        font-weight: 600;
    }
    .burger{
        display: flex;

    }
    .preim-section {
        padding: 60px 0;
    }
    
    .preim-grid {
        gap: 20px;
    }
    
    .preim-item {
        padding: 16px;
    }
    .preim-content p{
        font-size: 12px;
    }
    
    .preim-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .preim-content h3 {
        font-size: 18px;
        margin-bottom: 2px;
        font-weight: 400;
    }
    
    .preim-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 16px;
    }
}

/* Футер */
.main-footer {
    background: #1F2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-col a{
    color:#fff;
    text-decoration: none !important;
}

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

.footer-col li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col i{
    color:#fff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-col .social-links{
    justify-content: left;
}
.social-links a {
    color: white;
    font-size: 24px;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
        gap: 20px;
    }
    nav.main-nav{
        display: none;
    }
    .logo a .img{
        width: 32px;
    }
    .logo h1{
        font-size: 22px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .slider-container .slide{
        background-image: url("/slideAdapt.jpg") !important;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col li {
        justify-content: center;
    }
    .header-content{
        padding: 10px 0;
    }
    body{
        padding-top: 74px;
    }
    .catalog-section{
        padding: 40px 0;
        padding-bottom: 0;
    }
    .product-card:hover{
        transform: unset;
    }
    .product-card .product-overlay{
        display: none;
    }
    .product-image>a{
        position: absolute;
        top:0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        display: block;
    }
    .footer-col .social-links{
        justify-content: center;
    }
}

main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* Стили для бургер-меню */


.burger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Анимация для крестика */
body.menu-opened .burger span:nth-child(1) {
    transform: rotate(45deg);
    width: 110%;
}

body.menu-opened .burger span:nth-child(2) {
    opacity: 0;
}

body.menu-opened .burger span:nth-child(3) {
    transform: rotate(-45deg);
    width: 110%;
}

/* Мобильное меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background-color: #fff;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Состояния при открытом меню */
body.menu-opened .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-opened .mobile-menu {
    right: 0;
}

/* Стили мобильного меню */
.mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px 0;
    padding-top: 59px;
}

/* Основное меню */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item i {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
}

.mobile-menu-item span {
    font-size: 16px;
    font-weight: 600;
}

/* Блок связи */
.mobile-menu-contact {
    padding: 20px;
    background: var(--background);
    margin-top: auto;
}

.mobile-menu-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link i {
    font-size: 20px;
}

.response-time {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
}

.response-time i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
}

.response-time span {
    color: var(--light-text);
}

