html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    flex: 1;
}

header {
    background-color: #4a90e2;
    color: #fff;
    text-align: center;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4a90e2;
    color: #fff;
    padding: 1rem;
    height: 100px;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.content {
    margin-top: 2rem;
}

h2 {
    color: #4a90e2;
}

p {
    color: #555;
}

form {
    margin-top: 2rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input[type="url"] {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #4CAF50;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.banner_bottom {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
    display: block;
}

.banner_bottom img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: relative;
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: #fff;
    margin: 0;
    padding: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
    margin-left: auto;
    /* Правое выравнивание */
    margin-right: auto;
    /* Левое выравнивание */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


button#instructionBtn {
    background-color: #3498db;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: block;
    margin: 20px auto;
    width: fit-content;
}

#instructionBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#instructionBtn i {
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#downloadSection {
    display: none;
    text-align: center;
    margin-top: 2rem;
}

#downloadBtn {
    background-color: #3498db;
    color: #fff;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#downloadBtn:hover {
    background-color: #2980b9;
}

.banner {
    border: 8px solid;
    border-image: repeating-linear-gradient(135deg, #F8CA00 0 10px, #E97F02 0 20px, #BD1550 0 30px) 8;
    -webkit-mask:
        conic-gradient(from 180deg at top 8px right 8px, #0000 90deg, #000 0) var(--_i, 200%) 0 /200% var(--_i, 8px) border-box no-repeat,
        conic-gradient(at bottom 8px left 8px, #0000 90deg, #000 0) 0 var(--_i, 200%)/var(--_i, 8px) 200% border-box no-repeat,
        linear-gradient(#000 0 0) padding-box no-repeat;
    transition: .3s, -webkit-mask-position .3s .3s;
}

.banner:hover {
    --_i: 100%;
    color: #CC333F;
    transition: .3s, -webkit-mask-size .3s .3s;
}

.banner_bottom {
    border: 8px solid;
    border-image: repeating-linear-gradient(135deg, #F8CA00 0 10px, #E97F02 0 20px, #BD1550 0 30px) 8;
    -webkit-mask:
        conic-gradient(from 180deg at top 8px right 8px, #0000 90deg, #000 0) var(--_i, 200%) 0 /200% var(--_i, 8px) border-box no-repeat,
        conic-gradient(at bottom 8px left 8px, #0000 90deg, #000 0) 0 var(--_i, 200%)/var(--_i, 8px) 200% border-box no-repeat,
        linear-gradient(#000 0 0) padding-box no-repeat;
    transition: .3s, -webkit-mask-position .3s .3s;
}

.banner_bottom:hover {
    --_i: 100%;
    color: #CC333F;
    transition: .3s, -webkit-mask-size .3s .3s;
}

.loading-indicator {
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    /* Light grey */
    border-top: 5px solid #3498db;
    /* Blue */
    border-radius: 50%;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}


@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#successMessage {
    display: none;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

button#copyBtn {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#copyBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#copyBtn i {
    margin-right: 5px;
}


button#copyBtn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.instruction-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
}

.instruction-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #4a90e2;
}

.instruction-container h3 {
    margin-top: 0;
    color: #333;
}

.instruction-list {
    list-style-type: decimal;
    margin-left: 20px;
    color: #555;
}

.instruction-list li {
    margin-bottom: 10px;
}


.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.social-buttons {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-button.vk {
    background-color: #4c75a3;
}

.social-button.telegram {
    background-color: #0088cc;
}

.social-button.ok {
    background-color: #ed812b;
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.viber {
    background-color: #665cac;
}

.social-button.whatsapp {
    background-color: #25d366;
}

.social-share {
    text-align: center;
    margin: 2rem 0;
}

.social-text {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
}

.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
}

.tooltip {
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
    color: #4a90e2;
}

.tooltip i {
    font-size: 20px;
}

.tooltip-text {
    display: none;
    position: absolute;
    width: 200px;
    left: 30px;
    top: -10px;
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
}

.tooltip:hover+.tooltip-text {
    display: block;
}

#additionalInput {
    margin-top: 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.show-overlay {
    display: block;
    opacity: 1;
}

.language-switcher {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 5px;
}

.language-switcher img {
    width: 40px;
    height: auto;
    margin-right: 5px;
}

.centered {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}


#downloadBtn,
#viewBtn {
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 16px;
    margin-bottom: 1.2rem;
}

.archive-notice {
    background-color: #B0BEC5;
    color: #000000;
    text-align: center;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.archive-notice {
    display: none;
}

.banner_head {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner_head video {
    width: 100%;
    height: auto;
    display: block;
}

.download-guide {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

.download-guide h1 {
    font-size: 2.8rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.download-guide h2 {
    font-size: 2rem;
    margin-top: 2rem;
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.download-guide h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    color: #2c3e50;
}

.download-guide p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #4d4d4d;
}

#faqAccordion .ui-accordion-header {
    background: #f7f7f7;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#faqAccordion .ui-accordion-header:hover {
    background-color: #eaeaea;
}

#faqAccordion .ui-accordion-header.ui-state-active {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#faqAccordion .ui-accordion-content {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: #555;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.ui-accordion .ui-accordion-header,
.ui-accordion .ui-accordion-content {
    transition: all 0.3s ease;
}

.software-block {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    font-family: 'Roboto', sans-serif;
}

.software-block h3 {
    font-size: 2rem;
    color: #4a90e2;
    margin-bottom: 1rem;
    text-align: center;
}

.software-block p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.software-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.telegram-icon {
    position: fixed;
    bottom: 20px;
    right: 40px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.telegram-icon img {
    width: 100%;
    height: auto;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

@media (max-width: 600px) {
    .software-cards {
        grid-template-columns: 1fr;
    }
}

.software-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.software-card h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.software-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.left-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.left-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 2px 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.left-menu a:hover {
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.1);
}


/* === Адаптивные стили === */

@media (max-width: 1024px) {

    header {
        height: auto;
        padding: 0.5rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    header .centered {
        flex: 1;
        text-align: left;
        margin: 0;
    }

    header h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    .language-switcher {
        flex-shrink: 0;
    }

    .language-switcher img {
        width: 30px;
        height: auto;
    }

    .container {
        max-width: 95%;
        padding: 1.5rem;
    }

    header {
        height: auto;
        flex-direction: column;
        padding: 1rem 0;
    }

    header .centered {
        margin-bottom: 0.5rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .banner_img {
        display: block;
        margin: 0 auto;
    }

    .content {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1rem;
    }

    .instruction-container,
    .download-guide,
    .software-block {
        padding: 1.5rem;
    }
}

.content h2 {
    font-size: 2rem;
    text-align: center;
}

.content p {
    font-size: 1.2rem;
}

form label {
    font-size: 1.2rem;
}

input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    /* увеличенные отступы */
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    /* чуть толще и светлее рамка */
    border-radius: 8px;
    /* более плавные скругления */
    box-sizing: border-box;
    font-size: 1.1rem;
    /* увеличенный размер шрифта */
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    /* акцентный цвет рамки */
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
    /* мягкая тень */
}

/* Для экранов до 768px (планшеты, портретная ориентация) */
@media (max-width: 768px) {

    header {
        height: auto;
        padding: 0.5rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    header .centered {
        flex: 1;
        text-align: left;
        margin: 0;
    }

    header h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    .language-switcher {
        flex-shrink: 0;
    }

    .language-switcher img {
        width: 30px;
        height: auto;
    }

    .container {
        padding: 1rem;
    }

    header {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .language-switcher {
        margin-top: 0.5rem;
    }

    form {
        padding: 0 1rem;
    }

    input[type="url"] {
        padding: 0.5rem;
    }

    button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .software-cards {}
}

.software-card h4 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.software-card h4 a:hover {
    color: #3498db;
    text-decoration: underline;
}


/* Для экранов до 480px (мобильные устройства) */
@media (max-width: 480px) {

    header {
        height: auto;
        padding: 0.5rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    header .centered {
        flex: 1;
        text-align: left;
        margin: 0;
    }

    header h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    .language-switcher {
        flex-shrink: 0;
    }

    .language-switcher img {
        width: 30px;
        height: auto;
    }

    .container {
        padding: 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .language-switcher img {
        width: 30px;
    }

    form {
        padding: 0 0.5rem;
    }

    input[type="url"] {
        padding: 0.4rem;
    }

    button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .instruction-container,
    .download-guide,
    .software-block {
        padding: 1rem;
    }

    .download-guide h1 {
        font-size: 2rem;
    }

    .download-guide h2 {
        font-size: 1.6rem;
    }

    .download-guide p,
    .instruction-container p,
    .software-block p {
        font-size: 1rem;
    }

    /* Можно также уменьшить отступы в карточках */
    .software-card {
        padding: 1rem;
    }
}