@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

*, *:before, *:after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(80deg,rgba(186, 228, 245, 1) 0%, rgba(232, 218, 218, 1) 55%, rgba(222, 197, 222, 1) 98%, rgba(209, 195, 212, 1) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 600; }

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#header h1 {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 35%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}

#header h1 a {
    color: #e67e22;
    text-decoration: none;
    transition: all 0.3s ease;
}

#header h1 a:hover {
    color: #d35400;
}

#header nav {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    max-width: 60%;
    z-index: 2;
}

#header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#header nav ul li {
    margin-left: 0.5rem;
}

#header nav ul li a {
    color: rgba(44, 62, 80, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

#header nav ul li a:hover {
    color: #2c3e50;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
        
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
        
@keyframes spin {
    to { transform: rotate(360deg); }
}
        
#main-content {
    animation: fadeIn 0.3s ease-in;
}
        
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#main-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

#main-banner .content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

#main-banner h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

#main-banner p {
    font-size: 1.2rem;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(44, 62, 80, 0.6);
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
}

.scroll-indicator::after {
    content: '↓';
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper {
    padding: 6rem 0;
    position: relative;
}

.wrapper .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#servers {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#servers .major h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

#servers .major h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

.server-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.server-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.server-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
}

.server-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.server-card:hover .server-image img {
    transform: scale(1.1);
}

.server-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.server-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.server-map {
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.server-status {
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.online-count {
    color: #27ae60;
    font-weight: 700;
}

.max-count {
    color: rgba(44, 62, 80, 0.9);
    font-weight: 600;
}

.connect-button {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 0 0 0 rgba(231, 76, 60, 0.5);
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.connect-button::before {
    content: '';
    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 ease;
    z-index: 1;
}

.connect-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.connect-button span,
.connect-button {
    position: relative;
    z-index: 2;
}

.connect-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 30px rgba(231, 76, 60, 0.4),
        0 0 0 8px rgba(231, 76, 60, 0.1),
        0 0 30px rgba(243, 156, 18, 0.3);
    background: linear-gradient(135deg, #f39c12, #e91e63, #e74c3c);
    color: white; /* Фиксируем цвет текста */
}

.connect-button:hover::before {
    left: 100%;
}

.connect-button:hover::after {
    width: 120%;
    height: 120%;
}

.connect-button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
    box-shadow: 
        0 6px 20px rgba(231, 76, 60, 0.35),
        0 0 0 4px rgba(231, 76, 60, 0.15);
}

.connect-button:focus {
    outline: none;
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 0 0 3px rgba(231, 76, 60, 0.3),
        0 0 20px rgba(243, 156, 18, 0.2);
}


@keyframes buttonAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.connect-button {
    animation: buttonAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pulse {
    0% {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.3),
            0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.3),
            0 0 0 10px rgba(231, 76, 60, 0.1);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.3),
            0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.connect-button {
    animation: 
        buttonAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
        pulse 2s ease-in-out 1.5s infinite;
}

.connect-button {
    position: relative;
}

.connect-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e74c3c, #f39c12, #e91e63, #e74c3c);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.connect-button:hover::before {
    opacity: 1;
}

.connect-button {
    overflow: hidden;
}

.connect-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.connect-button:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

@media (max-width: 768px) {
    .connect-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        animation: buttonAppear 0.5s ease forwards;
    }
    
    .connect-button:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .connect-button::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .connect-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        transition: all 0.2s ease;
    }
    
    .connect-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }
    
    .connect-button {
        animation: none;
    }
    
    .connect-button::before,
    .connect-button::after {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .connect-button {
        box-shadow: 
            0 4px 15px rgba(231, 76, 60, 0.4),
            0 0 0 0 rgba(231, 76, 60, 0.6);
    }
    
    .connect-button:hover {
        box-shadow: 
            0 12px 30px rgba(231, 76, 60, 0.5),
            0 0 0 8px rgba(231, 76, 60, 0.15),
            0 0 30px rgba(243, 156, 18, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .connect-button {
        animation: none;
        transition: all 0.2s ease;
    }
    
    .connect-button::before,
    .connect-button::after {
        transition: none;
    }
    
    .connect-button:hover {
        transform: none;
    }
}

#features {
    background: rgba(248, 249, 250, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.placeholder-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 8px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.feature:hover .placeholder-icon {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.feature p {
    color: rgba(44, 62, 80, 0.7);
    line-height: 1.5;
    font-weight: 400;
    font-size: 0.95rem;
}

.icon____features {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.feature:hover .icon____features {
    transform: scale(1.1);
    opacity: 1;
}

.no-servers-message {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(44, 62, 80, 0.8);
}

.no-servers-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.updating-text {
    font-size: 1.1rem;
    color: rgba(44, 62, 80, 0.6);
}

.dots::after {
    content: '.';
    animation: dotsAnimation 1.5s infinite;
}

@keyframes dotsAnimation {
    0%, 33% { content: '.'; }
    34%, 66% { content: '..'; }
    67%, 100% { content: '...'; }
}

#footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4rem 0 2rem;
    text-align: center;
}

#footer h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(44, 62, 80, 0.5);
    font-size: 0.9rem;
}

.copyright li {
    display: inline-block;
    margin: 0 1rem;
}

#menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
    z-index: 10001;
}

#menu.active {
    transform: translateX(-300px);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

#menu ul li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#menu ul li:last-child {
    border-bottom: none;
}

#menu ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 1rem 0;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

#menu ul li a:hover {
    color: #e74c3c;
}

.menuToggle {
    display: none;
    background: none;
    border: none;
    color: #2c3e50;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: #e74c3c;
}

.dropdown-menu li:first-child a {
    border-radius: 12px 12px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 12px 12px;
}

#menu .mobile-dropdown {
    position: relative;
    margin-bottom: 0 !important;
}

#menu .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 1rem 0 !important;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#menu .mobile-dropdown-toggle::after {
    content: '▾';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

#menu .mobile-dropdown.active .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}

#menu .mobile-dropdown-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 0 0 8px 8px;
}

#menu .mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

#menu .mobile-dropdown-menu li {
    margin: 0 !important;
    border-bottom: none !important;
}

#menu .mobile-dropdown-menu li a {
    padding: 0.7rem 1rem !important;
    font-size: 0.9rem !important;
    color: rgba(44, 62, 80, 0.8) !important;
    position: relative;
    display: block;
    border-bottom: none !important;
}

#menu .mobile-dropdown-menu li a:hover {
    color: #e74c3c !important;
}

@media (max-width: 768px) {
    .dropdown {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-dropdown {
        display: none;
    }
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #header h1 {
        left: 1rem;
        font-size: 1.4rem;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    #header nav ul {
        display: none;
    }

    .menuToggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    #main-banner h2 {
        font-size: 2.5rem;
    }

    #main-banner p {
        font-size: 1rem;
    }

    .wrapper {
        padding: 4rem 0;
    }

    .wrapper .inner {
        padding: 0 1rem;
    }

    .server-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        padding: 2rem;
    }

    .placeholder-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .feature h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .feature p {
        font-size: 1rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    #main-banner h2 {
        font-size: 2rem;
    }

    .server-container {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 1.5rem;
    }

    .connect-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

html {
    scroll-behavior: smooth;
}

a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f39c12;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f39c12, #e91e63);
}

#rules-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    background: linear-gradient(90deg, rgb(182, 214, 233) 5%, rgb(239, 231, 231), rgb(225, 197, 198) 85%);
}

#rules-banner .content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

#rules-banner h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #f39c12, #e67e22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

#rules-banner p {
    font-size: 1.2rem;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

#rules-main {
    background: #ffffff;
    min-height: 100vh;
    padding: 4rem 0;
}

.rule-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.rule-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.rule-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.rule-header.major {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.rule-header.major h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #343a40;
    display: inline-block;
}

.rule-header.major h3 .text-primary::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6c757d;
    border-radius: 1px;
}

.rule-header h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(231, 76, 60, 0.2);
    padding-bottom: 0.5rem;
}

.text-primary {
    color: #495057 !important;
}

.text-accent {
    color: #6c757d !important;
}

.text-warning {
    color: #495057 !important;
}

.text-center {
    text-align: center;
}

.rule-warning {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    padding-bottom: 0.5rem;
}

.rule-warning::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #e67e22, #f39c12, #e74c3c);
    border-radius: 1px;
}

.rule-content {
    position: relative;
    z-index: 2;
}

.rule-numbered-list {
    counter-reset: rule-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-numbered-list li {
    counter-increment: rule-counter;
    position: relative;
    padding: 1.2rem 1.5rem 1.2rem 3rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    line-height: 1.6;
    border-left: 4px solid transparent;
}

.rule-numbered-list li:last-child {
    margin-bottom: 0;
}

.rule-numbered-list li::before {
    content: counter(rule-counter) ". ";
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    font-size: 1rem;
}

.rule-numbered-list li:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(231, 76, 60, 0.2);
    border-left-color: #e74c3c;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rule-subsection {
    margin: 2.5rem 0;
    position: relative;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    text-align: left;
    padding: 1rem 1.5rem;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid #495057;
    border-radius: 6px;
    color: #343a40;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 1.1rem;
}

.rule-category {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.rule-category.allowed {
    background: rgba(76, 175, 80, 0.06);
}

.rule-category.forbidden {
    background: rgba(244, 67, 54, 0.06);
}

.category-title {
    padding: 1.2rem 1.5rem;
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    position: relative;
}

.rule-category.allowed .category-title {
    color: #2e7d32;
}

.rule-category.forbidden .category-title {
    color: #c62828;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list-item {
    color: #2f2e37;
    padding: 1rem 1.5rem 1rem 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.rule-list-item:last-child {
    border-bottom: none;
}

.rule-list-item::before {
    content: '•';
    position: absolute;
    left: 1rem;
    color: rgba(44, 62, 80, 0.4);
    font-weight: bold;
    font-size: 1.2rem;
}

.rule-category.allowed .rule-list-item::before {
    content: '•';
    color: #4caf50;
}

.rule-category.forbidden .rule-list-item::before {
    content: '•';
    color: #f44336;
}

.rule-list-item:hover {
    background: rgba(255, 255, 255, 0.5);
    padding-left: 3.5rem;
}

.rule-text {
    padding: 1rem 0;
    line-height: 1.7;
    color: rgba(44, 62, 80, 0.9);
}

.rule-note {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(44, 62, 80, 0.8);
}

.rule-transition {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rule-transition strong {
    color: #495057;
    font-size: 1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.rule-transition strong:not(:first-of-type) {
    margin-top: 2rem;
}

.rule-examples {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    list-style: none;
}

.rule-examples li {
    margin-bottom: 0.6rem;
    color: rgba(44, 62, 80, 0.9);
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.rule-examples li::before {
    content: '•' !important;
    position: absolute;
    left: 0;
    color: #6c757d !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.rule-examples li:last-child {
    margin-bottom: 0;
}

.rule-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 3rem 0;
}

.block-content {
    margin-top: 1.5rem;
}

.block-content .rule-transition {
    margin: 1.5rem 0;
    padding: 1.2rem 1.8rem;
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.block-content .rule-text {
    padding: 1rem 0;
    line-height: 1.7;
    color: rgba(44, 62, 80, 0.9);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rule-link {
    color: #bdc3c7 !important;
    text-decoration: none;
    margin-left: 0.5rem;
    font-size: 0.8em;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 400;
}

h3:hover .rule-link,
h4:hover .rule-link,
h5:hover .rule-link,
li:hover .rule-link {
    opacity: 1;
}

.rule-link:hover {
    color: #f39c12 !important;
}

.rule-section {
    scroll-margin-top: 100px;
}

.rule-item {
    color: #2f2e37;
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    #rules-banner h2 {
        font-size: 2.8rem;
    }
    
    #rules-banner p {
        font-size: 1rem;
    }
    
    .rule-section {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .rule-header.major h3 {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
    }
    
    .rule-header h4 {
        font-size: 1.3rem;
    }
    
    .rule-numbered-list li {
        padding: 1rem 1.2rem 1rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .rule-numbered-list li::before {
        left: 0.8rem;
        top: 1rem;
    }
    
    .subsection-title {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        letter-spacing: 0.6px;
    }
}

@media (max-width: 480px) {
    #rules-banner h2 {
        font-size: 2.2rem;
    }
    
    .rule-section {
        padding: 1.5rem 1rem;
    }
    
    .rule-header.major h3 {
        font-size: 1.3rem;
        letter-spacing: 0.2px;
    }
    
    .rule-numbered-list li {
        padding: 0.9rem 1rem 0.9rem 2.2rem;
        font-size: 0.9rem;
    }
}

/* Payment Page Styles */

#payment-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    text-align: center;
    position: relative;
    padding: 2rem;
}

#payment-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 101, 101, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(106, 176, 76, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    z-index: -1;
}

.payment-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.payment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03), rgba(243, 156, 18, 0.03));
    z-index: -1;
}

.payment-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
}

.form-input:focus {
    outline: none;
    border-color: #e74c3c;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.amount-section {
    margin-bottom: 2.5rem;
}

.amount-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    text-align: left;
    font-weight: 400;
}

.amount-input:focus {
    outline: none;
    border-color: #e74c3c;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    transform: translateY(-1px);
}

.amount-input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    animation: shake 0.5s ease-in-out;
}

.amount-limits {
    display: flex;
    justify-content: space-between;
    color: rgba(44, 62, 80, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.amount-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.amount-error.show {
    opacity: 1;
}

.payment-button {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.payment-button::before {
    content: '';
    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 ease;
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #f39c12, #e91e63, #e74c3c);
}

.payment-button:hover::before {
    left: 100%;
}

.payment-button:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

.payment-button:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Page Responsive Styles */
@media (max-width: 768px) {
    .payment-container {
        padding: 2rem 1.5rem;
        max-width: 400px;
        margin: 0 1rem;
    }

    .payment-title {
        font-size: 1.8rem;
    }

    .amount-display {
        font-size: 1.6rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .payment-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }

    .payment-title {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.8rem 1rem;
    }

    .payment-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}


/* Legal Pages Styles (перенесено из terms.php) */

#legal-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45vh;
    text-align: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #e74c3c, #f39c12, #e67e22) 1;
}

#legal-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at center, rgba(231, 76, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(243, 156, 18, 0.03) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.legal-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.legal-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(231, 76, 60, 0.1);
}

.legal-subtitle {
    font-size: 1.3rem;
    color: rgba(44, 62, 80, 0.8);
    font-weight: 500;
    letter-spacing: 0.02em;
}

#legal-content {
    position: relative;
    padding: 4rem 0 6rem;
}

.legal-document {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.legal-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: none;
}

.legal-document::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.legal-section {
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    animation: fadeIn 0.8s ease-out backwards;
}

.legal-section.last-section {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
    border-left: 5px solid #e74c3c;
    position: relative;
    transition: all 0.3s ease;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #e74c3c, #f39c12);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-title:hover::before {
    opacity: 1;
}

.section-content {
    color: #34495e;
    line-height: 1.9;
    font-size: 1.05rem;
}

.section-content p {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.section-content p:hover {
    color: #2c3e50;
    padding-left: 0.5rem;
}

.section-content strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Legal Pages Styles */

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.legal-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin-bottom: 0.8rem;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #2c3e50;
    line-height: 1.7;
    transition: all 0.2s ease;
    box-shadow: none;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #e74c3c;
    border-radius: 1px;
}

.legal-list li:hover {
    background: transparent;
    border-left: none;
    box-shadow: none;
    padding-left: 1.8rem;
}

.legal-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
}

.legal-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.legal-date {
    color: #7f8c8d;
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 50px;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(243, 156, 18, 0.05));
    border: 2px solid rgba(231, 76, 60, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Legal Pages Responsive */

@media (max-width: 768px) {
    .legal-title {
        font-size: 2.5rem;
    }

    .legal-subtitle {
        font-size: 1.1rem;
    }

    .legal-document {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.4rem;
        padding-left: 1rem;
    }

    .section-content {
        font-size: 1rem;
    }

    .legal-list li {
        padding: 0.4rem 0 0.4rem 1.3rem;
    }

    .legal-list li::before {
        width: 5px;
        height: 5px;
    }

    .legal-list li:hover {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    #legal-banner {
        padding: 6rem 1rem 3rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .legal-document {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .legal-list li {
        padding: 0.3rem 0 0.3rem 1.2rem;
    }

    .legal-list li::before {
        width: 4px;
        height: 4px;
        /* transform: translateY(-50%) остается */
    }

    .legal-list li:hover {
        padding-left: 1.4rem;
    }
}

.contact-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(231, 76, 60, 0.15);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.25);
}

.card-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 2px solid rgba(231, 76, 60, 0.1);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.03), rgba(243, 156, 18, 0.03));
}

.header-text {
    flex: 1;
}

.overline {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(44, 62, 80, 0.7);
    margin-bottom: 0.5rem;
}

.headline {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: -0.02em;
}

.contact-list {
    padding: 0.5rem 0;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: rgba(231, 76, 60, 0.02);
    padding-left: 2.5rem;
}

.list-item.highlight {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(243, 156, 18, 0.08));
    border-left: 4px solid #e74c3c;
    border-bottom: none;
    margin: 0.5rem 0;
    border-radius: 0 12px 12px 0;
}

.list-item.highlight:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(243, 156, 18, 0.12));
    padding-left: 2rem;
    transform: translateX(4px);
}

.custom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    margin-right: 1.5rem;
}

.custom-icon svg {
    width: 24px;
    height: 24px;
    color: rgba(44, 62, 80, 0.6);
    transition: all 0.3s ease;
}

.list-item:hover .custom-icon svg {
    color: #e74c3c;
    transform: scale(1.1);
}

.list-item.highlight .custom-icon svg {
    color: #e74c3c;
}

.list-item__content {
    flex: 1;
    min-width: 0;
}

.list-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(44, 62, 80, 0.7);
    margin-bottom: 0.25rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.list-item__subtitle {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
    word-break: break-word;
}

.list-item__subtitle.muted {
    color: #95a5a6;
    font-style: italic;
    font-weight: 400;
}

.email-link {
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 600;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    transition: width 0.3s ease;
}

.email-link:hover {
    color: #c0392b;
    transform: translateX(-4px);
}

.email-link:hover::after {
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-card {
        border-radius: 20px;
    }

    .card-header {
        padding: 1.5rem 1.5rem 1.2rem;
    }

    .headline {
        font-size: 1.5rem;
    }

    .list-item {
        padding: 1rem 1.5rem;
    }

    .list-item:hover {
        padding-left: 1.5rem;
    }

    .list-item.highlight:hover {
        padding-left: 1.5rem;
    }

    .custom-icon {
        width: 32px;
        min-width: 32px;
        height: 32px;
        margin-right: 1.2rem;
    }

    .custom-icon svg {
        width: 20px;
        height: 20px;
    }

    .list-item__title {
        font-size: 0.8125rem;
    }

    .list-item__subtitle {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        border-radius: 16px;
    }

    .card-header {
        padding: 1.2rem 1rem 1rem;
    }

    .overline {
        font-size: 0.6875rem;
    }

    .headline {
        font-size: 1.25rem;
    }

    .list-item {
        padding: 0.9rem 1rem;
    }

    .list-item__title {
        font-size: 0.75rem;
    }

    .list-item__subtitle {
        font-size: 0.875rem;
    }
}

/* Error Section Styles */

.error-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.error-section .wrapper {
    padding: 0;
}

.error-section .inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(231, 76, 60, 0.15);
    border-radius: 24px;
    padding: 4rem 3rem;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease-out;
}

.error-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e67e22, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.error-section p {
    font-size: 1.2rem;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.error-section .button {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.error-section .button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #f39c12, #e91e63, #e74c3c);
}

.error-section .button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

@media (max-width: 768px) {
    .error-section .inner {
        padding: 3rem 2rem;
    }

    .error-section h2 {
        font-size: 2.2rem;
    }

    .error-section p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .error-section .button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .error-section .inner {
        padding: 2.5rem 1.5rem;
    }

    .error-section h2 {
        font-size: 1.8rem;
    }

    .error-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .error-section .button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}