:root {
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #f5f5f5;
    --color-dark-gray: #333333;
    --color-accent: #FF0000;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

#hatCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--color-white);
}

#morph3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
    background: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-width: thin;
    scrollbar-color: #FFD600 #fafafa;
}

@font-face {
    font-family: 'GarciaMarquez';
    src: url('assets/fonts/GarciaMarquez.otf') format('opentype');
}

@font-face {
    font-family: 'DisruptorScript';
    src: url('assets/fonts/Disruptor\'s Script.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-black);
    background: #fff !important;
    overflow-x: hidden;
}

header {
    background: #fff !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    overflow: hidden;
}

header.scrolled {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    gap: 40px;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: max-content;
    will-change: transform;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

nav ul:hover {
    animation-play-state: paused;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-black);
    font-family: 'GarciaMarquez', serif;
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--color-accent);
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
}

/* Section styles */
.section {
    padding: 8px 0;
    min-height: auto;
    display: flex;
    align-items: center;
    /* background: #fff; */
}

#about.section {
    background: none !important;
}

h1:not(.hero-title-caps), h2, h3 {
    font-family: 'DisruptorScript', serif;
    font-size: 10rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.2;
}
@media (max-width: 700px) {
    h1:not(.hero-title-caps), h2, h3 {
        font-size: 5rem;
    }
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.profile-image {
    position: relative;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: scale(0.85) rotate(-5deg);
    transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 1.1s cubic-bezier(.4,0,.2,1);
}

.profile-image img.visible {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Список достижений в about */
.about-list {
    list-style: disc inside;
    margin-bottom: 18px;
    padding-left: 0;
    font-size: 1.15rem;
    color: #222;
    font-family: var(--font-primary);
}
.about-list li {
    margin-bottom: 7px;
    line-height: 1.5;
    font-weight: 500;
}

.about-divider {
    margin: 18px 0 18px 0;
}

.about-description {
    font-size: 1.08rem;
    color: #222;
    margin-top: 0;
    line-height: 1.7;
    font-family: var(--font-primary);
    text-align: left;
    margin-bottom: 0;
}
.about-description p {
    margin: 0 0 12px 0;
    text-align: left;
}
.about-description b {
    color: var(--color-accent);
    font-weight: 700;
}
.about-description i {
    color: #888;
    font-style: italic;
}

/* Reviews section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.review-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    transition: var(--transition);
    overflow: hidden;
}

.review-card:hover {
    border-color: var(--color-accent);
}

.review-card h3 {
    font-family: 'DisruptorScript', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--color-black);
}

.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 8em;
    transform: scaleY(0.98);
    opacity: 0.7;
    transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
    transform-origin: top;
}

.review-card.expanded .review-text {
    -webkit-line-clamp: unset;
    max-height: 1000px;
    overflow: visible;
    padding-bottom: 10px;
    transform: scaleY(1);
    opacity: 1;
    transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
}

.review-toggle {
    margin-top: auto;
    background: #fff;
    color: #b30000;
    border: 1px solid #b30000;
    border-radius: 8px;
    padding: 7px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.review-toggle:hover {
    background: #b30000;
    color: #fff;
}

.review-author {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
}

/* Manual section */
.manual-content {
    text-align: center;
}

.manual-links {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
    animation: btn-pulse 2.5s infinite cubic-bezier(.4,0,.2,1);
}

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.btn:hover {
    background: var(--color-accent);
}

/* Media section */
.social-links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 0;
    width: 100%;
    flex: 1 1 0;
    height: 100%;
    max-width: 300px;
}

.social-link {
    display: inline-block;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    padding: 14px 32px;
    border-radius: 10px;
    margin-bottom: 16px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-family: inherit;
    font-weight: 500;
}

.social-link:hover {
    background: #ffe600;
    color: #000;
    transform: scale(1.06);
}

/* Contacts section */
.contact-info {
    text-align: center;
    margin-top: 20px;
}

.contact-info a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--color-accent);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

/* Responsive design */
@media (max-width: 768px) {
    .section {
        padding: 24px 0;
    }

    h1, h2 {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 15px;
    }

    .manual-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .social-links {
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .review-card h3 {
        font-size: 1.8rem;
    }

    nav ul li a {
        font-size: 1.3rem;
    }
}

/* Улучшенный fade-in секций */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.9s cubic-bezier(.4,0,.2,1), transform 0.9s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 10px;
    background: #fafafa;
    border-radius: 8px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #FFD600;
    border-radius: 8px;
    border: 2px solid #fafafa;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC400;
}

/* Добавляем параллакс эффект */
.parallax {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s linear;
}

/* Manual preview styles */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.preview-grid img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.preview-grid img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .preview-grid img {
        max-width: 100%;
    }
}

/* Эффект выпрыгивания букв */
.animated-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.9) rotate(-8deg);
    animation: letter-pop 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes letter-pop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

.hero-title-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    text-align: left;
    position: relative;
    /* background: none; */
}
.hero-title-caps {
    font-family: 'GarciaMarquez', serif;
    font-size: 16vw;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.98;
    text-align: left;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}
.hero-title-new {
    position: relative;
    background: rgba(255,255,255,var(--hero-bg-opacity,1));
    border-radius: 36px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.10);
    padding: 48px 38px;
    max-width: 100vw;
    margin-left: 0;
    padding-top: 100px;
    box-sizing: border-box;
    transition: background 0.3s;
}
@media (max-width: 700px) {
    .hero-title-section {
        height: auto !important;
        min-height: unset !important;
        width: 100vw;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin-top: 60px;
    }
    .hero-title-new {
        width: 100vw;
        max-width: 100vw;
        padding: 32px 10px 24px 10px !important;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .hero-title-caps {
        font-size: 18vw !important;
    }
    .hero-signup-btn {
        font-size: 1.1rem;
        padding: 16px 0;
        width: 100%;
        margin-bottom: 18px;
    }
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 10px;
    }
    .hero-directions-inline {
        font-size: 0.95rem;
        text-align: center;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 8px;
    }
}
.hero-subtitle-tight {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    color: #111;
    font-weight: 400;
    text-align: left;
    letter-spacing: 0.04em;
}
.hero-directions-tight {
    margin-top: 0.7em;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #111;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: left;
    max-width: 900px;
}
@media (max-width: 700px) {
    .hero-title-caps { font-size: 10vw; }
    .hero-title-new { padding-left: 12px; padding-top: 60px; }
    .hero-subtitle-tight { font-size: 1rem; }
    .hero-directions-tight { font-size: 0.85rem; }
}
.hero-title-red {
    color: #b30000;
}
.hero-title-black {
    color: #111;
}

.hero-subtitle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 2.2em auto 0 auto;
    max-width: 800px;
    justify-items: center;
}
.subtitle-card {
    background: #fff;
    color: #b32b2b;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(255,0,0,0.08), 0 1.5px 0 #f5f5f5;
    padding: 18px 16px 14px 16px;
    transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
    text-align: center;
    cursor: default;
    user-select: none;
}
.subtitle-card:hover {
    background: #ffeaea;
    box-shadow: 0 6px 32px rgba(255,0,0,0.18), 0 1.5px 0 #f5f5f5;
    transform: translateY(-4px) scale(1.04);
}
@media (max-width: 900px) {
    .hero-subtitle-cards { gap: 10px; }
    .subtitle-card { font-size: 0.95rem; padding: 13px 8px; }
}
@media (max-width: 600px) {
    .hero-subtitle-cards { grid-template-columns: 1fr; }
    .subtitle-card { font-size: 0.85rem; padding: 10px 6px; }
}

.hero-title-caps.animated-title span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.hero-directions-inline.hero-directions-tight {
    width: 100vw;
    max-width: 100vw;
    margin-left: -32px;
    padding-left: 32px;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .hero-directions-inline.hero-directions-tight {
        padding-left: 12px;
        margin-left: -12px;
    }
}

/* Анимация появления секций */
.fade-in-advanced {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
.fade-in-advanced.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Анимация заголовков */
.animated-title-reactbits span {
    display: inline-block;
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}
.animated-title-reactbits.visible span {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Анимация направлений */
.direction-animate {
    opacity: 0;
    transform: translateX(-30px) scale(0.97);
    transition: opacity 0.7s, transform 0.7s;
    display: inline-block;
}
.direction-animate.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Анимация кнопок */
.btn-animate {
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s;
}
.btn-animate:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 32px rgba(255,0,0,0.13);
}

.manual-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 36px 0 32px 0;
    overflow: visible;
}
.manual-preview-item {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: box-shadow 0.25s;
}
.manual-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: none;
    transition: transform 0.25s;
    cursor: pointer;
}
.manual-preview-item img:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 32px rgba(255,0,0,0.13);
}
@media (max-width: 900px) {
    .manual-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .manual-preview-item {
        flex: 0 0 160px;
        height: 180px;
    }
}
@media (max-width: 600px) {
    .manual-preview-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .manual-preview-item {
        flex: 0 0 120px;
        height: 120px;
    }
}

.btn.manual-btn {
    display: inline-block;
    background: #fff;
    color: #111;
    border: 1.5px solid #FFD600;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 36px;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(255,214,0,0.07);
    letter-spacing: 0.04em;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    cursor: pointer;
    position: relative;
    animation: none;
}
.btn.manual-btn:hover {
    background: #FFD600;
    color: #111;
    border-color: #FFD600;
    box-shadow: 0 6px 32px rgba(255,214,0,0.13);
}

.manual-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    animation: fadeInModal 0.25s;
}
.manual-modal-backdrop {
    position: absolute;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}
.manual-modal-img {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    background: #fff;
    padding: 8px;
    animation: scaleInModal 0.3s;
}
.manual-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
}
.manual-modal-close::before,
.manual-modal-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2.5px;
    background: #b30000;
    border-radius: 2px;
    transform-origin: center;
}
.manual-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.manual-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.manual-modal-close:hover {
    background: #ffeaea;
    box-shadow: 0 4px 16px rgba(179,0,0,0.13);
}
@keyframes fadeInModal {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleInModal {
    from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; }
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #FFD600 #fafafa;
}

.dev-signature {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
    font-style: normal;
    text-align: center;
    letter-spacing: 0.04em;
    font-weight: 400;
    line-height: 1.6;
    padding-bottom: 0;
}
.dev-signature::before {
    content: none;
}
.dev-link {
    color: #1b5e20;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    /* background: linear-gradient(90deg, #b2ff59 0%, #69f0ae 100%); */
    padding: 2px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, text-decoration-color 0.2s;
}
.dev-link:hover {
    color: #000;
}
@keyframes fadeInDev {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 0.7; transform: none; }
}

.review-toggle.btn.manual-btn {
    margin-top: auto;
    display: inline-block;
    min-width: 180px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 12px;
    border: 1.5px solid #FFD600;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 12px rgba(255,214,0,0.07);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.18s;
    cursor: pointer;
    padding: 12px 36px;
}
.review-toggle.btn.manual-btn:hover {
    background: #FFD600;
    color: #111;
    border-color: #FFD600;
    box-shadow: 0 6px 32px rgba(255,214,0,0.13);
}

.about-flex {
    display: flex;
    gap: 48px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}
.about-photo {
    flex: 0 0 320px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}
.about-photo img {
    width: auto;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(255,0,0,0.10), 0 1.5px 0 #f5f5f5;
    border: 3px solid #fff;
    background: #fff;
    display: block;
}
.about-content-block {
    flex: 1 1 320px;
    min-width: 260px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
.about-list {
    list-style: disc inside;
    margin-bottom: 18px;
    padding-left: 0;
    font-size: 1.12rem;
    color: #222;
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.7;
}
.about-list li {
    margin-bottom: 7px;
    line-height: 1.5;
    position: relative;
    padding-left: 18px;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: #FFD600;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #FF3B3B;
}
.about-pencil-line {
    margin: 1px 0;
}
.about-pencil-line svg {
    width: 100%;
    height: 18px;
}
.about-description {
    font-size: 1.08rem;
    color: #222;
    margin-top: 0;
    line-height: 1.7;
    font-family: var(--font-primary);
}
@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .about-photo {
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
    }
    .about-photo img {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: 320px;
    }
    .about-content-block {
        max-width: 100%;
        height: auto;
    }
}

.about-list.no-bullets {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}
.about-list.no-bullets li {
    margin-bottom: 7px;
    font-size: 1.08rem;
    font-family: var(--font-primary);
    color: #222;
    font-weight: 500;
    line-height: 1.6;
    padding-left: 0;
}

.about-list.plain-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
}
.about-list.plain-list li {
    margin-bottom: 7px;
    font-size: 1.08rem;
    font-family: var(--font-primary);
    color: #222;
    font-weight: 500;
    line-height: 1.6;
    padding-left: 0;
}
.about-list.plain-list li::before {
    display: none;
}
.about-pencil-line svg {
    width: 100%;
    height: 12px;
}

.profi-link {
    font-size: 1em;
    font-weight: bold;
    color: #111;
    text-decoration: none;
    margin-left: 0;
    transition: color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.profi-link:hover {
    color: #FF3B3B;
    text-decoration: underline;
}

.profi-caption {
    margin-bottom: 18px;
    margin-top: -10px;
    text-align: left;
    font-size: 1.25em;
    font-weight: bold;
}

.profi-grey {
    color: #888;
    font-weight: normal;
}

.contact-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 24px !important;
    margin-top: 0 !important;
}

.contact-btn {
    padding: 10px 20px;
    background-color: #FF3B3B;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #e02e2e;
    transform: scale(1.05);
}

.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    max-width: 220px;
    min-width: 120px;
    flex: 1 1 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #ffffff00 !important;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    display: block;
    /* background: #fff; */
    /* outline: none; */
}

/* --- Media section flex layout --- */
.media-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 48px;
}
.media-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 180px;
    /* max-width: 220px; */
    /* height: 100%; */
    padding: 0;
}
.media-title {
    margin-bottom: 32px;
    text-align: left;
    white-space: nowrap;
}
.media-content-block {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    margin-top: 0;
    height: auto;
}
.social-links {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 0;
    width: 100%;
    flex: 1 1 0;
    height: 100%;
    max-width: 300px;
}
.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    max-width: 330px;
    min-width: 180px;
    flex: 1 1 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #fff;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    height: 100%;
}
.video-container video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

/* Выровнять видео и соцсети по верхней границе */
.media-videos-grid {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    flex: 1 1 0;
}
@media (max-width: 900px) {
    .media-videos-grid {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    .media-videos-grid .video-container {
        max-width: 90vw;
        min-width: 0;
    }
}

.media-note {
    font-size: 1.18rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 8px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: top;
}
.media-note b {
    color: #FF3B3B;
    font-weight: 700;
    letter-spacing: 1px;
}
@media (max-width: 900px) {
    .media-note {
        display: block;
        margin-left: 0;
        margin-top: 10px;
        max-width: 100vw;
        text-align: center;
    }
}

.media-header-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 8px;
    text-align: center;
}
.media-title, .media-note {
    text-align: left;
}
@media (max-width: 900px) {
    .media-header-block {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
}

.manual-note {
    display: block;
    font-size: 1.08rem;
    font-weight: 500;
    color: #222;
    font-family: 'Montserrat', sans-serif;
    margin-top: 0.2em;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0;
}

.section h2 {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.contact-info h2, .section h2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.contact-buttons {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.hero-signup-btn {
    display: inline-block;
    position: absolute;
    left: 80%;
    bottom: 18%;
    transform: translateX(-50%);
    padding: 14px 32px;
    background: #fff;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border-radius: 14px;
    box-shadow: none;
    font-family: inherit;
    font-weight: 600;
    border: 2px solid #ffe600;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    outline: none;
    cursor: pointer;
    z-index: 2;
    animation: none !important;
}
.hero-signup-btn:hover {
    background: #ffe600;
    color: #111;
    border-color: #ffd600;
    transform: translateX(-50%) scale(1.06);
}
@media (max-width: 700px) {
    .hero-signup-btn {
        position: static;
        display: block;
        margin: 18px auto 0 auto;
        left: auto;
        bottom: auto;
        transform: none;
    }
}

/* Улучшенные медиа-запросы для мобильных устройств */
@media (max-width: 480px) {
    /* Общие стили для мобильных */
    .container {
        padding: 0 15px;
    }

    /* Навигация */
    nav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-start;
        animation: marquee 18s linear infinite !important;
        flex-wrap: nowrap;
        overflow-x: hidden;
        gap: 30px;
        width: max-content;
        min-width: 100vw;
        padding: 0 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    nav ul::-webkit-scrollbar {
        display: none;
    }
    nav ul li {
        flex: 0 0 auto;
        width: auto !important;
    }
    nav ul li a {
        width: auto !important;
        display: inline-block;
        text-align: center;
        font-size: 1.1rem;
        padding: 5px 0;
    }
    header {
        padding: 10px 0;
    }

    /* Заголовки */
    h1:not(.hero-title-caps), h2, h3 {
        font-size: 5rem;
    }

    /* Секция "Обо мне" */
    .about-flex {
        flex-direction: column;
    }

    .about-photo {
        width: 100%;
        margin-bottom: 20px;
    }

    .about-photo img {
        max-width: 100%;
        height: auto;
    }

    .about-content-block {
        width: 100%;
    }

    .about-list {
        font-size: 1rem;
    }

    /* Секция "Пособие" */
    .manual-preview-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: 100%;
    }

    .manual-preview-item {
        width: 85vw;
        max-width: 340px;
        aspect-ratio: 3/4;
        border-radius: 18px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.10);
        overflow: hidden;
        background: #fff;
        transition: transform 0.18s;
        margin: 0 auto;
    }
    .manual-preview-item img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 18px;
        box-shadow: none;
        transition: transform 0.18s;
    }
    .manual-preview-item:active,
    .manual-preview-item img:active {
        transform: scale(1.04);
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }

    .manual-links {
        flex-direction: column;
        gap: 10px;
    }

    .btn.manual-btn {
        width: 100%;
        text-align: center;
    }

    /* Секция "Медиа" */
    .media-videos-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        aspect-ratio: 16/9;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Секция "Отзывы" */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 15px;
    }

    .review-card h3 {
        font-size: 1.8rem;
    }

    /* Секция "Контакты" */
    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info a {
        font-size: 1rem;
    }
}

/* Улучшенные стили для планшетов */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .manual-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Улучшенные стили для маленьких планшетов */
@media (min-width: 769px) and (max-width: 900px) {
    .manual-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Улучшенные стили для модального окна */
@media (max-width: 600px) {
    .manual-modal {
        padding: 10px;
    }

    .manual-modal-img {
        max-width: 95%;
        max-height: 95vh;
    }

    .manual-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* Улучшенные стили для героя на мобильных */
@media (max-width: 480px) {
    .hero-title-caps {
        font-size: 8vw;
    }

    .hero-title-new {
        padding-left: 10px;
        padding-top: 50px;
    }

    .hero-subtitle-tight {
        font-size: 0.9rem;
    }

    .hero-directions-tight {
        font-size: 0.8rem;
    }

    .hero-signup-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Улучшенные стили для футера */
@media (max-width: 480px) {
    footer {
        padding: 20px 0;
    }

    footer .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .dev-signature {
        margin-top: 10px;
    }
}

@media (max-width: 700px) {
    .media-videos-grid {
        display: none !important;
    }
}

.scroll-to-top {
    position: fixed;
    right: 18px;
    bottom: 32px;
    z-index: 9999;
    background: #FFD600;
    color: #222;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    display: none;
}
.scroll-to-top:hover {
    opacity: 1;
    transform: scale(1.08);
} 