:root {
    --green: rgba(8, 154, 13, 1);
    --dark-green: rgb(6, 120, 9);
    --iconlight-solid: rgba(255, 255, 255, 1);
    --textlight-solid: rgba(255, 255, 255, 1);
    --black: rgba(13, 16, 20, 1);
    --dark-grey: rgba(64, 68, 72, 1);
    --white: rgba(255, 255, 255, 1);
    --grey: rgba(197, 212, 232, 1);
    --middle-grey: rgba(132, 142, 156, 1);
    --blue: #4a90e2;
}

@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Golos+Text:600,500,400,700|Outfit:400");

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html,
body {
    margin: 0px;
    height: 100%;
    font-family: "Golos Text", Helvetica;
    background-color: var(--white);
}

/* a blue color as a generic focus style */
button:focus-visible {
    outline: 2px solid var(--blue);
    outline: -webkit-focus-ring-color auto 5px;
}

img {
    max-width: 100%;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

h1,
h2,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

ul li {
    list-style-type: none;
}

.wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.main-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

.main-content {
    flex-grow: 1;
}

.screen {
    padding: 60px 0;
}

.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    padding-top: 80px;
    padding-bottom: 60px;
}

.logo {
    position: relative;
    width: 517px;
}

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

.button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 288px;
    padding: 20px 24px;
    font-size: 20px;
    color: var(--white);
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    line-height: 23px;
    white-space: nowrap;
    text-align: center;
    background-color: var(--green);
    border-radius: 32px;
}

.button:hover {
    background-color: var(--dark-green);
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero__item .text br {
    display: none;
}

.main-title {
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 70px;
    line-height: 100%;
}

.main-title_center {
    text-align: center;
}

.main-title span {
    display: block;
    color: var(--green);
}

.inner-title {
    margin-bottom: 80px;
    font-weight: 600;
    font-size: 48px;
    text-align: center;
    color: var(--black);
    letter-spacing: 0;
    line-height: 48px;
}

.inner-title_green {
    margin-bottom: 32px;
    color: var(--green);
}

.inner-title_left {
    text-align: left;
}

.text {
    margin-bottom: 40px;
    font-weight: 400;
    color: var(--dark-grey);
    font-size: 24px;
    line-height: 140%;
}

.text_bold {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 32px;
    line-height: 140%;
}

.text_center {
    text-align: center;
}

.hero-image {
    position: relative;
}

.steps {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    width: 100%;
    margin-bottom: 40px;
    counter-reset: round;
}

.steps__item {
    position: relative;
    padding-left: 35px;
}

.steps__item::before {
    counter-increment: round;
    content: counter(round);
    position: absolute;
    top: -3px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    color: var(--white);
    text-align: center;
    background: var(--green);
    border-radius: 100%;
}

.steps__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 0 0 auto;
    background: var(--white);
}

.steps__header::before {
    content: "";
    position: absolute;
    top: 35%;
    right: 0;
    width: 100%;
    margin: auto;
    border-bottom: 1px solid var(--grey);
}

.steps__title {
    position: relative;
    margin-bottom: 16px;
    padding-right: 8px;
    color: var(--black);
    font-size: 28px;
    letter-spacing: 0;
    line-height: 20px;
    font-weight: 600;
    background-color: var(--white);
}

.steps__description {
    color: var(--dark-grey);
    font-size: 20px;
    line-height: 120%;
    font-weight: 400;
}

.steps-item-tail {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 1px;
    margin-top: -0.50px;
    margin-bottom: -0.50px;
    object-fit: cover;
}

.description-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0px 0px 0px 40px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.attach {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 48px 16px;
    width: 100%;
    background-color: #f7f9f7;
    border-radius: 16px;
    border: 1px dashed #089a0d;
}

.paperclip-wrapper {
    position: relative;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
}

.add-an-attachment {
    position: relative;
    color: var(--green);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    line-height: 16px;
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px;
    background-color: #f7faf7;
    border-radius: 16px;
}

.card__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 120%;
    color: var(--black);
}

.card__info {
    font-size: 20px;
    font-weight: 600;
    line-height: 120%;
    color: var(--dark-grey);
}

.compare-block {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: 1260px;
    margin: auto;
    margin-bottom: 80px;
}

.compare-block__item {
    width: 48%;
    height: 351px;
    background-color: #f2f7ff;
}

.compare-block__item_start::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100px;
    z-index: -1;
    width: 160px;
    height: 228px;
    margin: auto;
    background: url("../img/leaves1.svg");
}

.compare-block__item_finish::before {
    content: "";
    position: absolute;
    bottom: -14px;
    right: -118px;
    z-index: -1;
    width: 210px;
    height: 284px;
    margin: auto;
    background: url("../img/leaves2.svg");
}

.compare-block__arrow {
    position: absolute;
    width: 192px;
    height: 48px;
    top: 50%;
    bottom: auto;
    left: auto;
    right: 50%;
    transform: translate(50%);
}

.for-what {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    gap: 40px;
}

.for-what__item {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 120px;
}

.for-what__item_no-flex {
    display: block;
}

.for-what__img {
    max-width: 400px;
}

.for-what__title {
    margin-bottom: 18px;
    font-size: 32px;
    font-weight: 600;
    line-height: 100%;
    color: var(--black);
}

.for-what__info {
    font-size: 24px;
    font-weight: 400;
    line-height: 140%;
    color: var(--dark-grey);
}

.footer {
    width: 100%;
    padding: 48px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: var(--black);
    border-top: 1px solid var(--grey);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 100px;
}

.footer__inner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.footer__inner-icon {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.footer__inner-link {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    color: var(--green);
}

.footer__inner-link:hover {
    color: var(--dark-green);
}

.accordion {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.accordion-item {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--grey);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: 600;
    background-color: #f7faf7;
    border-left: 4px solid var(--green);
    transition: background-color 0.3s;
    cursor: pointer;
}

.accordion-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.accordion-header::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: #f7faf7;
}

.accordion-content.active {
    padding: 20px;
    max-height: 1000px;
}

@media(max-width: 1500px) {
    .compare-block__item_start::before {
        left: -63px;
    }

    .compare-block__item_finish::before {
        right: -98px;
    }
}

@media(max-width: 1300px) {

    .compare-block__item_start::before,
    .compare-block__item_finish::before {
        content: none;
    }
}

@media(max-width: 1200px) {
    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 1100px) {
    .for-what__item {
        justify-content: center;
        align-items: center;
        flex-direction: row;
        margin-bottom: 40px;
    }
}

@media(max-width: 1000px) {
    .screen {
        padding: 40px 0;
    }

    .text br {
        display: none;
    }

    .header {
        padding: 40px 0;
    }

    .logo {
        width: 344px;
    }

    .hero {
        flex-direction: column;
    }

    .hero__item .text {
        font-size: 24px;
    }

    .main-title {
        font-size: 56px;
        line-height: 100%;
    }

    .main-title span {
        display: inline;
    }

    .inner-title {
        margin-bottom: 40px;
    }

    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .cards-list {
        grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
        margin-bottom: 40px;
    }

    .compare-block {
        margin-bottom: 40px;
    }

    .for-what__item_no-flex {
        display: block;
    }

    .for-what__img {
        max-width: 240px;
    }
}

@media(max-width: 700px) {
    .screen {
        padding: 20px 0;
    }

    .wrapper {
        padding: 0 20px;
    }

    .header {
        display: block;
        padding: 20px 0;
    }

    .header .button {
        display: none;
    }

    .logo {
        width: 100%;
    }

    .hero__item .button {
        max-width: 100%;
    }

    .hero__item .text br {
        display: block;
    }

    .main-title {
        font-size: 40px;
        line-height: 100%;
    }

    .main-title span {
        display: block;
    }

    .inner-title {
        margin-bottom: 16px;
        font-size: 28px;
        line-height: 100%;
        text-align: left;
    }

    .text,
    .text_center {
        font-size: 18px;
        text-align: left;
    }

    .steps {
        gap: 24px;
    }

    .steps__title {
        font-size: 20px;
    }

    .steps__description {
        font-size: 16px;
    }

    .add-an-attachment {
        font-size: 16px;
    }

    .card {
        gap: 12px;
        padding: 20px;
    }

    .card__title {
        font-size: 20px;
        line-height: 120%;
    }

    .card__info {
        font-size: 16px;
    }

    .compare-block {
        flex-direction: column;
    }

    .compare-block__item {
        width: 100%;
        height: 163px;
    }

    .compare-block__arrow {
        width: 96px;
        height: 48px;
        transform: translate(50%) rotate(90deg);
    }

    .for-what__item {
        flex-direction: column;
    }

    .footer__inner-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Стили для выравнивания карточек тарифов */
.tariff-price {
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.tariff-period {
    height: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.tariff-year-price {
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.tariff-description {
    height: 135px;
    /* Увеличено на 25px с 80px до 105px */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.tariff-limits {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Переопределение grid для тарифов на 5 колонок */
.cards-list-tariffs {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media(max-width: 1200px) {
    .cards-list-tariffs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 800px) {
    .cards-list-tariffs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 500px) {
    .cards-list-tariffs {
        grid-template-columns: 1fr;
    }
}

/* Общие стили для обработки длинных текстов и ссылок */
.text,
.inner-title,
.main-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Исправления для мобильной версии */
@media(max-width: 700px) {
    .main {
        min-height: 100vh;
    }

    .wrapper {
        padding: 0 20px;
        box-sizing: border-box;
    }

    .text {
        font-size: 16px;
        line-height: 140%;
        margin-bottom: 20px;
    }

    .inner-title {
        font-size: 24px;
        line-height: 120%;
        margin-bottom: 20px;
    }

    .main-title {
        font-size: 32px;
        line-height: 120%;
        margin-bottom: 24px;
    }
}

@media(max-width: 480px) {
    .wrapper {
        padding: 0 16px;
    }

    .text {
        font-size: 14px;
        line-height: 140%;
        margin-bottom: 16px;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    .inner-title {
        font-size: 20px;
        line-height: 120%;
        margin-bottom: 16px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .main-title {
        font-size: 28px;
        line-height: 120%;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Дополнительная защита от переполнения */
    .main-content {
        overflow-x: hidden;
        max-width: 100%;
    }
}

/* Стили для загрузки файлов */
.attach {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.attach.drag-over {
    background-color: var(--light-green);
    border: 2px dashed var(--green);
    transform: scale(1.02);
}

/* Оверлей загрузки */
.upload-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.upload-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Модальное окно ошибки */
.upload-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.upload-error-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 0 20px;
}

.upload-error-content h3 {
    color: #ff4d4f;
    margin-bottom: 15px;
    font-size: 18px;
}

.upload-error-content p {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

/* Стили для уведомления об изменении имени файла */
.upload-name-change-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Стили для уведомления залогиненных пользователей */
.upload-authenticated-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upload-notification-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.upload-notification-content h3 {
    margin: 0 0 16px 0;
    color: var(--green);
    font-size: 20px;
    font-weight: 600;
}

.upload-notification-content p {
    margin: 12px 0;
    color: var(--dark-grey);
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
}

/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto 80px auto;
    background-color: #f7faf7;
    padding: 40px;
    border-radius: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 100%;
}

.form-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--grey);
    border-radius: 8px;
    font-size: 16px;
    font-family: "Golos Text", Helvetica;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
}

.form-input.error,
.form-textarea.error {
    border-color: #e74c3c;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
}

.checkbox-input {
    margin-top: 4px;
    transform: scale(1.2);
}

.checkbox-label {
    font-size: 14px;
    color: var(--dark-grey);
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--green);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--dark-green);
}

.contact-submit-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 288px;
    margin: 0 auto;
    padding: 20px 24px;
    font-size: 20px;
    color: var(--white);
    font-weight: 400;
    text-align: center;
    line-height: 23px;
    white-space: nowrap;
    background-color: var(--green);
    border-radius: 32px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit-button:hover:not(:disabled) {
    background-color: var(--dark-green);
}

.contact-submit-button:disabled {
    background-color: var(--middle-grey);
    cursor: not-allowed;
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
}

.success-modal h3 {
    color: var(--green);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.success-modal p {
    color: var(--dark-grey);
    font-size: 16px;
    line-height: 1.4;
}

.close-modal-button {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.close-modal-button:hover {
    background-color: var(--dark-green);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
        margin-bottom: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-submit-button {
        max-width: 100%;
    }
}