* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll; /* Всегда резервирует место под скроллбар */
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

::-webkit-scrollbar-thumb:active {
    background: #8e8e8e;
}


body {
    font-family: 'Stolzl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    scroll-behavior: smooth;
    font-weight: 400;
}

.header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: black;
    border-radius: 2px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main {
    font-size: 16px;
    font-weight: 700; /* stolzl_bold */
    line-height: 1;
}

.logo-text .sub {
    font-size: 12px;
    color: #666;
    line-height: 1;
    font-weight: 300; /* stolzl_light */
}

/* Замените ВЕСЬ блок навигации в styles.css (примерно строки 60-90) */

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500; /* Делаем все ссылки жирными */
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #FF844B;
    /* font-weight остается 500 */
}

.nav-link.active {
    color: #FF844B;
    /* font-weight остается 500 - как у всех */
}

/* .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF844B;
} */

.support-btn {
    background: #8094A6;
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500; /* stolzl_medium */
    transition: background 0.2s;
}

.support-btn:hover {
    background: #6d7f91;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.main-title {
    font-size: 32px;
    font-weight: 700; /* stolzl_bold */
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    letter-spacing: -0.5px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.instruction-card {
    background: white;
    border: 2px solid #FF844B;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.instruction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.instruction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 132, 75, 0.1), transparent);
    transition: left 0.6s;
}

.instruction-card:hover::before {
    left: 100%;
}

.instruction-card h3 {
    font-size: 16px;
    font-weight: 450; /* stolzl_book */
    margin-bottom: 20px;
    color: #666;
    line-height: 1.4;
}

.software-logo {
    height: 80px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-icon {
    max-width: 80px;
    max-height: 80px;
    min-width: 60px;
    min-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.2s ease;
}

.instruction-card:hover .program-icon {
    transform: scale(1.1);
}

/* Увеличенные иконки */
.archicad-icon,
.sketchup-icon,
.max3d-icon,
.autocad-icon,
.corona-icon {
    min-width: 85px;
    min-height: 85px;
    max-width: 105px;
    max-height: 105px;
}

/* Уменьшенные иконки */
.zoom-icon,
.photoshop-icon,
.vray-icon {
    min-width: 55px;
    min-height: 55px;
    max-width: 70px;
    max-height: 70px;
}

/* Закругление для V-Ray как у Photoshop */
.vray-icon {
    border-radius: 12px;
}

/* Если нужно добавить закругление и другим иконкам */
.photoshop-icon {
    border-radius: 12px;
}

.btn {
    background: #FF844B;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500; /* stolzl_medium */
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.btn:hover {
    background: #e6754a;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.check-computer {
    text-align: center;
    margin-bottom: 80px;
}

.check-computer h2 {
    font-size: 28px;
    font-weight: 700; /* stolzl_bold */
    margin-bottom: 40px;
    color: #333;
    letter-spacing: -0.5px;
}

.pc-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500; /* stolzl_medium */
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF844B;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.help-text {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

.check-btn {
    background: #FF844B;
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.check-btn:hover:not(:disabled) {
    background: #e6754a;
    transform: translateY(-1px);
}

.check-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.requirements {
    margin-bottom: 40px;
}

.requirements h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    letter-spacing: -0.5px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.requirement-item {
    background: #FF844B;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.requirement-item:hover {
    background: #e6754a;
}

.requirement-item.expanded {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.requirement-item span {
    font-size: 16px;
    font-weight: 600;
}

.requirement-item .toggle {
    font-size: 20px;
    font-weight: 700;
    transition: transform 0.2s;
}

.requirement-item.expanded .toggle {
    transform: rotate(45deg);
}

.requirement-details {
    background: #f8f8f8;
    padding: 20px 25px;
    border-radius: 0 0 8px 8px;
    margin-bottom: 10px;
    display: none;
    animation: slideDown 0.3s ease;
}

.requirement-details.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.requirement-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.requirement-details h5 {
    color: #333;
    margin: 15px 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.requirement-details ul {
    list-style: none;
    padding: 0;
}

.requirement-details li {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.requirement-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FF844B;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    color: #856404;
}

.warning-box strong {
    color: #721c24;
}

.sub-requirements {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.sub-requirement-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.sub-requirement-item:hover {
    background: #e9ecef;
}

.sub-requirement-item.expanded {
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
}

.sub-requirement-item span {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.sub-requirement-item .sub-toggle {
    font-size: 16px;
    font-weight: bold;
    color: #FF844B;
    transition: transform 0.2s;
}

.sub-requirement-item.expanded .sub-toggle {
    transform: rotate(45deg);
}

.sub-requirement-details {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 15px 20px;
    margin-bottom: 8px;
    display: none;
    animation: slideDown 0.3s ease;
}

.sub-requirement-details.show {
    display: block;
}

.sub-requirement-details ul {
    margin: 0;
}

.sub-requirement-details li {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.result-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Уведомления */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #FF844B;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.notification-message {
    font-size: 14px;
    color: #666;
}

/* Адаптивность */
/* Адаптивность */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .software-logo {
        height: 70px;
    }

    .program-icon {
        max-width: 70px;
        max-height: 70px;
        min-width: 50px;
        min-height: 50px;
    }

    /* Увеличенные иконки на планшетах */
    .archicad-icon,
    .sketchup-icon,
    .max3d-icon,
    .autocad-icon,
    .corona-icon {
        min-width: 75px;
        min-height: 75px;
        max-width: 90px;
        max-height: 90px;
    }

    /* Уменьшенные иконки на планшетах */
    .zoom-icon,
    .photoshop-icon,
    .vray-icon {
        min-width: 50px;
        min-height: 50px;
        max-width: 65px;
        max-height: 65px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 12px;
    }

    .support-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .main-title,
    .check-computer h2,
    .requirements h2 {
        font-size: 24px;
    }

    .pc-form {
        padding: 30px 20px;
    }

    .notifications-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .software-logo {
        height: 80px;
    }

    .program-icon {
        max-width: 80px;
        max-height: 80px;
        min-width: 60px;
        min-height: 60px;
    }

    /* Увеличенные иконки на мобильных */
    .archicad-icon,
    .sketchup-icon,
    .max3d-icon,
    .autocad-icon,
    .corona-icon {
        min-width: 80px;
        min-height: 80px;
        max-width: 95px;
        max-height: 95px;
    }

    /* Уменьшенные иконки на мобильных */
    .zoom-icon,
    .photoshop-icon,
    .vray-icon {
        min-width: 55px;
        min-height: 55px;
        max-width: 70px;
        max-height: 70px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .instruction-card {
        padding: 20px 15px;
    }
}

