/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Предотвращаем переполнение на всех устройствах */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Глобальные стили для текста */
h1, h2, h3, h4, h5, h6, p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Глобальные стили для всех секций */
.hero, .about, .widgets, .video, .download, .footer {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    box-sizing: border-box;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #FFD700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #3a3a3a 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    padding-top: 80px; /* Отступ от фиксированного хедера */
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-icon {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-title-sub {
    display: block;
    font-size: 1.5rem;
    color: #cccccc;
    font-weight: 400;
}

/* Hero Quick Links */
.hero-quick-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.quick-link:hover::before {
    left: 100%;
}

.quick-link:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.quick-link:hover .quick-link-icon {
    transform: scale(1.2);
}

.quick-link-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Специальные цвета для разных кнопок */
.quick-link.chrome-store:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.2);
}

.quick-link.telegram-bot:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.2);
}

.quick-link.vk-group:hover {
    border-color: #4c75a3;
    background: rgba(76, 117, 163, 0.1);
    box-shadow: 0 10px 25px rgba(76, 117, 163, 0.2);
}

/* Browser Compatibility */
.browser-compatibility {
    margin: 1.5rem 0;
    padding: 0;
}

/* Browser Compatibility в download-option */
.download-option .browser-compatibility {
    margin: 1rem 0;
}

.download-option .yandex-notice {
    margin: 1rem 0;
    max-width: 100%;
}

.compatibility-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.compatibility-message.supported {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.compatibility-message.not-supported {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.compatibility-message.checking {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.compatibility-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.compatibility-message.supported .compatibility-icon {
    animation: none;
}

.compatibility-message.not-supported .compatibility-icon {
    animation: none;
}

.compatibility-text {
    font-size: 1rem;
    text-align: center;
}

/* Yandex Browser Notice */
.yandex-notice {
    margin: 1.5rem 0;
    padding: 0;
    animation: slideIn 0.5s ease-out;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.notice-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notice-text h4 {
    color: #FFD700;
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.notice-text p {
    color: #cccccc;
    margin: 0 0 0.8rem 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.notice-details {
    margin-top: 1rem;
}

.notice-details summary {
    color: #FFD700;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    outline: none;
}

.notice-details summary:hover {
    color: #FFA500;
}

.notice-details[open] summary {
    margin-bottom: 1rem;
}

.notice-details ol {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.notice-details li {
    margin: 0.3rem 0;
    line-height: 1.3;
    padding-left: 0.2rem;
}

.notice-why {
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #FFD700;
    padding: 0.8rem;
    margin-top: 0.8rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.notice-why strong {
    color: #FFD700;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.hero-description {
    word-break: auto-phrase;
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    text-align: center;
    font-weight: 400;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}


.hero-description::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #2c2c2c;
    width: 100%;
    max-width: 100vw;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* Widgets Section */
.widgets {
    padding: 5rem 0 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    width: 100%;
    max-width: 100vw;
}

.widgets-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.widgets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%; /* Убеждаемся, что есть ширина */
    opacity: 1; /* Убеждаемся, что видимый */
}

.widget-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 100%);
    padding: 1.2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 1; /* Убеждаемся, что карточки видимы */
    display: block; /* Убеждаемся, что отображаются */
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.widget-card:hover::before {
    transform: scaleX(1);
}

.widget-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
}

.widget-card.active {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.widget-card.active::before {
    transform: scaleX(1);
}

.widget-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.widget-title {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.widget-description {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
}

.widget-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.widget-feature {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.widget-feature-dev {
    background: rgb(255 255 255 / 10%);
    color: #fbfbfb;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Widget Details */
.widget-details {
    position: relative;
    min-height: 600px;
}

.widget-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateX(20px);
    pointer-events: none;
    z-index: 1;
}

.widget-detail.active,
.widget-detail.hover-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}

.widget-detail h3 {
    color: #FFD700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.detail-description {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.detail-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.detail-feature h4 {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.detail-feature p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Widget Gallery */
.widget-gallery {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.gallery-container {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-image:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gallery-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.gallery-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
}

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

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

.dot:hover {
    background: rgba(255, 215, 0, 0.6);
}

/* Video Section */
.video {
    padding: 5rem 0;
    background: #2c2c2c;
    width: 100%;
    max-width: 100vw;
}

/* Стили для ссылок в тексте */
.video-description a,
.about-text a,
p a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 2px solid transparent;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
}

.video-description a:hover,
.about-text a:hover,
p a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-bottom-color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    -webkit-text-fill-color: #FFD700;
}

.video-description a::after,
.about-text a::after,
p a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.video-description a:hover::after,
.about-text a:hover::after,
p a:hover::after {
    width: 100%;
}

.video-content {
    text-align: center;
}

.video-description {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.video-description p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-placeholder {
    background: linear-gradient(135deg, #3a3a3a 0%, #2c2c2c 100%);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 4rem 2rem;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #3a3a3a 0%, #2c2c2c 100%);
}

.video-placeholder-content {
    text-align: center;
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-note {
    color: #999999;
    font-size: 0.9rem;
    font-style: italic;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: #1a1a1a;
    width: 100%;
    max-width: 100vw;
}

.download-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.download-options {
    display: grid;
    gap: 2rem;
}

.download-option {
    background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.download-option:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.download-option h3 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.download-option p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-note {
    color: #999999;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.download-steps {
    background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.download-steps h3 {
    color: #FFD700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.steps-list {
    color: #cccccc;
    padding-left: 1.5rem;
    line-height: 2;
}

.steps-list li {
    margin-bottom: 0.5rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #FFD700;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #FFA500;
    transform: scale(1.1);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    border-color: #FFD700;
    transform: scale(1.1);
}

.modal-prev {
    left: -80px;
}

.modal-next {
    right: -80px;
}

.modal-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(26, 26, 26, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Для широких, но низких экранов (например 1600x600) */
@media (max-height: 700px) and (min-width: 1200px) {
    .hero {
        padding-top: 60px;
        min-height: 90vh; /* Уменьшаем минимальную высоту */
    }
    
    .hero-logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero-title-main {
        font-size: 3rem;
    }
    
    .hero-logo {
        margin-bottom: 1.5rem;
    }
    
    .hero-quick-links {
        margin: 1.5rem 0;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal-prev {
        left: -60px;
    }
    
    .modal-next {
        right: -60px;
    }
    
    .modal-close {
        font-size: 2.5rem;
        top: -40px;
    }
}

@media (max-width: 480px) {
    .modal-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .modal-prev {
        left: -50px;
    }
    
    .modal-next {
        right: -50px;
    }
    
    .modal-close {
        font-size: 2rem;
        top: -35px;
    }
    
    .modal-counter {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Footer */
.footer {
    background: #0f0f0f;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    width: 100%;
    max-width: 100vw;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
}

.footer-logo-text {
    color: #FFD700;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover::after {
    width: 80%;
}

.footer-contact {
    text-align: right;
}

.footer-contact p {
    color: #999999;
    font-size: 0.9rem;
}

/* Responsive Design */

/* Средние экраны - планшеты */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-links {
        gap: 1.2rem;
        flex-wrap: nowrap;
    }
    
    .footer-links a {
        padding: 0.45rem 0.9rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    
    /* Исправляем контейнеры */
    .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-title-sub {
        font-size: 1.2rem;
    }
    
    .hero-quick-links {
        gap: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .quick-link {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .quick-link-icon {
        font-size: 1.8rem;
    }
    
    .quick-link-text {
        font-size: 0.8rem;
    }
    
    .browser-compatibility {
        margin: 1rem 0;
    }
    
    .compatibility-message {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .compatibility-text {
        font-size: 0.9rem;
    }
    
    /* Yandex Notice Mobile */
    .yandex-notice {
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .notice-content {
        padding: 0.8rem;
        flex-direction: row;
        gap: 0.6rem;
        text-align: left;
    }
    
    .notice-icon {
        font-size: 1.2rem;
        margin-top: 0;
    }
    
    .notice-text h4 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .notice-text p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .notice-details ol {
        text-align: left;
        font-size: 0.8rem;
        padding-left: 1rem;
    }
    
    .notice-details li {
        margin: 0.2rem 0;
    }
    
    .notice-why {
        font-size: 0.75rem;
        padding: 0.6rem;
        margin-top: 0.6rem;
    }
    
     .hero-description {
         font-size: 1rem;
         padding: 1.2rem 1rem;
         word-wrap: auto-phrase;
         overflow-wrap: break-word;
         max-width: 100%;
         margin: 0 auto 1.5rem;
     }
     
     /* Ссылки на мобильных */
     .video-description a,
     .about-text a,
     p a {
         padding: 0.3rem 0.5rem;
         font-size: 0.95rem;
         display: inline-block;
         margin: 0.1rem 0.2rem;
     }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .widgets-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .widgets-list {
        order: 1; /* Список виджетов первым */
        width: 100%;
    }
    
    /* Скрываем детали виджетов на мобильных */
    .widget-details {
        display: none !important;
        min-height: 400px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .footer-contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Улучшаем футер для мобильных - 2 ряда по 2 кнопки */
    .footer-links {
        gap: 0.6rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .footer-links a {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        min-width: 125px;
        max-width: 130px;
        text-align: center;
        flex: 0 0 calc(50% - 0.3rem);
        white-space: nowrap;
    }
    
    .hero-title-main {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .widget-card,
    .download-option,
    .download-steps {
        padding: 1.5rem;
    }
    
    .widgets-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Детали виджетов уже скрыты выше */
    
    .gallery-container {
        height: 200px;
    }
    
    /* Исправляем ширину для очень маленьких экранов */
    .hero-buttons {
        width: 100%;
        max-width: 100%;
    }
    
     .hero-quick-links {
         gap: 0.6rem;
         margin: 1rem 0;
         flex-direction: row;
         flex-wrap: wrap;
         justify-content: center;
         max-width: 300px;
         margin-left: auto;
         margin-right: auto;
     }
     
     /* Ссылки для маленьких экранов */
     .video-description a,
     .about-text a,
     p a {
         padding: 0.25rem 0.4rem;
         font-size: 0.9rem;
         margin: 0.05rem 0.1rem;
     }
    
    .quick-link {
        min-width: 130px;
        max-width: 140px;
        padding: 0.6rem 0.4rem;
        flex-direction: column;
        gap: 0.3rem;
        flex: 0 0 calc(50% - 0.3rem);
    }
    
    .quick-link-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .quick-link-text {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Адаптивные стили для видео на мобильных */
    .video-container {
        max-width: 100%;
        margin: 1rem auto;
        border-radius: 10px;
    }
    
    .video-container iframe {
        border-radius: 10px;
    }
}

/* Дополнительные стили для очень узких экранов */
@media (max-width: 414px) {
    .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Убираем все ограничения ширины */
    .hero, .about, .widgets, .video, .download, .footer {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 100% !important;
    }
    
    .hero-title-main {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-title-sub {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 1rem 0.8rem;
        word-wrap: auto-phrase;
        overflow-wrap: break-word;
        max-width: 100%;
        margin: 0 auto 1.2rem;
    }
    
    .hero-logo-icon {
        width: 80px;
        height: 80px;
    }
    
    .section-title {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Улучшаем футер для очень узких экранов - сохраняем 2 ряда */
    .footer-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        max-width: 260px;
    }
    
    .footer-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 115px;
        max-width: 120px;
        flex: 0 0 calc(50% - 0.25rem);
    }
}

/* Стили для экстремально узких экранов */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    /* Принудительно растягиваем все секции */
    .hero, .about, .widgets, .video, .download, .footer {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .hero-title-main {
        font-size: 1.5rem;
    }
    
    .hero-title-sub {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        padding: 0.8rem 0.6rem;
        max-width: 100%;
        margin: 0 auto 1rem;
    }
    
    .hero-logo-icon {
        width: 64px;
        height: 64px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .widget-card,
    .download-option,
    .download-steps {
        padding: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .widget-icon {
        font-size: 3rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .widgets-content {
        gap: 1rem;
    }
    
    /* Детали виджетов уже скрыты выше */
    
    .gallery-container {
        height: 180px;
    }
    
    .gallery-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Улучшаем футер для экстремально узких экранов - сохраняем 2 ряда */
    .footer-links {
        gap: 0.4rem;
        flex-wrap: wrap;
        max-width: 240px;
    }
    
    .footer-links a {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-width: 105px;
        max-width: 110px;
        flex: 0 0 calc(50% - 0.2rem);
    }
}
