/**
 * Стили лендинга "Актёрская сессия"
 * Точная копия дизайна из Figma
 */

/* ============================
   CSS Variables
   ============================ */
:root {
    --bg-main: #D7E2E8;
    --bg-light: #F5F8FA;
    --color-primary: #1B3A68;
    --color-accent: #FF5B1C;
    --color-white: #FFFFFF;
    --font-family: 'Roboto', sans-serif;
}

/* ============================
   Reset
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-main);
    color: var(--color-primary);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================
   БЛОК 1: HERO
   ============================ */
.hero {
    width: 100%;
    min-height: 100%;
    background: var(--bg-main);
    position: relative;
    padding: 52px 140px 60px;
}

/* Header */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 293px;
    margin-bottom: 94px;
}

.header__logo img {
    width: 60px;
    height: 44px;
    object-fit: contain;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

.header__link {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.header__link:hover {
    opacity: 0.7;
}

.header__btn {
    padding: 10px 32px 9px;
    border: 1.35px solid var(--color-primary);
    border-radius: 60px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.3s;
}

.header__btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Hero Container */
.hero__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1160px;
    margin: 0 auto;
}

/* Hero Content (left side) */
.hero__content {
    width: 581px;
    flex-shrink: 0;
}

.hero__title {
    font-size: 68.74px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero__subtitle {
    width: 556px;
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    line-height: 29.48px;
    color: var(--color-primary);
    margin-bottom: 35px;
}

/* Feature box with vertical line */
.hero__feature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.hero__feature-line {
    width: 8px;
    height: 105px;
    background: var(--color-primary);
    border-radius: 4px;
    flex-shrink: 0;
}

.hero__feature-box {
    padding: 18px;
    border: 1.76px solid var(--color-primary);
    border-radius: 10.58px;
}

.hero__feature-box p {
    width: 502px;
    font-size: 20px;
    font-weight: 600;
    line-height: 27px;
    color: var(--color-primary);
}

/* Hero Button */
.hero__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 17.63px 35.25px;
    background: var(--color-accent);
    border-radius: 114.57px;
    color: var(--color-white);
    font-size: 21.15px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 91, 28, 0.3);
}

/* Hero Image */
.hero__image {
    flex-shrink: 0;
}

.hero__image img {
    width: 550px;
    height: auto;
    object-fit: contain;
}

/* Hero Arrows (sides of entire block) */
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 23px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    z-index: 10;
}

.hero__arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.hero__arrow--prev {
    left: 40px;
}

.hero__arrow--next {
    right: 40px;
}

/* ============================
   БЛОК 2: FEATURES
   ============================ */
.features {
    background: var(--bg-main);
    padding: 52px 140px 80px;
    position: relative;
}

.features__title {
    font-size: 58px;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 80px;
}

.features__container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    max-width: 1160px;
    margin: 0 auto;
}

.features__photo {
    flex-shrink: 0;
}

.features__photo img {
    width: 360px;
    height: 360px;
    border-radius: 40px;
    border: 4px solid var(--color-primary);
    object-fit: cover;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.feature-item__icon {
    width: 68px;
    height: 68px;
    background: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-item__content {
    padding-left: 16px;
    padding-right: 16px;
}

.feature-item__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.feature-item__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-primary);
    max-width: 260px;
}

.features__cta {
    text-align: center;
    margin-top: 60px;
}

.btn-white {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 22px 44px;
    background: var(--color-white);
    border-radius: 143px;
    color: var(--color-accent);
    font-size: 26px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 17px 35px;
    background: var(--color-accent);
    border-radius: 100px;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 91, 28, 0.3);
}

.btn-primary--large {
    padding: 20px 48px;
    font-size: 20px;
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================
   DIVIDER WITH SVG WAVE
   ============================ */
.divider {
    position: relative;
    padding: 0;
    overflow: hidden;
    width: 100%;
    z-index: 10;
    margin-bottom: -60px;
}

.divider__wave {
    width: 130%;
    height: 250px;
    display: block;
    margin-left: -15%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.divider__wave--desktop {
    display: block;
}

.divider__mobile {
    display: none;
}

.divider__text {
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 600;
    fill: var(--color-white);
    text-transform: lowercase;
}

/* ============================
   БЛОК 3: PERSONAL
   ============================ */
.personal {
    background: var(--bg-light);
    padding: 100px 140px 80px;
    position: relative;
}

.personal__container {
    max-width: 1000px;
    margin: 0 auto;
}

.personal__title {
    font-size: 48px;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

.personal__title--accent {
    color: var(--color-accent);
}

.personal__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.personal__image {
    flex-shrink: 0;
}

.personal__image img {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    object-fit: cover;
    border: 4px solid var(--color-primary);
}

.personal__info {
    max-width: 420px;
}

.personal__text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.personal__quote {
    padding-left: 20px;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 32px;
}

.personal__quote p {
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-primary);
}

/* ============================
   БЛОК 4: TESTIMONIALS
   ============================ */
.testimonials {
    background: #00000000;
    padding: 80px 140px 100px;
}

.testimonials__container {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonials__title {
    font-size: 48px;
    font-weight: 500;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

.testimonial {
    background: var(--color-white);
    border-radius: 20px;
    border: 1.05px solid #1B3A68;
    padding: 24px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); */
    position: relative;
}

.testimonial__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #D7E2E8;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    padding: 2px 16px;
    font-size: 12px;
    font-weight: 500;
    color: #1B3A68;
    white-space: nowrap;
    text-align: center;
    font-size: 0.9em;
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent);
}

.testimonial__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: grid-template-rows 0.45s cubic-bezier(.4,0,.2,1);
    grid-template-rows: 1fr;
    cursor: pointer;
}

.testimonial__text > span {
    overflow: hidden;
}

.testimonial__text.is-collapsed {
    grid-template-rows: 0fr;
}

.testimonial__text.is-open {
    -webkit-line-clamp: unset;
    max-height: none;
}

.testimonials__cta {
    text-align: center;
}

/* ============================
   MODAL
   ============================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--color-white);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s;
}

.modal__close:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.modal__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.3;
}

.modal__title--success {
    color: var(--color-accent);
}

.modal__field {
    margin-bottom: 16px;
}

.modal__field input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-primary);
    transition: border-color 0.3s;
}

.modal__field input::placeholder {
    color: #999;
}

.modal__field input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.modal__btn {
    width: 100%;
    padding: 16px;
    background: var(--color-accent);
    border: none;
    border-radius: 100px;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.modal__btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 91, 28, 0.3);
}

.modal__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-primary);
    text-align: center;
}

.modal__success {
    text-align: center;
    padding: 20px 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1400px) {
    .hero {
        padding: 40px 80px 60px;
    }
    
    .header {
        gap: 100px;
    }
    
    .hero__image img {
        width: 450px;
    }
    
    .hero__arrow--prev {
        left: 20px;
    }
    
    .hero__arrow--next {
        right: 20px;
    }
    
    .features,
    .personal,
    .testimonials,
    .cta,
    .footer {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 1200px) {
    .hero__container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .hero__content {
        text-align: center;
    }
    
    .hero__feature {
        justify-content: center;
    }
    
    .hero__image img {
        width: 500px;
    }
    
    .features__container {
        flex-direction: column;
        align-items: center;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 768px) {
    .hero {
        padding: 24px 20px 40px;
    }
    
    .header {
        justify-content: center;
        gap: 0;
    }
    
    .header__nav {
        display: none;
    }
    
    .hero__content {
        width: 100%;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        width: 100%;
        font-size: 16px;
        line-height: 1.5;
    }
    
    .hero__feature-box p {
        width: 100%;
        font-size: 16px;
    }
    
    .hero__image img {
        width: 100%;
        max-width: 400px;
    }
    
    .hero__arrow {
        width: 36px;
        height: 36px;
    }
    
    .hero__arrow--prev {
        left: 10px;
    }
    
    .hero__arrow--next {
        right: 10px;
    }
    
    .features,
    .personal,
    .testimonials,
    .cta,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .features__title,
    .personal__title,
    .testimonials__title {
        font-size: 28px;
    }
    
    .features {
        padding: 40px 20px 60px;
    }
    
    .features__title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .features__photo img {
        width: 280px;
        height: 280px;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-item__text {
        max-width: 100%;
    }
    
    .btn-white {
        font-size: 18px;
        padding: 16px 32px;
    }
    
    .divider {
        margin-bottom: -40px;
    }
    
    .divider {
        margin-bottom: -80px;
    }
    
    .divider__wave--desktop {
        display: none;
    }
    
    .divider__mobile {
        display: block;
        position: relative;
        height: 400px;
        margin-top: -40px;
        will-change: transform;
        transform: translateZ(0);
    }
    
    .divider__wave--mobile-1,
    .divider__wave--mobile-2 {
        position: absolute;
        width: 300%;
        height: 250px;
        will-change: transform;
        transform-origin: center center;
        backface-visibility: hidden;
    }
    
    .divider__wave--mobile-1 {
        top: -96px;
        left: -42%;
        transform: rotate(-35deg) translateZ(0);
    }
    
    .divider__wave--mobile-2 {
        top: 0px;
        left: -90%;
        transform: rotate(30deg) translateZ(0);
    }
    
    .divider__text {
        font-size: 14px;
    }
    
    .personal__content {
        flex-direction: column;
        text-align: center;
    }
    
    .personal__quote {
        text-align: left;
    }
    
    .personal__image img {
        width: 200px;
        height: 200px;
    }
    
    .testimonials {
        padding: 60px 20px 80px;
    }
    
    .testimonials__title {
        font-size: 28px;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial--featured {
        margin-top: 40px;
    }
    
    .divider__line {
        height: 70px;
        width: calc(100% - 40px);
    }
    
    .marquee__text {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .testimonials__grid {
        display: flex;
        flex-direction: column;
    }

    .testimonial--featured {
        order: -1;
    }

    .testimonials__title{
        margin-bottom: 10px;
    }
}
