/* ✅ Современные и адаптивные стили для генератора паспортов */

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0 15px;
}

.wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 30px 0;
}

header {
    text-align: left;
    padding: 34px 28px 24px;
    background: radial-gradient(1200px 420px at 10% -20%, rgba(0, 140, 255, 0.16), transparent 60%),
        radial-gradient(800px 320px at 100% 0%, rgba(0, 200, 150, 0.16), transparent 55%),
        linear-gradient(135deg, #f8fbff 0%, #eef3f8 60%, #f7f9fb 100%);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(20, 40, 80, 0.12);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.uniq-link {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    color: #0b6aa8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(11, 106, 168, 0.18);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.uniq-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.uniq-link::before {
    content: "🧬";
    display: inline-block;
    margin-right: 6px;
}

header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #121826;
    line-height: 1.15;
    letter-spacing: -0.4px;
    max-width: 820px;
    z-index: 1;
}

header h2 {
    font-size: 18px;
    color: #2c3a4b;
    font-weight: 600;
    z-index: 1;
}

header h3 {
    font-size: 15px;
    color: #516072;
    max-width: 760px;
    z-index: 1;
}

.banner_head {
    margin: 26px 0 32px;
}

.banner_head .container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: center;
}

.banner_head img {
    display: block;
    margin: 0 auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.py-6 {
    padding-top: 24px;
    padding-bottom: 24px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.banner-link {
    display: block;
    text-decoration: none;
}

.banner-img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    max-height: 300px;
}

h2 {
    font-size: 24px;
    margin-top: 10px;
}

h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.seo-text,
.seo-faq {
    margin: 32px 0;
    padding: 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.seo-text::before,
.seo-faq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 180px at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(420px 180px at 100% 100%, rgba(34, 197, 94, 0.1), transparent 60%);
    pointer-events: none;
}

.seo-text p {
    font-size: 17px;
    line-height: 1.75;
    color: #364152;
    position: relative;
    z-index: 1;
}

.seo-text p+p {
    margin-top: 16px;
}

.seo-text strong {
    color: #0f172a;
}

.seo-faq h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 28px;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

.seo-faq>div {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.seo-faq>div:last-child {
    margin-bottom: 0;
}

.seo-faq h3 {
    font-size: 20px;
    color: #0b6aa8;
    margin-bottom: 10px;
}

.seo-faq p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
    color: #3b485a;
}

.seo-faq ul {
    margin: 10px 0 0 18px;
    color: #3b485a;
}

.seo-faq li {
    margin-bottom: 6px;
}

.share-buttons {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.share-buttons p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.share-buttons a {
    margin: 10px;
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.share-buttons a[href*="t.me"] {
    background-color: #0088cc;
}

.share-buttons a[href*="facebook"] {
    background-color: #4267B2;
}

.share-buttons a[href*="vk"] {
    background-color: #4C75A3;
}

.share-buttons a:hover {
    opacity: 0.85;
}

/* Остальные стили ниже не изменены */

.main-form {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    padding: 32px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.main-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 200px at 0% 0%, rgba(14, 165, 233, 0.12), transparent 65%),
        radial-gradient(520px 200px at 100% 100%, rgba(34, 197, 94, 0.12), transparent 65%);
    pointer-events: none;
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.person__top-details {
    display: grid;
    grid-template-columns: 170px 1fr;
    column-gap: 22px;
    row-gap: 14px;
    align-items: center;
}

.name-label {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #526071;
    margin: 0;
}

.primary-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    color: #111827;
    transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.primary-input:focus {
    border-color: rgba(11, 106, 168, 0.65);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-upload-container input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    background: rgba(248, 250, 252, 0.8);
    color: #1f2937;
}

.tooltip {
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    padding: 10px 12px;
    border-radius: 12px;
}

.selection-form {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 16px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.selection-gender {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
}

.selection-gender p {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.selection-gender input[type="radio"] {
    accent-color: #0b6aa8;
    width: 18px;
    height: 18px;
}

.selection-gender label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #334155;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}

.btn-container {
    display: flex;
    justify-content: center;
}

.create-button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.create-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.25);
}

.document {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    aspect-ratio: 3 / 2;
    position: relative;
    border: 2px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.document.active {
    display: block;
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 12px;
}

.background-image:not([src]),
.background-image[src=""],
.background-image[src="#"] {
    display: none;
}

.document-text {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.document-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.person-face {
    position: absolute;
    bottom: 60px;
    right: 600px;
    z-index: 2;
}

.person-face img {
    max-width: 140px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: none;
}

.userData {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 10px 10px;
    text-align: center;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin-top: 15px;
}

.user-item,
.column-item {
    font-size: 16px;
    line-height: 1.4;
    color: #222;
}

.translate_info {
    margin-top: 5px !important;
}

.item-info {
    font-weight: 600;
    transform: translateY(40px);
}

.date-label.item-info {
    transform: translateY(96px);
}

#document_data {
    transform: translateY(96px);
}

#record_data {
    transform: translateY(80px);
}

#sex {
    transform: translate(106px, 40px);
}

#date_label {
    transform: translate(116px, 59px);
}

#user_sign {
    transform: translate(-30px, 20px);
}

.double-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.first-column {
    flex: 1;
    min-width: 120px;
    margin-left: 40px;
}

.second-column {
    flex: 1;
    min-width: 120px;
}

.user-sign img {
    max-width: 120px;
    margin-top: 10px;
}

.share-buttons {
    text-align: center;
    margin-top: 40px;
}

.share-buttons a {
    margin: 8px;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.share-buttons a[href*="t.me"] {
    background-color: #0088cc;
}

.share-buttons a[href*="facebook"] {
    background-color: #4267B2;
}

.share-buttons a[href*="vk"] {
    background-color: #4C75A3;
}

.telegram-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.telegram-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes bounce {

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

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    header {
        padding: 24px 16px 18px;
        gap: 6px;
    }

    header h1 {
        font-size: 22px;
    }

    header h2 {
        font-size: 15px;
    }

    header h3 {
        font-size: 13px;
    }

    .uniq-link {
        font-size: 12px;
        padding: 5px 9px;
        top: 10px;
        right: 10px;
    }

    .create-button {
        font-size: 14px;
        padding: 10px 18px;
    }

    .main-form,
    .seo-text,
    .seo-faq {
        padding: 15px;
    }

    .person__top-details {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .selection-form {
        padding: 12px;
    }

    .selection-gender {
        gap: 10px;
    }

    .seo-faq h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .seo-faq>div {
        padding: 16px;
    }

    .selection-gender {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-input {
        padding: 10px;
        font-size: 15px;
    }
}

/* 🔥 Промо-баннер Telegram */
.tg-banner {
    background: linear-gradient(135deg, #1d1f27, #2c2f39);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: white;
    gap: 20px;
}

.tg-banner__content {
    flex: 1 1 60%;
    min-width: 250px;
}

.tg-banner__content h4 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #00e5ff;
}

.tg-banner__content p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

.tg-banner__button {
    background-color: #00bcd4;
    color: #fff;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.tg-banner__button:hover {
    background-color: #00acc1;
}

@media (max-width: 768px) {
    .tg-banner {
        flex-direction: column;
        text-align: center;
    }

    .tg-banner__button {
        margin-top: 15px;
    }
}

/* 💼 Промо-баннер BoostClicks */
.boost-banner {
    background: linear-gradient(135deg, #111827 0%, #0f172a 45%, #0b6aa8 120%);
    padding: 34px 28px;
    border-radius: 22px;
    margin: 50px 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #eef2ff;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.boost-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 180px at 0% 0%, rgba(14, 165, 233, 0.35), transparent 60%),
        radial-gradient(520px 220px at 100% 100%, rgba(34, 197, 94, 0.35), transparent 60%);
    pointer-events: none;
}

.boost-banner__content {
    flex: 1 1 60%;
    position: relative;
    z-index: 1;
}

.boost-banner__content h4 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.boost-banner__content p {
    font-size: 16px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.boost-banner__button {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #ffffff;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25);
    position: relative;
    z-index: 1;
}

.boost-banner__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.25);
}

@media (max-width: 768px) {

    .tg-banner,
    .boost-banner {
        flex-direction: column;
        text-align: center;
    }

    .tg-banner__button,
    .boost-banner__button {
        margin-top: 15px;
    }
}
