/* Подключение локального шрифта Kosolapa Script */
@font-face {
    font-family: 'Kosolapa Script';
    src: url('../fonts/Kosolapa Script/KosolapaScript-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5e6f0 0%, #f8edf3 100%);
    min-height: 100vh;
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
}

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(214, 51, 132, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-btn {
    /* background: linear-gradient(135deg, #00a046, #00c853); */
    background: #d63384;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn:hover {
    /* background: linear-gradient(135deg, #008a3d, #00b04a); */
    background: #b02a5b;
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(0, 160, 70, 0.3); */
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}

.header-btn-text {
    white-space: nowrap;
}

.header-avito-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-wrapper {
    background: linear-gradient(135deg, #f5e6f0 0%, #f8edf3 100%);
}

/* Основной блок: Альбом + О себе */
.main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
    align-items: start;
}

/* Альбом фото */
.album-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.album-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.15);
    border: 2px solid rgba(214, 51, 132, 0.1);
    z-index: -1;
}

.album-container h2 {
    color: #d63384;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.photo-album {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-stack {
    position: relative;
    width: 300px;
    height: 375px; /* 4:5 соотношение */
    margin-bottom: 15px;
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(214, 51, 132, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.stack-photo {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f8d7da, #f1c2cc);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.15);
}

.stack-1 {
    top: -8px;
    left: -8px;
    z-index: 3;
    transform: rotate(-2deg);
}

.stack-2 {
    top: -16px;
    left: -16px;
    z-index: 2;
    transform: rotate(-4deg);
}

.stack-3 {
    top: -24px;
    left: -24px;
    z-index: 1;
    transform: rotate(-6deg);
}

.photo-album:hover .main-photo {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(214, 51, 132, 0.3);
}

.photo-counter {
    background: rgba(214, 51, 132, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* О себе */
.about-container {
    position: relative;
}

.about-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.15);
    border: 2px solid rgba(214, 51, 132, 0.1);
    z-index: -1;
}

.about-container h2 {
    color: #d63384;
    font-size: 2rem;
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-content strong {
    color: #d63384;
    font-size: 1.2rem;
}

.about-list {
    list-style: none;
    margin-top: 25px;
}

.about-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    padding-left: 10px;
}

/* Популярные вкусы */
.flavors-section {
    margin: 60px 0;
    text-align: center;
}

.flavors-section h2 {
    color: #d63384;
    font-size: 2rem;
    margin-bottom: 40px;
}

.flavors-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.flavor-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(214, 51, 132, 0.1);
    transition: all 0.3s ease;
    text-align: left;
}

.flavor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(214, 51, 132, 0.2);
    border-color: rgba(214, 51, 132, 0.3);
}

.flavor-item h3 {
    color: #d63384;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.flavor-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Отзывы */
.reviews {
    margin: 80px 0;
    text-align: center;
}

.reviews h2 {
    color: #d63384;
    font-size: 2rem;
    margin-bottom: 40px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 5px;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    
    /* Запрет выделения и копирования */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Запрет контекстного меню */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    
    /* Запрет перетаскивания */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.review-card:hover::before {
    left: 100%;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 160, 70, 0.2);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Инициалы в аватаре */
.avatar-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #e94560 0%, #d63384 50%, #b02a5b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Kosolapa Script', cursive;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.3);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Статичные блёстки с анимацией мерцания */
.avatar-initial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.9) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.7) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.8) 1.2px, transparent 1.2px),
        radial-gradient(circle at 30% 80%, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.5) 0.8px, transparent 0.8px);
    background-size: 100% 100%;
    pointer-events: none;
    animation: sparkle 2s ease-in-out infinite;
}

/* Лучики света с анимацией */
.avatar-initial::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 15%;
    width: 10px;
    height: 10px;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.95) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255,255,255,0.95) 50%, transparent 60%);
    background-size: 100% 100%;
    pointer-events: none;
    animation: shine 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes shine {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.review-info {
    flex-grow: 1;
}

.review-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.review-rating {
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    gap: 1px;
    align-items: center;
}

.star-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    position: relative;
}

.star-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.star-filled::before {
    filter: invert(64%) sepia(88%) saturate(2083%) hue-rotate(13deg) brightness(104%) contrast(101%);
}

.star-empty::before {
    filter: invert(85%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(98%) contrast(89%);
}

.review-text {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    
    /* Дополнительная защита текста */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Запрет выделения курсором */
    cursor: default;
}

.reviews-source {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.reviews-source-text {
    color: #bbb;
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.3;
    text-align: center;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.reviews-source-text:hover {
    text-decoration: underline;
    color: #bbb;
    opacity: 0.8;
}

/* Призыв к действию */
.cta-section {
    margin: 100px 0;
    position: relative;
}

.cta-container {
    background: linear-gradient(135deg, #d63384 0%, #8B1538 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(214, 51, 132, 0.3);
}

.cta-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.cta-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-btn {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #00a046, #00c853);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 0;
    margin-bottom: 0;
    box-shadow: 0 15px 35px rgba(0, 160, 70, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

/* Блок с соцсетями под кнопкой Avito */
.cta-social-links {
    margin-bottom: 40px;
}

.cta-social-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.cta-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cta-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 1);
}

.cta-social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 160, 70, 0.5);
}

.cta-btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    position: relative;
    z-index: 2;
}

.cta-btn-text {
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.cta-btn-logo {
    background: white;
    padding: 6px 12px;
    border-radius: 25px;
    display: flex;
    align-items: center;
}

.cta-btn-logo img {
    height: 24px;
    width: auto;
}

.cta-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-btn:hover .cta-btn-shine {
    left: 100%;
}

.cta-divider {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin: 5px 0 5px 0;
    font-weight: 500;
}

.cta-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}

.cta-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 1);
}

.cta-social-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 600px;
    margin: 0 auto;
}

.cta-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-feature-icon {
    font-size: 1.2rem;
}

/* Дополнительные каналы связи */
.connect-section {
    margin: -20px 0 80px;
}

.connect-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 35px 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.15);
    border: 2px solid rgba(214, 51, 132, 0.1);
}

.connect-title {
    color: #d63384;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.connect-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.connect-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(214, 51, 132, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
}

.connect-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.15);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(214, 51, 132, 0.2);
}

.connect-item-icon {
    flex-shrink: 0;
}

.connect-icon-img {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.vk-icon {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(70, 128, 194, 0.25);
}

.connect-item:hover .vk-icon {
    box-shadow: 0 5px 15px rgba(70, 128, 194, 0.4);
    transform: scale(1.05);
}

.tg-icon {
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.25);
    padding: 2px;
    background: white;
}

.connect-item:hover .tg-icon {
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
    transform: scale(1.05);
}

.connect-item-content {
    flex-grow: 1;
    text-align: left;
}

.connect-item-title {
    color: #d63384;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.connect-item-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Футер */
footer {
    margin-top: 100px;
    padding: 50px 20px 20px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    color: #b0b0b0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: #b0b0b0;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-column p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
}

.footer-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #d0d0d0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin: 0;
}

/* Модальное окно галереи */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 11;
}

.close:hover {
    color: #d63384;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 600px;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-photo {
    position: absolute;
    max-width: 60%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Интерактивность боковых фото */
.left-photo:hover {
    transform: translateX(-100%) scale(0.9) !important;
    opacity: 0.8 !important;
}

.right-photo:hover {
    transform: translateX(100%) scale(0.9) !important;
    opacity: 0.8 !important;
}

.center-photo {
    cursor: default;
}

.left-photo,
.right-photo {
    cursor: pointer;
}

.gallery-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #d63384;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(214, 51, 132, 0.7);
}

/* Адаптивность */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 18px;
    }
    
    .main-section {
        gap: 50px;
    }
    
    .photo-stack {
        width: 280px;
        height: 350px;
    }
    
    .flavors-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
    
    .cta-container {
        padding: 50px 35px;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        gap: 35px;
    }
}

/* Мобильные устройства и маленькие планшеты */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .header-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .header-avito-logo {
        height: 18px;
    }
    
    .container {
        padding: 15px;
    }
    
    .main-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 40px 0;
    }
    
    .photo-stack {
        width: 250px;
        height: 312px;
    }
    
    .album-container h2,
    .about-container h2,
    .reviews h2,
    .approach-section h2,
    .flavors-section h2,
    .order-section h2 {
        font-size: 1.6rem;
    }
    
    .social h2 {
        font-size: 1.5rem;
    }
    
    .social-subtitle {
        font-size: 1rem;
    }
    
    .flavors-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .approach-list li {
        font-size: 1rem;
        padding: 12px;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 16px;
    }
    
    .review-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .review-avatar {
        width: 36px;
        height: 36px;
    }
    
    .reviews-source {
        padding: 12px;
        gap: 8px;
    }
    
    .avito-source-logo {
        height: 18px;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .social-btn {
        min-width: 200px;
        padding: 10px 18px;
    }
    
    .cta-container {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-btn-content {
        padding: 16px 30px;
        gap: 12px;
    }
    
    .cta-btn-text {
        font-size: 1.1rem;
    }
    
    .cta-btn-logo img {
        height: 20px;
    }
    
    .cta-features {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .cta-social-icons {
        gap: 20px;
    }
    
    .cta-social-icon {
        width: 55px;
        height: 55px;
    }
    
    .cta-social-icon img {
        width: 28px;
        height: 28px;
    }
    
    .connect-container {
        padding: 30px 25px;
        max-width: 500px;
    }
    
    .connect-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .connect-items {
        gap: 12px;
    }
    
    .connect-item {
        padding: 15px 18px;
    }
    
    .connect-icon-img {
        width: 44px;
        height: 44px;
    }
    
    .connect-item-title {
        font-size: 1rem;
    }
    
    .connect-item-desc {
        font-size: 0.85rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .avito-btn {
        padding: 18px 35px;
        font-size: 1.1rem;
        gap: 10px;
    }
    
    .avito-text {
        font-size: 1.1rem;
    }
    
    .avito-btn-logo {
        height: 28px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 12px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 12px;
    }
    
    .photo-stack {
        width: 200px;
        height: 250px;
    }
    
    .album-container::before {
        left: -15px;
        right: -15px;
    }
    
    .about-container::before {
        left: -10px;
        right: -10px;
        top: -15px;
        bottom: -15px;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .flavors-content {
        gap: 15px;
    }
    
    .flavor-item {
        padding: 20px;
    }
    
    .flavor-item h3 {
        font-size: 1.1rem;
    }
    
    .flavor-item p {
        font-size: 0.9rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .cta-container {
        padding: 30px 20px;
        margin: 60px 0;
    }
    
    .cta-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .cta-btn-content {
        padding: 14px 25px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .cta-btn-text {
        font-size: 1rem;
        white-space: normal;
    }
    
    .cta-btn-logo {
        align-self: center;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .cta-social-icons {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .cta-social-icon {
        width: 50px;
        height: 50px;
    }
    
    .cta-social-icon img {
        width: 26px;
        height: 26px;
    }
    
    .connect-container {
        padding: 25px 20px;
        margin: 0 5px;
    }
    
    .connect-title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }
    
    .connect-item {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .connect-icon-img {
        width: 40px;
        height: 40px;
    }
    
    .connect-item-title {
        font-size: 0.95rem;
    }
    
    .connect-item-desc {
        font-size: 0.8rem;
    }
    
    /* Галерея на очень маленьких экранах */
    .carousel-container {
        height: 50vh;
        max-height: 350px;
    }
    
    .carousel-photo {
        max-width: 90%;
    }
    
    .close {
        top: -35px;
        font-size: 28px;
    }
    
    .carousel-dots {
        gap: 6px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    /* Футер */
    footer {
        margin-top: 60px;
        padding: 40px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .footer-column p {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 25px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Дополнительные улучшения для средних экранов (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cta-features {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .photo-stack {
        width: 280px;
        height: 350px;
    }
}

/* Дополнительные улучшения для сенсорных устройств */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем области касания */
    .header-btn {
        min-height: 44px;
        padding: 12px 25px;
    }
    
    .cta-btn {
        min-height: 44px;
    }
    
    .connect-item {
        min-height: 60px;
    }
    
    .cta-social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .dot {
        min-width: 44px;
        min-height: 44px;
        border-radius: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
    
    .dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
    }
    
    .dot.active::before {
        background: #d63384;
        transform: scale(1.2);
    }
    
    .dot::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
    }
    
    .dot.active::before {
        background: #d63384;
        transform: scale(1.2);
    }
    
    /* Убираем hover эффекты на сенсорных устройствах */
    .photo-album:hover .main-photo,
    .flavor-item:hover,
    .review-card:hover,
    .connect-item:hover {
        transform: none;
        box-shadow: initial;
    }
    
    .left-photo:hover,
    .right-photo:hover {
        transform: translateX(-100%) scale(0.8) !important;
        opacity: 0.6 !important;
    }
    
    .right-photo:hover {
        transform: translateX(100%) scale(0.8) !important;
    }
}