* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

a:focus, span:focus {
    outline: 1px solid #81c8ee;
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus, .document-preview:focus {
    outline: thick double #81c8ee;
}

/* Header */
.header {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px;
    font-family: Unbounded, sans-serif;
    background: linear-gradient(90deg, #34495e, #2c3e50);
    padding: 20px 0px;
}

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

.company-logo {
    height: 180px;
    width: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: whitesmoke;
    font-size: 14px;
}

.logo-link:hover {
    opacity: 0.8;
}

.company-info {
    text-align: left;
}

.company-name {
    font-size: 36px;
    font-weight: 400;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.phone {
    font-size: 18px;
    font-weight: 400;
    color: #81c8ee;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    display: block;
}

.phone:hover {
    color: #3fa5dc;
}

.email-container {
    position: relative;
    display: inline-block;
}

.email {
    font-size: 18px;
    font-weight: 400;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.email:hover {
    color: #ecf0f1;
}

.copy-notification {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-bottom: 5px;
    pointer-events: none;
}

.copy-notification::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #27ae60;
}

.copy-notification.show {
    opacity: 1;
}

/* Up Button */
.up-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #81c8ee;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none; /* ❗️добавлено */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.up-button.visible {
    opacity: 1;
    pointer-events: auto; /* ❗️добавлено */
}

.up-button:hover {
    background: #3fa5dc;
    transform: translateY(-2px);
    outline: none;
}


/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-block {
    background: white;
    padding: 40px 0;
    text-align: center;
}

.main-block h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 30px;
}

.main-description {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Slider Blocks */
.slider-block {
    padding: 40px 0;
    background: white;
}

.slider-block:nth-child(odd) {
    background: #f8f9fa;
}

.slider-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.slider-content.reverse {
    flex-direction: row-reverse;
}

.slider-container {
    flex: 1;
    position: relative;
}

.slider {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
    pointer-events: none;
}

.slider img.active {
    opacity: 1;
    pointer-events: auto;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.slider-overlay .zoom-icon {
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slider-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn.active {
    background: #81c8ee;
    transform: scale(1.2);
}

.slider-description {
    flex: 1;
}

.slider-description h5 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
}
.slider-description h3 {
    font-size: 18px;
    color: #2c3e50;
}

.slider-description p {
    font-size: 16px;
    color: #5f6a6b;
    line-height: 1.6;
}
.slider-description ul {
    font-size: 16px;
    color: #5f6a6b;
    line-height: 1.6;
}

/* Documents Block */
.documents-block {
    background: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.documents-title {
    text-align: center;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 50px;
}

.documents-container {
    display: flex;
    gap: 30px;
    justify-content: space-evenly;
    padding: 0 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.documents-container::-webkit-scrollbar {
    display: none;
}

.document-item {
    text-align: center;
    max-width: 100%;
    min-width: 200px;
    padding-top: 10px;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.document-preview {
    width: 100%;
    max-width: 200px;
    height: 300px;
    border: 1px solid #bdc3c7;
    border-radius: 10px;
    overflow: visible;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
}

.document-preview:hover {
    transform: scale(1.02);
}

.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.document-name {
    font-size: 16px;
    color: #2c3e50;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 40px;
    font-family: 'Unbounded', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #81c8ee;
    font-weight: 700;
}

.footer-column p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

@media (max-width: 1280px) {
    .company-logo {
        height: 160px;
        width: 160px;
    }
    .company-name {
        font-size: 32px;
    }

    .phone {
        font-size: 16px;
    }

    .email {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    
    .company-logo {
        height: 140px;
        width: 140px;
    }
    .company-name {
        font-size: 32px;
    }

    .phone {
        font-size: 16px;
    }

    .email {
        font-size: 16px;
    }
}

@media (max-width: 1190px) {
    
    .company-logo {
        height: 100px;
        width: 100px;
    }
    .company-name {
        font-size: 30px;
    }

    .phone {
        font-size: 14px;
    }

    .email {
        font-size: 14px;
    }
    .logo-link {
        font-size: 12px;
    }
}

/* Hover effects for non-mobile devices 
@media (min-width: 1025px) {
    .slider:hover .slider-overlay {
        opacity: 1;
    }
}
*/

@media (hover: hover) and (pointer: fine) {
    .slider:hover .slider-overlay {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .company-logo {
        height: 60px;
        width: 60px;
    }

    .company-name {
        font-size: 20px;
    }

    .phone {
        font-size: 14px;
    }

    .email {
        font-size: 14px;
    }
    .logo-link {
        font-size: 11px;
    }

}
@media (max-width: 850px) {
    .company-logo {
        height: 60px;
        width: 60px;
    }

    .company-name {
        font-size: 16px;
    }

    .phone {
        font-size: 12px;
    }

    .email {
        font-size: 12px;
    }
    .logo-link {
        font-size: 10px;
    }
    .footer-column p {
        font-size: 14px;
    }

}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .company-info {
        text-align: center;
        order: -1;
    }

    .company-logo {
        height: 100px;
        width: 100px;
    }

    .company-name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .phone {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .email {
        font-size: 12px;
    }

    .slider-content {
        flex-direction: column;
        gap: 30px;
    }

    .slider-content.reverse {
        flex-direction: column;
    }

    .slider-description {
        order: -1;
    }

    .slider {
        width: 300px;
        height: 450px;
    }
    
    .slider-controls {
        max-width: 250px;
        margin: 20px auto 0;
    }

    .document-item:first-child {
        margin-left: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-block h2 {
        font-size: 28px;
    }

    .main-description {
        font-size: 16px;
    }

    .slider-description h5 {
        font-size: 24px;
    }

    .documents-title {
        font-size: 28px;
    }
}

/* Error Pages Styles */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.error-content h1 {
    font-size: 120px;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.error-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.error-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.error-btn:hover {
    background: #2980b9;
}

.hidden {
    display: none;
}