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: 1000px;
    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: 1200;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2.5rem 1rem;
}

.modal-content {
    background: #ffffff;
    margin: 0 auto;
    padding: 2rem 2.2rem;
    border: 1px solid #e2e8f0;
    width: min(860px, 92vw);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    animation: modalRise 0.25s ease;
    max-height: calc(100vh - 6rem);
    overflow: auto;
}

.close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #0f172a;
    background: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0.2rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.modal-content p {
    color: #475569;
    line-height: 1.75;
    font-size: 1.02rem;
}

.modal-content p + p {
    margin-top: 0.9rem;
}

.modal-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.35);
}

.modal-content a:hover {
    color: #1d4ed8;
    border-bottom-color: rgba(29, 78, 216, 0.6);
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .modal {
        padding: 1.5rem 0.75rem;
    }

    .modal-content {
        padding: 1.5rem 1.4rem;
        border-radius: 16px;
        max-height: calc(100vh - 4rem);
    }
}

#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;
}

.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;
    position: relative;
    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%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.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;
}

/* Content block refresh */
.content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.content h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    color: #0f172a;
    text-align: center;
    margin-bottom: 0.75rem;
}

.content p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.5rem;
}

.content form {
    margin-top: 1.5rem;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.content form label {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
}

.content input[type="url"] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.content input[type="url"]:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.content .checkbox-container {
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0.25rem 0;
}

.content .checkbox-container label {
    font-weight: 500;
    color: #475569;
}

.content .tooltip {
    color: #2563eb;
}

.content .tooltip-text {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 10px;
}

.content .archive-notice {
    display: block;
    max-width: 100%;
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-weight: 600;
}

.content .container-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.content button,
.content button#copyBtn,
.content #downloadBtn,
.content #viewBtn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.content #copyBtn {
    background: #22c55e;
}

.content #copyBtn:hover {
    background: #16a34a;
}

.content #downloadBtn,
.content #viewBtn {
    background: #2563eb;
}

.content #downloadBtn:hover,
.content #viewBtn:hover {
    background: #1d4ed8;
}

.content .instruction-container {
    margin-top: 1.5rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.content .instruction-container h3 {
    color: #0f172a;
}

.content .instruction-list {
    color: #475569;
}

@media (max-width: 768px) {
    .content {
        padding: 1.5rem;
    }

    .content form {
        padding: 1.2rem;
    }

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

/* Download guide interactive layout */
.download-guide {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 2.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.download-guide .guide-intro h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    margin-top: 0;
    margin-bottom: 0.75rem;
    border: none;
    padding: 0;
    color: #0f172a;
}

.download-guide .guide-intro p {
    color: #475569;
    line-height: 1.75;
    margin: 0;
    max-width: 72ch;
}

.guide-accordion {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.85rem;
}

.guide-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.guide-item[open] {
    background: #ffffff;
    border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.guide-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.2s ease;
}

.guide-item summary:hover {
    background: rgba(37, 99, 235, 0.06);
}

.guide-item summary::-webkit-details-marker {
    display: none;
}

.guide-item summary::marker {
    color: transparent;
}

.guide-item summary::after {
    content: "+";
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-item[open] summary::after {
    content: "-";
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.guide-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #eef2f7;
}

.guide-body p {
    color: #475569;
    line-height: 1.75;
    margin: 0.75rem 0 0;
    max-width: 72ch;
}

.guide-body h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.guide-body .software-block {
    margin-top: 1.25rem;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 1.5rem;
}

.guide-body .software-block h3 {
    font-size: 1.3rem;
    text-align: left;
    color: #0f172a;
}

.guide-body .software-block p {
    text-align: left;
    margin-bottom: 1rem;
    max-width: 100%;
}

.guide-body .software-card {
    background: #ffffff;
}

.guide-body #faqAccordion {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .download-guide {
        padding: 1.75rem 1.5rem;
        border-radius: 18px;
    }

    .guide-body p,
    .download-guide .guide-intro p {
        max-width: 100%;
    }
}

/* Social share + instruction CTA refresh */
.social-share {
    position: relative;
    margin: 2.5rem 0;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    text-align: left;
}

.social-share::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.social-text {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 70ch;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.social-button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.25);
    filter: saturate(1.1);
}

.social-button.vk {
    background: linear-gradient(135deg, #4c75a3, #2b4a7a);
}

.social-button.telegram {
    background: linear-gradient(135deg, #33a9f4, #1d79c9);
}

.social-button.ok {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.social-button.facebook {
    background: linear-gradient(135deg, #1877f2, #0f52b0);
}

.social-button.viber {
    background: linear-gradient(135deg, #8f5db7, #6b3f99);
}

.social-button.whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

#instructionBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#instructionBtn i {
    font-size: 1.05rem;
}

#instructionBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(37, 99, 235, 0.45);
}

@media (max-width: 640px) {
    .social-share {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .social-text {
        font-size: 1rem;
    }
}

/* Download guide refresh */
.download-guide {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.download-guide h2 {
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    color: #0f172a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.6rem;
}

.download-guide h2:first-of-type {
    margin-top: 0;
}

.download-guide h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}

.download-guide p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 1.25rem;
}

.download-guide a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

.download-guide a:hover {
    color: #1d4ed8;
    border-bottom-color: rgba(29, 78, 216, 0.6);
}

@media (max-width: 768px) {
    .download-guide {
        padding: 1.75rem 1.5rem;
        border-radius: 16px;
    }

    .download-guide p {
        font-size: 1rem;
    }
}

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;
    }
}

.banner_head {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.banner_head img,
.banner_bottom img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Дополнительные стили для адаптивных баннеров */
@media (max-width: 768px) {

    .banner_head,
    .banner_bottom {
        padding: 0 1rem;
        max-width: 100%;
    }

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

@media (max-width: 480px) {

    .banner_head,
    .banner_bottom {
        margin: 10px auto;
    }

    .banner_bottom img {
        max-width: 100%;
        height: auto;
    }
}

/* Header refresh */
header {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1.5rem;
    height: auto;
    gap: 0.75rem;
}

header h1 {
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    color: #0f172a;
    text-shadow: none;
    letter-spacing: 0.2px;
    padding: 0;
}

.left-menu {
    flex-direction: row;
    gap: 12px;
}

.left-menu a {
    color: #1f2937;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.left-menu a:hover {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #cbd5f5;
    text-decoration: none;
}

.language-switcher img {
    width: 32px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 2px;
}

@media (max-width: 900px) {
    .left-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 600px) {
    header h1 {
        text-align: center;
    }

    .language-switcher {
        margin-top: 0;
    }
}
