:root {
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-900: #111827;
    --stone-400: #9ca3af;
    --stone-500: #6b7280;
    --accent: #31b8c6;           /* ← НОВЫЙ БИРЮЗОВЫЙ */
    --accent-light: #4dd0e1;     /* ← СВЕТЛЫЙ БИРЮЗОВЫЙ */
    --accent-dark: #0e9aaf;      /* ← ТЕМНЫЙ БИРЮЗОВЫЙ */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--stone-500);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* КНОПКИ */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 184, 198, 0.4);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-tel {
    position: relative;
    padding-left: 2.8rem !important;
}

/* HERO С КАРТИНКОЙ */
.hero {
    min-height: 100vh;
    max-height: 110vh;
    background-image: url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
    color: #4dd0e1;
}

.hero-text h1 {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 8px 30px rgba(0,0,0,0.8);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 4px 20px rgba(0,0,0,0.7);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--accent-light);
    display: block;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 500;
}

/* СЕКЦИИ */
.section {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* SERVICES */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.8rem 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.service-icon {
    width: 85px;
    height: 85px;
    background: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.8rem;
    box-shadow: 0 10px 30px rgba(49, 184, 198, 0.4);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--gray-900);
}

.service-card p {
    color: var(--stone-500);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* FOOTER */
/* ФУТЕР — ПОЛНЫЙ КОД С ПОДСВЕТКОЙ */
.footer {
    background: var(--gray-900) !important;
    color: rgba(255,255,255,0.9);
    padding: 4rem 0 2.5rem;
}

.footer-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.12);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
    overflow: hidden;
}

.social-link img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: var(--accent) !important;
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 25px 55px rgba(49,184,198,0.5);
}

.social-link:hover img {
    transform: scale(1.15);
}




/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 1024px) {
    .nav {
        gap: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.2rem;
        padding: 0.8rem 0;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-text h1 {
        font-size: clamp(2.8rem, 9vw, 4.5rem);
        letter-spacing: -0.02em;
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        padding: 0 0.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .service-card {
        padding: 2.2rem 2rem;
    }
    
    .floating-tel {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-text {
        padding: 0 1rem;
    }
    
    .stat-number {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    
    .section {
        padding: 60px 0;
    }
}

/* Scrollbar для Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* SERVICES - НОВЫЙ ДИЗАЙН слева картинка, справа текст */
.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.service-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 420px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-content p {
    font-size: 1.15rem;
    color: var(--stone-500);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Мобильная версия */
@media (max-width: 1024px) {
    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }
    
    .service-image {
        height: 300px;
        margin: 0 auto;
        max-width: 500px;
    }
    
    .service-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .service-image {
        height: 250px;
    }
    
    .service-content h3 {
        font-size: 1.8rem;
    }
    
    .service-content p {
        font-size: 1rem;
    }
}

/* VIDEO СТРАНИЦА */
.youtube-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--gray-50) 0%, #f1f5f9 100%);
}

.youtube-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.youtube-banner:hover {
    transform: scale(1.02);
}

.youtube-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 50%);
    color: white;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
}

.banner-overlay h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.banner-overlay p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.video-section {
    padding: 100px 0;
    background: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.video-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    display: flex;           /* ← ДОБАВЬ */
    flex-direction: column;  /* ← ДОБАВЬ */
}

.video-card h3,
.video-card p {
    text-align: center !important;  /* ← ЭТО РАБОТАЕТ */
    margin: 0 auto !important;     /* ← ЭТО РАБОТАЕТ */
    padding: 0 1rem;               /* ← ОТСТУПЫ */
}

.video-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    padding-top: 1rem;
}

.video-card p {
    color: var(--stone-500);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-bottom: 1.5rem;
    max-width: 90%;
}

.video-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-color: rgba(49,184,198,0.2);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: none;
}

.video-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;  /* ← ГОРИЗОНТАЛЬНЫЙ ЦЕНТР */
    text-align: center;   /* ← ТЕКСТ внутри тоже по центру */
    width: 100%;
}

.video-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.video-info p {
    color: var(--stone-500);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 90%; /* ← ОГРАНИЧИВАЕТ ширину текста */
}

.video-duration {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* CTA блок - УЛУЧШЕННАЯ ВЕРСИЯ */
.video-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white); /* Чистый белый фон */
}

.video-cta-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.video-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(49, 184, 198, 0.1);
    border: 2px solid rgba(49, 184, 198, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.youtube-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: left 0.5s;
}

.youtube-link:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(49, 184, 198, 0.4);
}

.youtube-link:hover::before {
    left: 100%;
}

.youtube-link svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-cta {
        padding: 3rem 1.5rem;
    }
    
    .youtube-link {
        font-size: 1.1rem;
        padding: 0.9rem 1.8rem;
    }
}



/* Мобильный */
@media (max-width: 768px) {
    .youtube-banner {
        height: 300px;
    }
    
    .banner-overlay h1 {
        font-size: 2.2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Портфолио стили */
.portfolio-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portfolio-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 600px;
    margin: 20px auto 0;
    font-weight: 400;
}

.portfolio-carousel-section {
    padding: 60px 0;
    background: #fff;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.portfolio-slide {
    position: relative;
    height: 500px;
    background: #000;
}

.portfolio-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* НОВЫЙ overlay - универсальный для любых фото */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    /* ЧИСТЫЙ черный градиент - без синего! */
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.3) 0%,      /* Легкий черный сверху */
        rgba(0,0,0,0.7) 100%     /* Темный снизу */
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;  /* Уменьшили отступы */
}

.portfolio-info {
    background: rgba(0,0,0,0.85);     /* Черный полупрозрачный */
    backdrop-filter: blur(8px);
    padding: 18px 22px;               /* КОМПАКТНАЯ рамка */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 80%;                   /* Еще уже */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.portfolio-info h3 {
    font-size: 1.5rem;                /* МЕНЬШЕ текст */
    font-weight: 700;
    margin: 0 0 6px;                  /* Меньше отступ */
    color: white;                     /* ЧИСТЫЙ белый */
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    line-height: 1.3;
}

.portfolio-info p {
    font-size: 0.95rem;               /* МЕНЬШЕ текст */
    margin: 0 0 4px;
    color: #f8f9fa;                   /* Почти белый */
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(0,0,0,0.8);
}

.project-area {
    font-size: 0.85rem;               /* МЕНЬШЕ акцент */
    color: #e9ecef;                   /* Светло-серый белый */
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0,0,0,0.8);
}


/* Кнопки карусели */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #007bff;
    transform: scale(1.3);
}

/* Grid проектов */
.portfolio-grid {
    padding: 80px 0;
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-info span {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .portfolio-overlay { padding: 20px; }
    .portfolio-info { 
        padding: 15px 18px; 
        max-width: 90%;
        margin: 0 8px;
    }
    .portfolio-info h3 { font-size: 1.3rem; }
}


/* Мастер-классы */
.masterclass-hero {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.masterclass-hero .section-title {
    color: white;
    margin-bottom: 20px;
}

.masterclass-content {
    padding: 80px 0;
    background: #fff;
}

.masterclass-image {
    text-align: center;
    margin-bottom: 60px;
}

.masterclass-image img {
    max-width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.masterclass-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
}

.masterclass-program {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.masterclass-program h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.program-list {
    max-width: 800px;
    margin: 0 auto;
}

.program-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.program-step h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.program-step p {
    margin: 0;
    color: #6c757d;
}

.masterclass-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.masterclass-cta ul {
    max-width: 500px;
    margin: 0 auto 40px;
    padding-left: 20px;
}

.masterclass-cta li {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
}

/* Мобильная */
@media (max-width: 768px) {
    .masterclass-image img { height: 350px; }
    .masterclass-text h2 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; gap: 30px; }
    .program-step { flex-direction: column; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

/* Контакты */
.contacts-hero {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contacts-hero .section-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contacts-hero .hero-subtitle {
    color: #f8f9fa !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}


.contacts-main {
    padding: 80px 0;
    background: #fff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-info h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contacts-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
}

.contacts-form h2 {
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group input {
    flex: 1;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 25px;
    transition: border-color 0.3s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.contacts-map {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.map-placeholder p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Мобильная */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts-form {
        padding: 30px 20px;
    }
    
    .form-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
}

/* Телефон вместо кнопки на десктопе */
@media (min-width: 769px) {
    .btn.btn-primary[href^="tel:"] {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        color: #0e9aaf !important;           /* Как ссылки */
        text-decoration: none !important;
        box-shadow: none !important;
        outline: none !important;
        transition: color 0.3s ease !important;  /* Плавный переход */
    }
    
    .btn.btn-primary[href^="tel:"]:hover,
    .btn.btn-primary[href^="tel:"]:focus {
        color: #31b8c6 !important;           /* Как hover ссылок */
        text-decoration: underline !important;  /* Подчеркивание */
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        transform: none !important;          /* УБРАЛИ эффект поднятия */
    }
}

/* Кнопка в мобильной версии (остается) */
@media (max-width: 768px) {
    .btn.btn-primary[href^="tel:"] {
        background: linear-gradient(135deg, #007bff, #0056b3) !important;
        border: none !important;
        padding: 12px 24px !important;
        color: white !important;
        border-radius: 25px !important;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    }
    
    .btn.btn-primary[href^="tel:"]:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,123,255,0.4);
    }
}

/* ========================================================================== */
/* GRANI REMESLA — НОВАЯ ГЛАВНАЯ СТРАНИЦА                                     */
/* ========================================================================== */
.home-page {
    --ink: #111318;
    --ink-soft: #1a1d23;
    --paper: #f3f0e9;
    --paper-light: #fbfaf7;
    --muted: #686863;
    --gold: #c9a564;
    --gold-light: #e7ce9a;
    --line: rgba(17, 19, 24, .12);
    background: var(--paper-light);
    color: var(--ink);
}

.home-page .container { max-width: 1240px; }
.home-page img { display: block; max-width: 100%; }
.home-page button, .home-page a { font-family: inherit; }

.home-page .header {
    background: rgba(17, 19, 24, .94) !important;
    color: #fff;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.home-page .header-content { min-height: 76px; padding: .75rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center;
    border: 1px solid var(--gold); border-radius: 50%;
    color: var(--gold-light); font-family: Georgia, serif; font-weight: 700;
}
.brand-name { font-size: 1rem; font-weight: 800; letter-spacing: .13em; }
.home-page .nav { gap: 1.5rem; }
.home-page .nav-link { color: rgba(255,255,255,.74); font-size: .9rem; }
.home-page .nav-link:hover { color: var(--gold-light); }
.home-page .nav-link::after { background: var(--gold); }
.mobile-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.mobile-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: #fff; transition: .25s; }

.home-page .btn {
    justify-content: center; border-radius: 4px; border-width: 1px;
    padding: .9rem 1.35rem; font-size: .92rem; cursor: pointer;
}
.home-page .btn-small { padding: .68rem 1.05rem; }
.home-page .btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.home-page .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: none; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-secondary:hover { border-color: #fff; transform: translateY(-2px); }
.btn-dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #30343c; transform: translateY(-2px); }
.btn-gold { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.new-hero {
    position: relative; overflow: hidden; min-height: calc(100svh - 76px); display: flex; align-items: center;
    background:
      linear-gradient(90deg, rgba(17,19,24,.94) 0%, rgba(17,19,24,.80) 47%, rgba(17,19,24,.30) 100%),
      linear-gradient(0deg, rgba(17,19,24,.22), rgba(17,19,24,.08)),
      url('services/sinks.jpg') center 54%/cover no-repeat;
    color: #fff;
}
.new-hero::after {
    content: ''; position: absolute; inset: auto 0 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-glow { position: absolute; width: 520px; height: 520px; right: -200px; top: -150px; border: 1px solid rgba(201,165,100,.22); border-radius: 50%; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; gap: 3rem; padding-top: 32px; padding-bottom: 32px; }
.eyebrow { margin: 0 0 1.25rem; color: var(--gold-light); font-size: .76rem; font-weight: 700; letter-spacing: .18em; }
.eyebrow.dark { color: #8c6d37; }
.hero-copy h1 { max-width: 830px; margin: 0; font-size: clamp(3rem, 5.4vw, 5.25rem); line-height: 1.04; letter-spacing: -.055em; }
.hero-copy h1 span { display: block; color: var(--gold-light); font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.035em; }
.hero-lead { max-width: 690px; margin: 1.8rem 0 2rem; color: rgba(255,255,255,.75); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 760px; margin: 3.5rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: .88rem; }
.hero-facts span { margin-top: .2rem; color: rgba(255,255,255,.5); font-size: .78rem; }
.hero-visual { position: relative; align-self: end; height: clamp(520px, calc(100svh - 150px), 650px); }
.hero-visual::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,165,100,.16) 0%, rgba(49,51,54,.16) 42%, transparent 72%);
    filter: blur(18px);
}
.portrait-frame { position: relative; overflow: hidden; width: 100%; height: 100%; margin-left: auto; }
.portrait-frame img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 52% 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
    filter: drop-shadow(0 28px 28px rgba(0,0,0,.34));
}
.portrait-frame::after { content: none; }
.hero-signature { position: absolute; z-index: 3; left: -12px; bottom: 44px; padding: .9rem 1.2rem; background: rgba(17,19,24,.88); border-left: 2px solid var(--gold); box-shadow: 0 15px 35px rgba(0,0,0,.3); }
.hero-signature span, .hero-signature strong { display: block; }
.hero-signature span { color: rgba(255,255,255,.56); font-size: .72rem; }
.hero-signature strong { margin-top: .2rem; font-size: .92rem; }

.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { min-height: 120px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.trust-grid p { max-width: 690px; margin: 0; color: #555650; font-size: 1.08rem; }
.trust-grid a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .3rem; }

.home-page .section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-heading h2, .practicum-copy h2, .about-section h2, .contact-cta h2, .modal-dialog h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 4.1rem); line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.75; }

.works-section { background: var(--paper-light); }
.work-grid { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 1rem; }
.work-card { position: relative; overflow: hidden; min-height: 280px; background: #222; }
.work-card-large { grid-row: span 2; min-height: 580px; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,14,.9), transparent 60%); }
.work-card:hover img { transform: scale(1.025); }
.work-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.7rem; color: #fff; }
.work-caption span { color: var(--gold-light); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.work-caption h3 { margin: .4rem 0 0; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.work-caption p { margin: .45rem 0 0; color: rgba(255,255,255,.66); }
.text-link { display: inline-flex; gap: .6rem; margin-top: 2rem; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .3rem; }

.directions-section { background: var(--ink); color: #fff; }
.section-heading.light > p { color: rgba(255,255,255,.55); }
.direction-list { border-top: 1px solid rgba(255,255,255,.18); }
.direction-list article { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.direction-list article > span { color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; }
.direction-list h3 { margin: 0 0 .5rem; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.direction-list p { max-width: 800px; margin: 0; color: rgba(255,255,255,.58); line-height: 1.7; }

.practicum-section { background: var(--paper); }
.practicum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.practicum-image { position: relative; }
.practicum-image::before { content: ''; position: absolute; left: -18px; top: -18px; width: 40%; height: 40%; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); }
.practicum-image img { position: relative; width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: 50% 37%; filter: saturate(.75) contrast(1.05); }
.practicum-copy p:not(.eyebrow) { margin: 1.6rem 0 2rem; color: var(--muted); line-height: 1.8; }

.about-section { background: #22262d; color: #fff; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7rem; }
.about-text { border-left: 1px solid rgba(255,255,255,.18); padding-left: 3rem; }
.about-text p { color: rgba(255,255,255,.58); line-height: 1.8; }
.about-text .about-lead { margin-top: 0; color: #fff; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.5; }
.about-text .btn { margin-top: 1.2rem; }

.partner-section { background: var(--paper-light); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.partner-grid article { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 2rem; border: 1px solid var(--line); background: #fff; }
.partner-grid article > span { color: var(--gold); font-family: Georgia, serif; font-size: 1.1rem; }
.partner-grid h3 { margin: 0 0 .45rem; font-size: 1.55rem; }
.partner-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

/* Новое портфолио: только реальные работы Grani Remesla. */
.portfolio-page { background: var(--paper-light); }
.portfolio-new-hero { padding: 185px 0 95px; background: var(--ink); color: #fff; }
.portfolio-new-hero h1 { max-width: 970px; margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: 1.02; letter-spacing: -.055em; }
.portfolio-new-hero > .container > p:last-child { max-width: 680px; margin: 2rem 0 0; color: rgba(255,255,255,.58); font-size: 1.08rem; line-height: 1.75; }
.portfolio-showcase { padding: 110px 0; }
.portfolio-category + .portfolio-category { margin-top: 110px; }
.portfolio-category-head { display: grid; grid-template-columns: 70px 1fr; gap: 1.2rem; margin-bottom: 2.4rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.portfolio-category-head > span { color: var(--gold); font-family: Georgia, serif; font-size: 1.25rem; }
.portfolio-category-head h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.045em; }
.portfolio-category-head p { max-width: 720px; margin: .7rem 0 0; color: var(--muted); line-height: 1.7; }
.portfolio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.portfolio-project { position: relative; overflow: hidden; min-height: 430px; background: #16181c; color: #fff; }
.portfolio-project-wide { grid-column: span 2; min-height: 610px; }
.portfolio-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.portfolio-project::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,9,11,.92) 0%, rgba(8,9,11,.1) 68%); }
.portfolio-project:hover img { transform: scale(1.02); }
.portfolio-project > div { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 2rem; }
.portfolio-project small { color: var(--gold-light); font-weight: 800; letter-spacing: .13em; }
.portfolio-project h3 { margin: .55rem 0 .35rem; font-size: clamp(1.45rem, 2.5vw, 2.4rem); }
.portfolio-project p { max-width: 720px; margin: 0; color: rgba(255,255,255,.62); line-height: 1.6; }
.portfolio-cards-single .portfolio-project img { object-position: center 48%; }
.portfolio-contact { padding: 90px 0; background: var(--ink); color: #fff; }
.portfolio-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.portfolio-contact h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.05em; }

.contact-cta { padding: 90px 0; background: var(--gold); }
.contact-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.contact-cta .eyebrow { color: #624d28; }
.contact-cta p:not(.eyebrow) { max-width: 690px; margin: 1rem 0 0; color: rgba(17,19,24,.68); }
.contact-cta .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }

.new-footer { padding: 75px 0 25px; background: #0d0f12; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .5fr; gap: 4rem; }
.footer-brand { color: var(--gold-light); font-size: 1.2rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.footer-grid p { max-width: 390px; color: rgba(255,255,255,.48); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.footer-grid span { margin-bottom: .35rem; color: rgba(255,255,255,.38); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a, .footer-button { color: #fff; background: none; border: 0; padding: 0; font: inherit; text-decoration: none; cursor: pointer; }
.footer-grid a:hover, .footer-button:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.3); font-size: .78rem; }

.mobile-contact { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.contact-modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,8,10,.78); backdrop-filter: blur(8px); }
.modal-dialog { position: relative; z-index: 1; width: min(100%, 570px); padding: 2.5rem; background: var(--paper-light); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.modal-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.modal-close { position: absolute; right: 1rem; top: .7rem; background: none; border: 0; font-size: 2rem; cursor: pointer; color: var(--ink); }
.contact-options { display: grid; gap: .65rem; margin-top: 1.7rem; }
.contact-options a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 1rem; padding: .9rem; color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: .2s; }
.contact-options a:hover { border-color: var(--gold); background: #fff; transform: translateX(3px); }
.contact-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-light); font-weight: 800; }
.contact-options strong, .contact-options small { display: block; }
.contact-options small { margin-top: .15rem; color: var(--muted); }
.modal-dialog .modal-note { margin-bottom: 0; font-size: .75rem; }
body.modal-open { overflow: hidden; }

@media (max-width: 900px) {
    .home-page .header-content { min-height: 66px; }
    .mobile-toggle { display: block; position: relative; z-index: 2; }
    .home-page .nav {
        position: fixed; inset: 66px 0 auto; display: none; padding: 1.2rem 1.5rem 1.5rem;
        background: #111318; border-top: 1px solid rgba(255,255,255,.1);
        flex-direction: column; align-items: stretch; gap: .25rem;
    }
    .home-page .nav.active { display: flex; }
    .home-page .nav-link { padding: .75rem 0; }
    .new-hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 90px; }
    .hero-copy { text-align: left; }
    .hero-visual { width: min(82%, 460px); height: 570px; margin: 0 auto; }
    .portrait-frame img { inset: 0; width: 100%; height: 100%; object-position: 52% 35%; transform: none; }
    .hero-signature { left: -20px; }
    .trust-grid, .section-heading, .practicum-grid, .about-grid, .contact-cta-inner { grid-template-columns: 1fr; gap: 2rem; }
    .section-heading { align-items: start; }
    .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .work-card-large { grid-column: span 2; grid-row: auto; min-height: 480px; }
    .about-text { padding-left: 0; border-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: span 2; }
    .portfolio-page .nav { position: fixed; inset: 66px 0 auto; display: none; padding: 1.2rem 1.5rem 1.5rem; background: #111318; border-top: 1px solid rgba(255,255,255,.1); flex-direction: column; align-items: stretch; gap: .25rem; }
    .portfolio-page .nav.active { display: flex; }
    .portfolio-project-wide { min-height: 520px; }
}

@media (max-width: 600px) {
    .home-page .container { padding-left: 1.1rem; padding-right: 1.1rem; }
    .home-page .header-content { padding-left: 1.1rem; padding-right: 1.1rem; }
    .brand-name { font-size: .86rem; letter-spacing: .1em; }
    .brand-mark { width: 38px; height: 38px; }
    .new-hero { background-position: 68% center; }
    .hero-grid { padding-top: 62px; padding-bottom: 0; }
    .hero-copy h1 { font-size: clamp(2.55rem, 12.5vw, 3.6rem); }
    .hero-lead { font-size: 1rem; line-height: 1.6; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-facts { grid-template-columns: 1fr; gap: .8rem; margin-top: 2.2rem; padding-bottom: 1.5rem; }
    .hero-facts li { padding-left: .9rem; border-left: 1px solid var(--gold); }
    .hero-visual { width: 94%; height: 500px; }
    .portrait-frame img { inset: 0; width: 100%; height: 100%; object-position: 52% 34%; }
    .hero-signature { left: -10%; bottom: 20px; }
    .trust-grid { padding-top: 1.7rem; padding-bottom: 1.7rem; }
    .home-page .section { padding: 75px 0; }
    .section-heading { margin-bottom: 2rem; }
    .work-grid { display: grid; grid-template-columns: 1fr; }
    .work-card-large { grid-column: auto; min-height: 430px; }
    .work-card { min-height: 300px; }
    .direction-list article { grid-template-columns: 48px 1fr; }
    .practicum-grid { gap: 2.5rem; }
    .partner-grid { grid-template-columns: 1fr; }
    .partner-grid article { grid-template-columns: 42px 1fr; padding: 1.5rem; }
    .portfolio-new-hero { padding: 125px 0 70px; }
    .portfolio-new-hero h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
    .portfolio-new-hero h1 br { display: none; }
    .portfolio-showcase { padding: 75px 0; }
    .portfolio-category + .portfolio-category { margin-top: 75px; }
    .portfolio-category-head { grid-template-columns: 42px 1fr; }
    .portfolio-cards { grid-template-columns: 1fr; }
    .portfolio-project, .portfolio-project-wide { grid-column: auto; min-height: 420px; }
    .portfolio-contact-inner { align-items: flex-start; flex-direction: column; }
    .contact-cta { padding: 70px 0 95px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.3rem; }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: .25rem; }
    .mobile-contact { display: block; position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: .8rem; width: calc(100% - 2rem); padding: .95rem; border: 0; border-radius: 3px; background: var(--gold); color: var(--ink); font: 700 .92rem Manrope, sans-serif; box-shadow: 0 8px 35px rgba(0,0,0,.28); }
    .modal-dialog { max-height: calc(100vh - 2rem); overflow-y: auto; padding: 2rem 1.2rem 1.3rem; }
    .modal-dialog h2 { font-size: 2.15rem; }
}
