*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #1f1f1f;
    background: #f6f7fb;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/*  HEADER --------------------------------------------------- */

.header {
    background: #fff;
    padding: 22px 0;
    border-bottom: 1px solid #ececec;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    text-decoration: none;
}

.logo__dark {
    color: #222;
}

.logo__accent {
    color: #6c3cc9;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: .2s;
}

.nav a:hover {
    color: #6c3cc9;
}

.header__button {
    text-decoration: none;
    background: #6c3cc9;
    color: white;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    transition: background .2s;
}

.header__button:hover {
    background: #5b2fae;
}

/* END HEADER ------------------------------------------------ */

/*  CARD ----------------------------------------------------- */

.hero {
    padding: 70px 0 90px;
    background:
        radial-gradient(circle at top,
            #7d4ae2,
            #56308f 55%,
            #343754 100%);
}

.hero__card {
    background: white;
    border-radius: 24px;
    padding: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    box-shadow:
        0 25px 70px rgba(0,0,0,.18);
}

.hero__content{
    flex:1;
}

.hero__subtitle{
    color:#6c3cc9;
    font-weight:600;
    letter-spacing:.5px;
    text-transform:uppercase;
    font-size:.9rem;
}

.hero__title{
    margin:18px 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height:1.1;
    font-weight:800;
}

.hero__text{
    font-size:18px;
    color:#666;
    margin-bottom:35px;
    max-width:500px;
    line-height:1.6;
}

.hero__form{
    display:flex;
    gap:14px;
    margin-bottom:30px;
}

.hero__form input{
    flex:1;
    height:54px;
    border:1px solid #ddd;
    border-radius:12px;
    padding:0 18px;
    font-size:15px;
}

.hero__form button{
    border:none;
    background:#6c3cc9;
    color:white;
    padding:0 26px;
    border-radius:12px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.hero__form button:hover{
    transform:translateY(-2px);
    background:#5b2fae;
}

.hero__advantages{
    display:flex;
    gap:28px;
    flex-wrap:wrap;
    color:#555;
    font-weight:500;
}

.hero__image {
    width: 320px;
    display: flex;
    justify-content: center;
}

.hero__image img{
    width:100%;
    max-width:280px;
}

/* END CARD -------------------------------------------------- */

/* ---------------------------------------- */
.requirements{
    padding:100px 0;
    background:#f6f7fb;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    color:#6c3cc9;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:1px;
}

.section-title h2{
    margin-top:12px;
    font-size:42px;
}

.requirements__grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.requirement-card{
    background:white;
    border-radius:20px;
    padding:32px;
    transition:.3s;
    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}

.requirement-card:hover{
    transform:translateY(-6px);
    box-shadow:
        0 18px 45px rgba(0,0,0,.15);
}

.requirement-card__icon{
    width:58px;
    height:58px;
    border-radius:16px;
    background:#f1ebff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:26px;
    margin-bottom:20px;
}

.requirement-card h3{
    margin-bottom:10px;
    font-size:22px;
}

.requirement-card p{
    color:#666;
    line-height:1.7;
}

.requirements__footer{
    margin-top:40px;
}

.requirements__payment{
    background:#6c3cc9;
    color:white;
    padding:22px;
    border-radius:18px;
    text-align:center;
    font-size:18px;
    font-weight:600;
}

/* ===========================
   FLASH MESSAGE
=========================== */

.flash-message {
    display: flex;
    align-items: flex-start;
    position: relative;
    max-width: 450px;
    margin: 20px auto;
    padding: 16px;
    border-radius: 8px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid;
    animation: slideIn 0.3s ease-out;
}

.flash-message.success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #14532d;
}

.flash-message.error {
    background-color: #fef2f2;
        border-color: #ef4444;
        color: #991b1b;
}

.flash-content {
    flex-grow: 1;
    padding-right: 20px;
}

.flash-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.flash-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.flash-close:hover {
    opacity: 1;
}

/* Плавное появление при рендеринге страницы */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 20px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .logo {
        font-size: 28px;
    }

    .header__button {
        width: 100%;
        text-align: center;
    }
    .hero__card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    .hero__content {
        width: 100%;
    }
    .hero__form {
        flex-direction: column;
    }
    .hero__form button {
        height: 54px;
    }
    .hero__image {
        width: 100%;
        order: -1;
    }
    .hero__advantages {
        justify-content: center;
    }

    .requirements__grid {
        grid-template-columns: 1fr;
    }
    .section-title h2 {
        font-size: clamp(2rem, 6vw, 42px);
    }
    .requirements{
        padding:60px 0;
    }
    .requirement-card{
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1200px, calc(100% - 32px));
    }
}


.table-wrapper {
    margin: 50px 0;
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.applications-table thead {
    background: #6c3cc9;
    color: white;
}

.applications-table th,
.applications-table td {
    padding: 18px 22px;
    text-align: left;
}

.applications-table tbody tr {
    border-bottom: 1px solid #ececec;
}

.applications-table tbody tr:last-child {
    border-bottom: none;
}

.applications-table tbody tr:hover {
    background: #f8f5ff;
}

.delete-button {
    border: none;
    background: #ef4444;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}

.delete-button:hover {
    background: #dc2626;
}
