
@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PTRootUI-Regular.woff2') format('woff2'),
         url('../fonts/PTRootUI-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PTRootUI-Medium.woff2') format('woff2'),
         url('../fonts/PTRootUI-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Root UI';
    src: url('../fonts/PTRootUI-Bold.woff2') format('woff2'),
         url('../fonts/PTRootUI-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


:root {
    --black: #121212;
    --white: #ffffff;
    --gray: #888888;
    --light-gray: #f5f5f5;
    --border-color: #e5e5e5;
    --accent-red: #E51D45;
    --font-main: 'PT Root UI', sans-serif;
    --font-headings: 'Unbounded', sans-serif;
}

/* BASE & RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    overflow-x: hidden;
}
body { background-color: var(--white); color: var(--black); font-family: var(--font-main); font-size: 16px; line-height: 1.6; }
body.no-scroll { overflow: hidden; }
.container { width: 90%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
a { color: var(--black); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-red); }
img { max-width: 100%; height: auto; display: block; }
.section-title { font-family: var(--font-headings); font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 20px; font-weight: 400; text-align: center; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--gray); margin-bottom: 60px; }
.section-divider { border: none; height: 1px; background-color: var(--border-color); margin: 0; }
.text-accent { color: var(--accent-red); }

/* CURSOR TRAIL */
.cursor-trail {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    animation: fade-out 1s forwards;
    user-select: none;
}
@keyframes fade-out {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, 50%) scale(0.5); }
}

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--border-color); }
.header__container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.header__brand { display: flex; align-items: center; gap: 12px; z-index: 101; }
.header__logo { height: 60px; object-fit: contain; }
.header__nav { display: flex; gap: 30px; font-weight: 500; }
.header__nav a { position: relative; padding: 5px 0; font-size: 1.15rem; }
.header__nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-red); transition: width 0.3s ease; }
.header__nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: 30px; }
.header__phone { font-weight: 500; }
.header__cta { background: var(--accent-red); color: var(--white); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: 500; transition: background 0.3s ease; display: block; text-align: center; }
.header__cta:hover { background: #c41235; color: var(--white); }
.burger-menu { display: none; }

/* HERO & SLOGAN BUBBLES */
.hero { min-height: 90vh; display: flex; align-items: center; text-align: center; position: relative; }
.hero__container { position: relative; width: 100%; }
.hero h1 { position: relative; z-index: 2; font-size: clamp(2.5rem, 5vw, 4rem); font-family: var(--font-headings); }
.hero h1::before { content: ''; position: absolute; inset: -40px; z-index: -1; background: rgba(255, 255, 255, 0.01); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: radial-gradient(ellipse, black 40%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse, black 40%, transparent 70%); }
.hero__slogans-bg { position: absolute; inset: -150px; z-index: 1; user-select: none; pointer-events: none; }
.slogan-bubble { position: absolute; font-family: var(--font-headings); font-weight: 500; font-size: 0.8rem; padding: 20px; border-radius: 50%; text-align: center; line-height: 1.4; will-change: transform; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border-color); color: var(--accent-red); box-shadow: 0 0 15px rgba(0,0,0,0.05); }

/* PRINCIPLES BLOCK */
.principles { padding: 120px 0; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background-color: var(--border-color); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.principle-item { background-color: var(--white); padding: 40px 30px; position: relative; overflow: hidden; }
.principle-number { position: absolute; top: -10px; right: 20px; font-size: 8rem; font-family: var(--font-headings); font-weight: 700; color: var(--light-gray); z-index: 1; line-height: 1; user-select: none; }
.principle-item h3 { font-family: var(--font-headings); font-size: 1.5rem; margin-bottom: 15px; position: relative; z-index: 2; }
.principle-item p { font-size: 1rem; line-height: 1.6; max-width: 300px; position: relative; z-index: 2; }

/* ABOUT & VIDEO BACKGROUND */
/* ИЗМЕНЕНИЕ: Скорректированы стили для блока "О нас" с видеофоном */
.about {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}
.about__video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    object-fit: contain; /* Чтобы видео не обрезалось */
}
.about::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 2; }
.about__container { position: relative; z-index: 3; display: flex; justify-content: center; }
.about__intro { max-width: 800px; text-align: center; color: var(--white); }
.about__intro .section-title { color: var(--white); }
.about__intro p { font-size: 1.2rem; line-height: 1.7; }
.about__intro strong { font-weight: 500; }

/* FOUNDER BLOCK */
.founder { padding: 120px 0; background-color: var(--light-gray); }
.founder__container { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.founder__photo img { width: 100%; border-radius: 10px; }
.founder__text h3 { font-family: var(--font-headings); font-size: 1.8rem; margin-bottom: 20px; }
.founder__text blockquote { margin: 0; padding: 0; border: none; }
.founder__text blockquote p { margin-bottom: 1em; font-size: 1.1rem; color: var(--gray); }
.founder__text blockquote p:last-child { margin-bottom: 0; }
.founder__text blockquote strong { color: var(--black); font-weight: 500; }


/* PROCESS */
.process { padding: 120px 0; background: var(--light-gray); }
.process-interactive { max-width: 1000px; margin: 0 auto; }
.process-progress-bar { width: 100%; background-color: var(--border-color); height: 2px; margin-bottom: 20px; }
.process-progress-bar__fill { width: 20%; height: 100%; background-color: var(--accent-red); transition: width 0.4s ease; }
.process-tabs { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); margin-bottom: 40px; }
.process-tab { padding: 15px 10px; margin: 0 5px; cursor: pointer; font-family: var(--font-headings); font-size: 1rem; color: var(--gray); position: relative; flex-grow: 1; text-align: center; transition: color .3s ease; white-space: nowrap; }
.process-tab span { font-size: .8rem; margin-right: 8px; }
.process-tab.active { color: var(--black); }
.process-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent-red); }
.process-content { display: none; }
.process-content.active { display: block; animation: fadeInContent .5s; }
.process-content h3 { font-family: var(--font-headings); font-size: 1.8rem; margin-bottom: 1rem; }
.process-content p { font-size: 1.1rem; max-width: 700px; }
@keyframes fadeInContent { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* SERVICES & SUBSCRIPTIONS (CARDS) */
.services, .subscriptions { padding: 120px 0; background: var(--light-gray); }
.subscriptions { background: var(--white); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.card { background: var(--white); border: 1px solid var(--border-color); padding: 30px; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.05); }
.card h3 { font-family: var(--font-headings); font-size: 1.5rem; margin-bottom: 1rem; }
.card h4 { font-family: var(--font-headings); font-size: 1.1rem; margin-top: 25px; margin-bottom: 15px; font-weight: 500; padding-bottom: 5px; border-bottom: 1px solid var(--border-color); }
.card .price { margin-bottom: 1rem; }
.card .price .old-price { font-size: 1.2rem; color: var(--gray); text-decoration: line-through; }
.card .price .new-price { font-family: var(--font-headings); font-size: 2rem; }
.card .price .price-highlight { color: var(--accent-red); }
.card .price.price-stacked span { display: block; text-align: left; }
.card .price.price-stacked .old-price { margin-bottom: 5px; }
.card .price.single-price { font-family: var(--font-headings); font-size: 2rem; }
.card .price.single-price span { font-size: 1rem; color: var(--gray); font-family: var(--font-main); }
.subscriptions .price.single-price { color: var(--accent-red); }
.card .note { color: var(--gray); font-size: .9rem; margin-bottom: 1.5rem; }
.card ul { list-style: none; margin-bottom: 1.5rem; padding-left: 0; }
.card ul li { padding-left: 20px; position: relative; margin-bottom: 10px; }
.card ul li::before { content: '✓'; color: var(--black); position: absolute; left: 0; }
.card ul li strong { font-weight: 700; }
.card .card-cta { background: var(--accent-red); color: var(--white); border: 1px solid var(--accent-red); padding: 15px; text-align: center; font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.card .card-cta:hover { background: var(--white); color: var(--accent-red); }
.card-footnote { font-size: 0.8rem; color: var(--gray); margin-top: 1.5rem; border-top: 1px solid var(--border-color); padding-top: 1rem; }
.card-footnote strong { font-weight: 500; color: var(--black); }

/* Card Badges */
.card-optimal, .card-premium { position: relative; border-width: 2px; }
.card-optimal { border-color: var(--black); }
.card-premium { border-color: var(--accent-red); }
.card-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: .8rem; font-weight: 700; max-width: 90%; text-align: center; }
.card-optimal .card-badge { background: var(--black); }
.card-premium .card-badge { background: var(--accent-red); }

/* PORTFOLIO */
.portfolio { padding: 120px 0; background-color: var(--light-gray); }
.portfolio-placeholder { text-align: center; padding: 80px 20px; border: 2px dashed var(--border-color); border-radius: 10px; }
.portfolio-placeholder p { font-size: 1.2rem; line-height: 1.7; margin-bottom: 30px; }

/* METRICS */
.metrics { padding: 120px 0; }
.metrics-description-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.metric-description-item h3 { font-family: var(--font-headings); font-size: 1.5rem; margin-bottom: 1rem; }
.metric-description-item p { color: var(--gray); }
.metric-description-item p:not(:last-child) { margin-bottom: 1rem; }
.metric-description-item strong { color: var(--black); font-weight: 500; }

/* CONTACT */
.contact { padding: 120px 0; background: var(--light-gray); }
.contact__container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact__info .section-title { text-align: left; }
.contact__info p { font-size: 1.1rem; max-width: 450px; margin-bottom: 30px; }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.contact__email, .contact__phone { font-family: var(--font-headings); font-size: 1.5rem; }
.contact__socials { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); width: 100%; }
.contact__social-link { font-family: var(--font-headings); font-size: 1.5rem; }
.contact__form form { display: grid; gap: 14px; }
.contact__form label { display: flex; flex-direction: column; font-weight: 500; font-size: .9rem; }
.contact__form input { padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-main); font-size: 1rem; }
.contact__form input:focus { border-color: var(--black); outline: none; }
.contact__form .consent { font-weight: 400; flex-direction: row; align-items: center; gap: 8px; margin-top: 6px; font-size: .8rem; }
.contact__form .cta-btn { background: var(--accent-red); color: var(--white); border: none; padding: 14px 22px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: background .3s ease; }
.contact__form .cta-btn:hover { background: #c41235; }

/* FOOTER */
.footer { padding: 30px 0; border-top: 1px solid var(--border-color); background: var(--white); }
.footer__container { display: flex; justify-content: space-between; align-items: center; }
.footer p, .footer a { color: var(--gray); }
.footer__nav { display: flex; gap: 20px; }

/* MOBILE NAV */
.mobile-nav { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background: var(--white); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a { font-family: var(--font-headings); font-size: 2rem; }
.mobile-nav__phone { font-family: var(--font-main); font-size: 1.2rem; font-weight: 500; margin-top: 20px; }

/* RESPONSIVE & ALIGNMENT */
@media(max-width: 1023px) {
    .cards-grid, .principles-grid, .metrics-description-grid { grid-template-columns: 1fr; }
    .card { max-width: 600px; margin: 0 auto; }
    .founder__container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .founder__photo { max-width: 300px; margin: 0 auto; }
}

@media (min-width: 1024px) {
  .card {
    display: flex;
    flex-direction: column;
  }
  .card__header {
    min-height: 11rem;
  }
  .card__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .card__body .card__section:last-of-type {
    margin-top: auto;
  }
  .card .card-cta {
    margin-top: auto;
  }
}

@media(max-width: 768px) {
    .header__nav, .header__actions { display: none; }
    .burger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 101; }
    .burger-menu span { width: 30px; height: 3px; background: var(--black); border-radius: 5px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }
    .burger-menu.active span:nth-child(1) { transform: rotate(45deg); }
    .burger-menu.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg); }
    .contact__container { grid-template-columns: 1fr; }
    .contact__info { text-align: center; }
    .contact__links { align-items: center; }
    .contact__socials { justify-content: center; }
    .process-tabs { flex-wrap: wrap; }
    .process-tab { flex-basis: 50%; white-space: normal; }
    
    .card__header { min-height: unset; }
    .card__body { flex-grow: 0; display: block; }
    .card__body .card__section:last-of-type { margin-top: 0; }
}

@media(max-width: 480px) {
    .process-tab { flex-basis: 100%; text-align: left; padding-left: 10px; }
}
