@import url('style.css');

:root {
    --color-price: #9D9D9D;
}

.header-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding-inline: clamp(24px, 5vw, 64px);
}

.header-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white);
    margin-bottom: clamp(24px, calc(32px - 0.574vw), 32px);
    line-height: 0.9;
    font-size: clamp(35px, calc(35px + (91 * ((100vw - 320px) / 1400))), 126px);
    text-transform: uppercase;
}


.header-description {
    text-transform: uppercase;
    font-size: clamp(17px, calc(17px + (11 * ((100vw - 320px) / 1400))), 28px);
}


.polygraph-section {
    background-color: #060E1E;
}

.polygraph-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(28px, calc(28px + (32 * ((100vw - 320px) / 1400))), 60px);
    line-height: 1.2;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 300px;
    max-width: 610px;
    max-height: 1200px;
    background: #201C32;
    border-radius: 36px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    border-color: #9B54FF;
    box-shadow: 0 0 20px rgba(155, 84, 255, 0.4);
}

.card:active {
    border-color: #9B54FF;
    box-shadow: 0 0 30px rgba(155, 84, 255, 0.6);
}

.card-image {
    margin: 20px 20px 0 20px;
    overflow: hidden;
    border-radius: 24px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.card-text {
    flex: 1;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white);
    font-size: clamp(16px, calc(16px + (4 * ((100vw - 320px) / 1400))), 20px);
    margin: 0 0 8px 0;
}

.card-content p {
    font-family: var(--font-paragraph);
    color: var(--color-price);
    font-size: clamp(14px, calc(14px + (2 * ((100vw - 320px) / 1400))), 16px);
    margin: 0;
}

.expand-icon {
    width: 48px;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.expand-icon svg {
    width: 48px;
    height: 49px;
    transition: transform 0.3s ease;
}

.card.expanded .expand-icon svg {
    transform: rotate(180deg);
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card.expanded .card-details {
    max-height: 600px;
    overflow-y: auto;
}

.card-details p {
    border-top: 1px solid #434257;
    padding: 20px;
    margin: 0;
    font-family: var(--font-paragraph);
    color: var(--color-white-opacity-80);
    font-size: clamp(14px, calc(14px + (2 * ((100vw - 320px) / 1400))), 16px);
    line-height: 1.5;
}

.advantages-section {
    background-color: #060E1E;
}

.advantages-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(28px, calc(28px + (32 * ((100vw - 320px) / 1400))), 60px);
    line-height: 1.2;
}

.advantages-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.advantage-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 300px;
    max-width: 610px;
    background: #110C23 url('../images/polygraph-advantages-bg.webp') center/cover no-repeat;
    background-blend-mode: plus-lighter;
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.advantage-number {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white-opacity-30);
    font-size: clamp(18px, calc(18px + (6 * ((100vw - 320px) / 1400))), 24px);
    margin-bottom: 10px;
}

.advantage-content h3 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white);
    font-size: 26px;
    margin: 0 0 12px 0;
}

.advantage-content p {
    font-family: var(--font-paragraph);
    color: var(--color-white-opacity-80);
    font-size: clamp(14px, calc(14px + (2 * ((100vw - 320px) / 1400))), 16px);
    line-height: 1.5;
    margin: 0;
}

.advantage-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: auto;
}

.advantage-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-margin {
    margin-top: clamp(64px, 6vw, 96px);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.advantage-card:nth-child(1) { animation-delay: 0.1s; }
.advantage-card:nth-child(2) { animation-delay: 0.3s; }
.advantage-card:nth-child(3) { animation-delay: 0.5s; }

.process-item:nth-child(1) { animation-delay: 0.1s; }
.process-item:nth-child(2) { animation-delay: 0.2s; }
.process-item:nth-child(3) { animation-delay: 0.3s; }
.process-item:nth-child(4) { animation-delay: 0.4s; }
.process-item:nth-child(5) { animation-delay: 0.5s; }
.process-item:nth-child(6) { animation-delay: 0.6s; }

.card,
.advantage-card,
.process-item {
    opacity: 0;
}

.process-section {
    background-color: #060E1E;
}

.process-title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading-medium);
    color: var(--color-white);
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(28px, calc(28px + (32 * ((100vw - 320px) / 1400))), 60px);
    line-height: 1.2;
}

.process-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.process-item {
    max-width: 248px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.process-icon {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

.process-text p {
    font-family: var(--font-paragraph);
    color: var(--color-price);
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .process-items {
        justify-content: center;
    }
    
    .process-item {
        align-items: center;
    }
    
    .process-text p {
        text-align: center;
    }
    .card-content h3{
        max-width: 220px;
    }
    .polygraph-title{
        max-width: 260px;
        margin: auto;
        margin-bottom: 32px;
    }
}
