body {
    position: relative;
}

main {
    margin-top: 100px;
}

.subscription-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 30px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

.subscription-container h1, .subscription-container h2 {
    width: 100%;
    color: white;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0;
}

.subscription-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 30px 25px;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(#0e0c28, #0e0c28) padding-box, linear-gradient(90deg, #6a5af9, #64ffda) border-box;
    color: white;
    margin-top: 20px;
    font-family: "Roboto", sans-serif;
    min-height: 540px;
}

.subscription-card--popular {
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(90deg, #6a5af9, #64ffda);
    box-shadow: 0 4px 25px rgba(106, 90, 249, 0.3), 0 4px 20px rgba(0, 0, 0, 0.25);
}

.subscription-container.article .subscription-card {
    min-height: 470px;
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
    margin-top: 0;
    color: #ffffff;
}

.premium::before {
    content: "Популярный";
    position: absolute;
    top: -10px; right: 20px;
    background: linear-gradient(90deg, #6a5af9, #64ffda);
    color: #0e0c28;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.premium.article::before {
    content: "Выгодно";
}

.post-pricing {
    font-size: 1.25rem;
    font-weight: bold;
    color: #a0a0c0;
    color: rgba(255, 255, 255, 0.8);
}

.pricing-container {
    display: flex;
    align-items: flex-end;
    gap: 5px;
}

.post-pricing.old-price {
    font-size: 1.125rem;
    color: #a0a0c0;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.features-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.0625rem;
    margin-top: 20px;
}

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

.features-list li div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list img {
    width: 25px;
    height: 25px;
}

.with-top-line {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 10px;
}

.features-list a {
    color: #64ffda;
    font-weight: 500;
    text-decoration: none;

}

.card-button {
    background: #64ffda;
    color: #0e0c28;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
    margin: 10px auto 0;
    display: block;
    text-align: center;
    text-decoration: none;
}

.card-button:hover {
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

.form-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 30px 20px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px auto 40px;
}

.form-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d0d0e0;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 15px;
    font-size: 16px;
    background-color: rgba(16, 14, 40, 0.6);
    color: #ffffff;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

.form-input::placeholder {
    color: #a0a0b0;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364ffda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.form-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #6a5af9, #64ffda);
    color: #0e0c28;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(100, 255, 218, 0.4);
}

.form-button:active {
     transform: translateY(-1px);
}

.policy-agree {
    display: flex;
    justify-content: center;
    align-items: start;
}

.agree {
    color: white;
    margin-top: 0;
}

.agree a {
    color: var(--site-green);
}

#agree-checkbox {
    width: 20px!important;
    height: 20px!important;
    margin-right: 8px!important;
}

.tool-form-message {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
    display: none;
    color: white;
    width: 40%;
    height: 100px;
    background-color: #721422;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin: 0 auto;
    font-size: 1.25rem;
    text-align: center;
    padding: 2px;
}

.tool-form-message.show {
    display: flex!important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    transition: 1s;
}

.error {
    border: solid 1px #EE204D!important;
}

.rules-section {
    max-width: 1300px;
    width: 100%;
    margin: 60px auto 40px;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
    font-family: "Roboto", sans-serif;
}

.rules-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.rules-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.rules-column {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rules-column h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.rule-number {
    min-width: 30px;
    height: 30px;
    background: #6a5af9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.rule-text {
    line-height: 1.5;
}

.faq {
	color: white;
	max-width: 1000px;
	margin: 0 auto;
    padding-left: 5px;
    padding-right: 5px;
	font-size: 1.125rem;
	width: 100%;
    font-family: 'Georgia', serif;
}

.faq h2 {
    text-align: center;
}

.faq details {
    padding: 15px!important;
}

.faq details p {
    line-height: 1.5;
}

@media screen and (max-width: 1023px) {
    .form-container {
        width: 90%;
    }
    h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 850px) {
    .tool-form-message {
        width: 70%;
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 25px 15px;
    }
    .subscription-container h1, .subscription-container h2 {
        font-size: 1.5rem;
        margin-top: 0;
    }
    .card-title {
        font-size: 1.5rem;
    }
    .subscription-card {
        padding: 20px 15px;
    }
    .post-pricing {
        font-size: 1.125rem;
    }
    .faq h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 550px) {
    #tool-form h1 {
        font-size: 1.375rem;
    }
    .form-container {
        width: 98%;
    }
    .tool-form-message {
        width: 70%;
    }
    .form {
        padding: 10px;
    }
    .faq {
        font-size: 1.0625rem;
    }
}

