/* ================= БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
    --primary-color: #4A6572;
    --accent-color: #FF6B8B;
    --secondary-color: #4ECDC4;
    --light-bg: #F9F7F3;
    --paper-texture: #F5F1EA;
    --text-dark: #333333;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* Переменные для карточек */
    --card-bg: #ffffff;
    --card-radius: 20px;
    --card-padding: 2rem;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 30px 50px -15px rgba(0, 0, 0, 0.12), 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --card-border: 1px solid rgba(0, 0, 0, 0.03);
}

body {
    background-color: transparent;
    color: var(--text-dark);
    line-height: 1.6;
    background-image: url('img/back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* =============== HEADER & NAVIGATION =============== */
.header {
    background: rgba(249, 247, 243, 0.92);
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo span {
    color: var(--accent-color);
    font-weight: 700;
    margin-left: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 80%;
}

.header-contacts {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    padding-right: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    background: white;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* =============== HERO SECTION =============== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}



.hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #666;
    max-width: 500px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.1rem 2.2rem;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.9) 0%, rgba(255, 107, 139, 0.95) 50%, rgb(255, 85, 119) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.4), 0 0 0 2px rgba(255, 107, 139, 0.1);
    background: linear-gradient(135deg, rgb(255, 107, 139) 0%, rgb(255, 85, 119) 50%, rgb(255, 65, 95) 100%);
}

.cta-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(3px);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* =============== КАРТОЧКИ (ПРЕМИУМ) =============== */
/* Базовые стили для всех карточек */
.industry-card,
.feature-card,
.service-card,
.step-card,
.about-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
    overflow: hidden;
}

/* Эффект мазка кисти при ховере */
.industry-card::after,
.feature-card::after,
.service-card::after,
.step-card::after,
.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 139, 0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.industry-card:hover::after,
.feature-card:hover::after,
.service-card:hover::after,
.step-card:hover::after,
.about-card:hover::after {
    opacity: 1;
}

/* Подъём и тень при ховере */
.industry-card:hover,
.feature-card:hover,
.service-card:hover,
.step-card:hover,
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 107, 139, 0.15);
}

/* Акцентная полоса сверху */
.industry-card::before,
.feature-card::before,
.service-card::before,
.step-card::before,
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 2;
}

.industry-card:hover::before,
.feature-card:hover::before,
.service-card:hover::before,
.step-card:hover::before,
.about-card:hover::before {
    transform: scaleX(1);
}

/* Иконки в карточках */
.industry-icon,
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.08), rgba(78, 205, 196, 0.08));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 139, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.industry-icon i,
.feature-icon i {
    font-size: 2.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 139, 0.2));
}

.industry-card:hover .industry-icon,
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.15), rgba(78, 205, 196, 0.15));
    border-color: var(--accent-color);
    transform: scale(1.05);
    animation: iconPulse 1.5s infinite;
}

.industry-card:hover .industry-icon i,
.feature-card:hover .feature-icon i {
    color: var(--secondary-color);
    transform: scale(1.1) rotate(5deg);
}

@keyframes iconPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0.2); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 139, 0); }
}

/* Карточки услуг */
.service-card {
    padding: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    filter: grayscale(30%) brightness(0.98);
}

.service-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
}

.service-info {
    padding: 1.8rem 1.8rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    position: relative;
    z-index: 2;
}

.service-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-info p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

/* Кнопка "Подробнее" */
.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1.5px solid rgba(255, 107, 139, 0.4);
    border-radius: 40px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.details-btn i {
    transition: transform 0.3s ease;
}

.details-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 107, 139, 0.25);
}

.details-btn:hover i {
    transform: translateX(5px);
}

/* Карточки преимуществ */
.feature-card {
    text-align: center;
    align-items: center;
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-badge {
    margin-top: 1.2rem;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 30px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Карточки отраслей */
.industry-card {
    text-align: center;
    padding-bottom: 2.5rem;
}

.industry-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.industry-content p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.industry-badge span {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 107, 139, 0.08);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.industry-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(4px);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 1px solid rgba(255, 107, 139, 0.15);
    text-align: left;
    z-index: 5;
}

.industry-card:hover .industry-hover {
    transform: translateY(0);
}

.industry-hover ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.industry-hover li {
    padding: 0.4rem 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.industry-hover li::before {
    content: "▹";
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Карточки этапов */
.step-card {
    text-align: center;
    position: relative;
    border: none;
    background: linear-gradient(145deg, #ffffff, #fafafa);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(255, 107, 139, 0.2);
    border: 3px solid white;
    outline: 1px solid rgba(255, 255, 255, 0.5);
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Карточки "О нас" (about-card) */
.about-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem;
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-card h3::before {
    content: "✨";
    font-size: 1.2rem;
}

.about-list {
    list-style: none;
    margin-top: 1rem;
}

.about-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.about-list li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* =============== INDUSTRIES SECTION =============== */
.industries {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: #000000;
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============== PORTFOLIO SLIDER =============== */
.portfolio {
    padding: 6rem 5%;
    /* background: rgba(255, 255, 255, 0.7); */
    position: relative;
    overflow: hidden;
}

.portfolio .section-title {
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
    display: block;
}

.portfolio-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.portfolio-grid {
    display: flex;
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.portfolio-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.slider-arrow:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.3);
}

.slider-arrow.left { left: 0; }
.slider-arrow.right { right: 0; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    z-index: 10;
    position: relative;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.2);
}

.slider-dot:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* =============== FEATURES SECTION =============== */
.features {
    padding: 6rem 5%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =============== WORK STEPS SECTION =============== */
.work-steps {
    padding: 6rem 5%;
    /* background: rgba(255, 255, 255, 0.7); */
}

.work-steps > .section-title {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 3rem;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    opacity: 0.2;
    z-index: 1;
}

/* =============== SERVICES SECTION =============== */
.services {
    padding: 6rem 5%;
}

.services > .section-title {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 3rem;
}

.service-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* =============== CONTACTS SECTION =============== */
.contacts {
    padding: 6rem 5%;
    /* background: white; */
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(249, 247, 243, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.1);
}

.contact-form button.cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 1.2rem 2rem;
    font-size: 1.05rem;
    background: linear-gradient(135deg, rgba(74, 101, 114, 0.9) 0%, rgba(74, 101, 114, 0.95) 50%, rgb(58, 80, 90) 100%);
    box-shadow: 0 4px 15px rgba(74, 101, 114, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.contact-form button.cta-btn:hover {
    background: linear-gradient(135deg, rgb(74, 101, 114) 0%, rgb(58, 80, 90) 50%, rgb(50, 70, 80) 100%);
    box-shadow: 0 8px 25px rgba(74, 101, 114, 0.4), 0 0 0 2px rgba(74, 101, 114, 0.1);
}

/* =============== MODERN FOOTER =============== */
.footer {
    position: relative;
    background: linear-gradient(145deg, #1e2a47, #0f1a2f);
    color: #fff;
    padding: 0 5% 2rem;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: rgba(255,255,255,0.02);
}

.footer-container {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    margin-bottom: 1.2rem;
}

.footer-logo .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-logo .logo span {
    color: var(--accent-color);
}

.footer-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(255,107,139,0.3);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 1px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-links,
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contacts li {
    margin-bottom: 0.9rem;
}

.footer-links a,
.footer-contacts a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a i,
.footer-contacts li i {
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-contacts li i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    font-size: 1rem;
}

.footer-cta {
    margin-top: 1.8rem;
}

.footer-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255,107,139,0.2);
    border: none;
}

.footer-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,107,139,0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.footer-cta .cta-btn i {
    transition: transform 0.2s ease;
}

.footer-cta .cta-btn:hover i {
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-legal .separator {
    color: rgba(255,255,255,0.3);
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

/* =============== МОДАЛЬНЫЕ ОКНА =============== */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.service-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 32px;
    padding: 2.8rem;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 40px 70px -15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.close-modal:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content ul {
    margin: 1.2rem 0;
    padding-left: 1.2rem;
}

.modal-content li {
    margin-bottom: 0.6rem;
    color: #555;
}

/* =============== SITEMAP MODAL =============== */
.modal-sitemap {
    max-width: 800px;
    padding: 2.5rem;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.sitemap-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 107, 139, 0.2);
}

.sitemap-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-section li {
    margin-bottom: 0.6rem;
}

.sitemap-section a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.sitemap-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* =============== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ (КАРАНДАШИ, ПЯТНА) =============== */
.pencil-line {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
}

.pencil-line:nth-child(1) {
    top: 20%;
    left: 5%;
    width: 100px;
    height: 2px;
    background: var(--accent-color);
    transform: rotate(45deg);
}

.pencil-line:nth-child(2) {
    top: 60%;
    right: 10%;
    width: 80px;
    height: 2px;
    background: var(--secondary-color);
    transform: rotate(-30deg);
}

.pencil-line:nth-child(3) {
    bottom: 30%;
    left: 15%;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    transform: rotate(15deg);
}

.watercolor-spot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.03;
}

.watercolor-spot:nth-child(1) {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
}

.watercolor-spot:nth-child(2) {
    bottom: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
}

/* =============== АНИМАЦИИ =============== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero h1, .hero p, .cta-btn {
    animation: fadeIn 0.8s ease-out forwards;
}

.about-card {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.industry-card, .feature-card, .service-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

/* =============== ОШИБКИ ФОРМЫ =============== */
.error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* =============== СОСТОЯНИЕ ЗАГРУЗКИ =============== */
body:not(.loaded) .animate-on-load {
    opacity: 0;
    transform: translateY(20px);
}

/* =============== АДАПТИВНОСТЬ =============== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .header-contacts {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        max-width: 300px;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transition: right 0.3s ease;
        border-radius: 0 0 0 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        height: 350px;
    }

    .portfolio-slider {
        padding: 0 40px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow.left {
        left: 0;
    }

    .slider-arrow.right {
        right: 0;
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        min-height: 350px;
    }

    .service-info {
        padding: 1.5rem;
    }

    .service-info h3 {
        font-size: 1.2rem;
    }

    .cta-btn {
        padding: 1rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 5% 60px;
    }

    .about-card {
        padding: 1.5rem;
    }

    .service-card {
        min-height: 320px;
    }

    .service-card img {
        height: 180px;
    }

    .service-info {
        padding: 1.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =============== ТЕХНОЛОГИИ И ОБОРУДОВАНИЕ =============== */
.technology {
    padding: 6rem 5%;
    /* background: linear-gradient(145deg, #fcfaf7, #f9f7f3); */
    position: relative;
    overflow: hidden;
}

.technology .section-header {
    margin-bottom: 3rem;
}

.tech-category {
    margin-bottom: 4rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.tech-category:last-child {
    margin-bottom: 0;
}

.tech-category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(255,107,139,0.2);
    position: relative;
}

.tech-category-title i {
    color: var(--accent-color);
    font-size: 1.8rem;
    background: rgba(255,107,139,0.1);
    padding: 0.6rem;
    border-radius: 12px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255,107,139,0.02), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255,107,139,0.2);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, rgba(255,107,139,0.1), rgba(78,205,196,0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,107,139,0.2);
    transition: all 0.3s ease;
}

.tech-icon i {
    font-size: 2.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    background: linear-gradient(145deg, var(--accent-color), var(--secondary-color));
    border-color: transparent;
}

.tech-item:hover .tech-icon i {
    color: white;
    transform: scale(1.1);
}

.tech-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tech-brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(255,107,139,0.08);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,107,139,0.2);
    align-self: flex-start;
}

.tech-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Декоративные элементы (опционально) */
.tech-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-decor-circle {
    position: absolute;
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78,205,196,0.03) 0%, transparent 70%);
}

.tech-decor-line {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.2;
    transform: rotate(-45deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .tech-category-title {
        font-size: 1.3rem;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
    .tech-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tech-category-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
}



/* ========================================================================== */
/*  WATERCOLOR PRO THEME — адаптация под back.png (пастель/акварель)           */
/*  Цель: современный, профессиональный вид + хорошая читаемость на фоне       */
/* ========================================================================== */

:root {
    /* Палитра (под изображение): тёплое солнце + мягкий teal */
    --primary-color: #1F2D2B;      /* глубокий тёмный teal для заголовков */
    --accent-color: #F2A23A;       /* тёплый янтарный акцент */
    --secondary-color: #2F9F98;    /* мягкий teal */

    --light-bg: rgba(255, 255, 255, 0.55);
    --paper-texture: rgba(255, 255, 255, 0.65);

    --text-dark: #15201E;
    --text-muted: rgba(21, 32, 30, 0.72);

    /* Тени и поверхности */
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-medium: 0 24px 60px rgba(15, 23, 42, 0.12);

    --card-bg: rgba(255, 255, 255, 0.72);
    --card-radius: 24px;
    --card-padding: 1.7rem;
    --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --card-shadow-hover: 0 30px 80px rgba(15, 23, 42, 0.14);
    --card-border: 1px solid rgba(31, 45, 43, 0.10);

    --glass-blur: 16px;
    --ring: 0 0 0 4px rgba(242, 162, 58, 0.18);

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Многослойный фон: лёгкий «туман» + подсветки + ваша акварель */
    /* background:
        radial-gradient(1400px 700px at 15% -10%, rgba(242, 162, 58, 0.22) 0%, transparent 55%),
        radial-gradient(1200px 600px at 85% 10%, rgba(47, 159, 152, 0.20) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.40) 50%, rgba(255, 255, 255, 0.70) 100%),
        url('img/back.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(242, 162, 58, 0.25);
}

/* Небольшая типографика «по‑взрослому» */
p {
    color: var(--text-muted);
}

.section-title {
    letter-spacing: -0.02em;
}

.section-title::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

/* Если в секции есть .section-divider — отключаем псевдополоску у заголовка */
.section-header .section-title::after {
    content: none;
}

.section-divider {
    width: 84px;
    height: 4px;
    margin: 0.8rem auto 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 10px 25px rgba(242, 162, 58, 0.12);
}

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

/* ================= HEADER ================= */
.header {
    background: rgba(255, 255, 255, 0.62);
    border-bottom: 1px solid rgba(31, 45, 43, 0.10);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.logo {
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links a {
    color: rgba(31, 45, 43, 0.78);
    font-weight: 600;
}

.nav-links a::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.nav-links a:hover {
    color: var(--primary-color);
}

.contact-link {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 45, 43, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-link:hover {
    border-color: rgba(47, 159, 152, 0.22);
}

.contact-icon {
    color: var(--secondary-color);
}

/* ================= BUTTONS ================= */
.cta-btn {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(242, 162, 58, 0.98) 0%, rgba(247, 200, 92, 0.98) 55%, rgba(242, 162, 58, 0.98) 100%);
    box-shadow: 0 14px 30px rgba(242, 162, 58, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(242, 162, 58, 0.28), 0 0 0 2px rgba(242, 162, 58, 0.12);
    background: linear-gradient(135deg, rgba(47, 159, 152, 0.95) 0%, rgba(242, 162, 58, 0.98) 70%);
}

.cta-btn:active {
    transform: translateY(-1px);
}

:where(a, button, input, textarea, .cta-btn, .details-btn, .slider-arrow):focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

/* ================= HERO ================= */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 20% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
        radial-gradient(900px 520px at 80% 35%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.hero h1::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.hero p {
    color: var(--text-muted);
}

/* ================= GLASS CARDS ================= */
/* Отключаем старые «мазки»/полосы и делаем карточки стеклянными */
.industry-card::before,
.industry-card::after,
.feature-card::before,
.feature-card::after,
.service-card::before,
.service-card::after,
.step-card::before,
.step-card::after,
.about-card::before,
.about-card::after {
    content: none !important;
}

.industry-card,
.feature-card,
.service-card,
.step-card,
.about-card,
.tech-item,
.info-item {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.industry-card:hover,
.feature-card:hover,
.service-card:hover,
.step-card:hover,
.about-card:hover,
.tech-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(47, 159, 152, 0.22);
}

/* Service card: сохраняем компоновку */
.service-card {
    padding: 0;
}

/* Иконки в карточках */
.industry-icon,
.feature-icon {
    background: linear-gradient(135deg, rgba(47, 159, 152, 0.12), rgba(242, 162, 58, 0.10));
    border: 1px solid rgba(47, 159, 152, 0.18);
}

.industry-icon i,
.feature-icon i {
    color: var(--secondary-color);
    filter: none;
}

.industry-card:hover .industry-icon,
.feature-card:hover .feature-icon {
    border-color: rgba(242, 162, 58, 0.35);
    transform: scale(1.04);
    animation: none;
}

.industry-card:hover .industry-icon i,
.feature-card:hover .feature-icon i {
    color: var(--accent-color);
    transform: none;
}

/* About cards */
.about-card {
    background: rgba(255, 255, 255, 0.66);
}

.about-card h3::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: inline-block;
}

.stat-item {
    background: rgba(47, 159, 152, 0.10);
    border: 1px solid rgba(47, 159, 152, 0.20);
}

.stat-value {
    color: var(--primary-color);
}

/* ================= SECTIONS BACKGROUNDS ================= */
.industries,
.features,
.services {
    /* background: rgba(255, 255, 255, 0.60); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(31, 45, 43, 0.06);
}

.portfolio,
.work-steps,
.technology,
.contacts {
    /* background: rgba(255, 255, 255, 0.60); */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(31, 45, 43, 0.08);
}

/* ================= INDUSTRY HOVER PANEL ================= */
.industry-hover {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(47, 159, 152, 0.20);
}

.industry-hover li::before {
    color: var(--accent-color);
}

/* ================= FEATURES ================= */
.feature-badge {
    background: rgba(47, 159, 152, 0.12);
    color: var(--secondary-color);
    border: 1px solid rgba(47, 159, 152, 0.25);
}

/* ================= WORK STEPS ================= */
.step-card {
    background: rgba(255, 255, 255, 0.68);
}

.step-number {
    background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 14px 26px rgba(47, 159, 152, 0.18);
}

/* ================= SERVICES ================= */
.service-card img {
    filter: saturate(1.02) contrast(1.02);
}

.service-card:hover img {
    transform: scale(1.03);
    filter: saturate(1.10) contrast(1.05);
}

.service-info {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.details-btn {
    border-radius: 999px;
    border: 1.5px solid rgba(47, 159, 152, 0.35);
    color: var(--primary-color);
}

.details-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(47, 159, 152, 0.18);
}

/* ================= PORTFOLIO ================= */
.slider-arrow {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(31, 45, 43, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-color);
}

.slider-arrow:hover {
    background: rgba(242, 162, 58, 0.95);
    color: white;
    border-color: transparent;
    box-shadow: 0 16px 35px rgba(242, 162, 58, 0.22);
}

.slider-dot.active {
    background: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(47, 159, 152, 0.20);
}

/* ================= TECHNOLOGY ================= */
.technology {
    /* background: rgba(255, 255, 255, 0.60); */
}

.tech-category-title {
    border-bottom-color: rgba(47, 159, 152, 0.20);
}

.tech-category-title i {
    color: var(--secondary-color);
    background: rgba(47, 159, 152, 0.12);
}

.tech-icon {
    background: linear-gradient(145deg, rgba(47, 159, 152, 0.12), rgba(242, 162, 58, 0.10));
    border: 1px solid rgba(47, 159, 152, 0.18);
}

.tech-icon i {
    color: var(--secondary-color);
}

.tech-item:hover .tech-icon {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.tech-item:hover .tech-icon i {
    color: white;
}

.tech-brand {
    color: var(--primary-color);
    background: rgba(242, 162, 58, 0.10);
    border: 1px solid rgba(242, 162, 58, 0.22);
}

/* ================= CONTACTS ================= */
.info-item {
    background: rgba(255, 255, 255, 0.70);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 45, 43, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(242, 162, 58, 0.45);
    box-shadow: var(--ring);
}

.contact-form button.cta-btn {
    background: linear-gradient(135deg, rgba(47, 159, 152, 0.95) 0%, rgba(242, 162, 58, 0.98) 85%);
    box-shadow: 0 14px 30px rgba(47, 159, 152, 0.18);
}

.contact-form button.cta-btn:hover {
    background: linear-gradient(135deg, rgba(242, 162, 58, 0.98) 0%, rgba(47, 159, 152, 0.95) 90%);
}

/* ================= FOOTER ================= */
.footer {
    background: linear-gradient(145deg, #0D1F1D, #0A1514);
}

.footer-wave svg {
    fill: rgba(255, 255, 255, 0.03);
}

.footer-logo .logo span {
    color: var(--accent-color);
}

.footer-title::after {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.footer-social a:hover {
    background: var(--secondary-color);
    box-shadow: 0 12px 26px rgba(47, 159, 152, 0.28);
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* ================= MODALS ================= */
.service-modal {
    background: rgba(10, 15, 14, 0.35);
}

.modal-content {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 26px;
    border: 1px solid rgba(31, 45, 43, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ================= BACK TO TOP ================= */
.back-to-top {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)) !important;
    box-shadow: 0 12px 28px rgba(47, 159, 152, 0.22) !important;
}

/* ================= DECOR (если вдруг включите) ================= */
.pencil-line,
.watercolor-spot {
    opacity: 0.02;
}

/* ================= ACCESSIBILITY / MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}


/* Mobile menu: тот же «glass» стиль */
@media (max-width: 992px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.80);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid rgba(31, 45, 43, 0.10);
    }
}


/* ========================================================================== */
/*  HERO REWORK — читаемость на акварельном фоне + "карандаш/бумага"           */
/*  Важно: палитра остаётся в переменных темы (secondary/accent/primary).     */
/* ========================================================================== */

/* Базовая раскладка hero */
.hero {
    padding: 130px 5% 90px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.2rem;
    align-items: center;
}

/* Левая колонка: "лист бумаги" под текст */
.hero-intro {
    position: relative;
    z-index: 3;
}

.hero-paper {
    position: relative;
    padding: 2.6rem 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(31, 45, 43, 0.14);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    overflow: hidden;
}

/* Лёгкая "бумажная" фактура и акварельные пятна */
.hero-paper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 15% 20%, rgba(242, 162, 58, 0.18) 0%, transparent 60%),
        radial-gradient(900px 420px at 85% 70%, rgba(47, 159, 152, 0.16) 0%, transparent 60%),
        repeating-linear-gradient(0deg, rgba(31, 45, 43, 0.04) 0 1px, transparent 1px 8px);
    opacity: 0.34;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Пунктирная рамка "карандашом" */
.hero-paper::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px dashed rgba(31, 45, 43, 0.22);
    border-radius: calc(var(--radius-lg) - 10px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.hero-paper > * {
    position: relative;
    z-index: 1;
}

/* Кикер-чипсы */
.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.kicker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 45, 43, 0.10);
    color: rgba(31, 45, 43, 0.82);
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.kicker-chip i {
    color: var(--secondary-color);
}

/* Заголовок: часть градиентом + тень для читаемости */
.hero .hero-title {
    font-size: clamp(2.1rem, 3.7vw, 3.35rem);
    line-height: 1.08;
    margin-bottom: 1.05rem;
    color: var(--primary-color);
    letter-spacing: -0.04em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 30px rgba(15, 23, 42, 0.12);
    position: relative;
}

.hero .hero-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -14px;
    width: 150px;
    height: 10px;
    background: linear-gradient(90deg, rgba(242, 162, 58, 0.50), rgba(47, 159, 152, 0.35));
    border-radius: 999px;
    filter: blur(0.4px);
    opacity: 0.95;
    transform: rotate(-1.2deg);
}

.hero-title__gradient {
    color: var(--primary-color);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title__gradient {
        background-image: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 55%, var(--secondary-color) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-top: 1.2rem;
    margin-bottom: 1.85rem;
    color: rgba(21, 32, 30, 0.78);
    max-width: 42ch;
}

/* Кнопки */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-actions .cta-btn {
    padding: 1rem 1.6rem;
}

.cta-btn--ghost {
    background: rgba(255, 255, 255, 0.48);
    color: var(--primary-color);
    border: 1.5px solid rgba(31, 45, 43, 0.12);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.cta-btn--ghost::before {
    display: none;
}

.cta-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.cta-btn--ghost:active {
    transform: translateY(-1px);
}

/* Мини-бенефиты под кнопками */
.hero-badges {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.hero-badge {
    display: flex;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 45, 43, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: flex-start;
}

.hero-badge__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(47, 159, 152, 0.22), rgba(242, 162, 58, 0.22));
    border: 1px solid rgba(31, 45, 43, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.hero-badge__icon i {
    color: var(--primary-color);
    font-size: 1.0rem;
}

.hero-badge__title {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.15;
}

.hero-badge__subtitle {
    font-size: 0.82rem;
    color: rgba(21, 32, 30, 0.68);
    margin-top: 0.15rem;
}

/* Правая колонка: карточки "слегка наклеенные" */
.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: stretch;
}

.hero .hero-card {
    position: relative;
}

/* "скотч" внутри карточек — без вылазов за края (иначе clip) */
.hero .hero-card::before,
.hero .hero-card::after {
    content: '';
    position: absolute;
    height: 22px;
    border-radius: 9px;
    border: 1px solid rgba(31, 45, 43, 0.10);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.hero .hero-card::before {
    top: 14px;
    left: 22px;
    width: 78px;
    background: rgba(242, 162, 58, 0.22);
    transform: rotate(-7deg);
}

.hero .hero-card::after {
    bottom: 16px;
    right: 26px;
    width: 92px;
    background: rgba(47, 159, 152, 0.20);
    transform: rotate(6deg);
}

/* Чуть разная "косинка" для ощущения ручной композиции */
.hero-card--main {
    transform: rotate(-0.6deg);
    perspective: 900px;
}

.hero-card--stats {
    transform: rotate(0.9deg);
}

/* Поверхность для 3D-tilt из script.js */
.hero-card__surface {
    transform-style: preserve-3d;
    transition: transform 0.25s ease;
}

/* В hero карточки делаем чуть плотнее (для читабельности) */
.hero .about-card {
    background: rgba(255, 255, 255, 0.78);
}

/* Снимаем старые fadeIn-анимации ТОЛЬКО когда включили новый hero-reveal (JS добавил hero--animate) */
.hero.hero--animate .hero-title,
.hero.hero--animate .hero-subtitle,
.hero.hero--animate .cta-btn,
.hero.hero--animate .about-card {
    animation: none;
}

.hero .about-card h3 {
    margin-bottom: 1rem;
}

/* Анимация появления: включаем ТОЛЬКО когда JS добавил hero--animate */
.hero.hero--animate [data-hero-reveal] {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(2px);
    transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
    will-change: opacity, transform, filter;
}

.hero.hero--animate.hero--ready [data-hero-reveal] {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero.hero--animate [data-hero-reveal] {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* Адаптивность нового hero */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.4rem;
        text-align: center;
    }

    .hero .hero-title::after {
        left: 50%;
        transform: translateX(-50%) rotate(-1.2deg);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges {
        grid-template-columns: 1fr;
    }

    .hero-stack {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 5% 70px;
    }

    .hero-paper {
        padding: 2rem 1.4rem;
    }

    .hero-actions .cta-btn {
        width: 100%;
        justify-content: center;
    }
}


/* =========================
   HERO CARDS — Soviet Cartoon Collage (Winnie-the-Pooh vibe)
   Вставь в самый КОНЕЦ style.css
   ========================= */

/* Контейнер стека: чуть хаоса */
.hero-visual.hero-stack{
  gap: 1.25rem;
  perspective: 900px;
}

/* База карточек hero */
.hero-card{
  position: relative;
  overflow: visible; /* важно: чтобы "скотч" торчал */
  border-radius: 22px;
  transform: rotate(-1.2deg);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.16),
    0 2px 0 rgba(255,255,255,0.35) inset;
  border: 2px solid rgba(31, 45, 43, 0.22);
  background:
    /* тёплая бумага */
    linear-gradient(180deg, rgba(255, 252, 245, 0.92), rgba(255, 250, 240, 0.82)),
    /* карандашная штриховка */
    repeating-linear-gradient(
      0deg,
      rgba(31,45,43,0.05) 0px,
      rgba(31,45,43,0.05) 1px,
      transparent 1px,
      transparent 8px
    );
}

/* Вторая карточка — в другую сторону (эффект стопки) */
.hero-card--stats{
  transform: rotate(1.1deg) translateY(6px);
}

/* "Неровная" обводка как будто от руки */
.hero-card::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 26px;
  border: 2px dashed rgba(31,45,43,0.25);
  transform: rotate(0.25deg);
  opacity: 0.55;
  pointer-events:none;
}

/* Тонкий “мультяшный” бликовый контур */
.hero-card::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.55);
  opacity: 0.55;
  pointer-events:none;
}

/* "Скотч": две полоски сверху (полупрозрачные, с волокнами) */
.hero-card .hero-card__surface{
  position: relative;
  border-radius: 18px;
  padding: 1.6rem 1.7rem;
  background:
    radial-gradient(900px 420px at 20% 15%, rgba(242,162,58,0.18), transparent 55%),
    radial-gradient(900px 420px at 85% 75%, rgba(47,159,152,0.16), transparent 55%),
    rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Скотч (левый) */
.hero-card .hero-card__surface::before{
  content:"";
  position:absolute;
  top:-14px;
  left:18px;
  width:120px;
  height:38px;
  transform: rotate(-7deg);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 240, 190, 0.78), rgba(255, 230, 170, 0.55)),
    repeating-linear-gradient(90deg, rgba(120,90,40,0.10) 0 2px, transparent 2px 6px);
  box-shadow: 0 8px 14px rgba(15,23,42,0.12);
  border: 1px solid rgba(120,90,40,0.18);
  opacity: 0.95;
  pointer-events:none;
}

/* Скотч (правый) */
.hero-card .hero-card__surface::after{
  content:"";
  position:absolute;
  top:-16px;
  right:22px;
  width:92px;
  height:34px;
  transform: rotate(9deg);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 240, 190, 0.74), rgba(255, 230, 170, 0.52)),
    repeating-linear-gradient(90deg, rgba(120,90,40,0.10) 0 2px, transparent 2px 6px);
  box-shadow: 0 8px 14px rgba(15,23,42,0.12);
  border: 1px solid rgba(120,90,40,0.18);
  opacity: 0.92;
  pointer-events:none;
}

/* Заголовки карточек: “плакатная” плотность + чуть туши */
.hero-card h3{
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(31,45,43,0.92);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 8px 18px rgba(15,23,42,0.12);
}

/* Список в главной карточке: маркеры как “чернильные галочки” */
.hero-card--main .about-list li{
  gap: 10px;
  padding: 0.55rem 0;
  color: rgba(21,32,30,0.78);
}
.hero-card--main .about-list li::before{
  content: "✎";
  color: rgba(31,45,43,0.75);
  transform: rotate(-12deg);
  font-weight: 700;
}

/* Блок "В цифрах": метрики как стикеры */
.hero-card--stats .stats-grid{
  gap: 1rem;
}
.hero-card--stats .stat-item{
  position: relative;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  border: 2px solid rgba(31,45,43,0.16);
  box-shadow: 0 10px 22px rgba(15,23,42,0.10);
  transform: rotate(-0.6deg);
}

/* Каждый второй стикер чуть по-другому — как ручная раскладка */
.hero-card--stats .stat-item:nth-child(2n){
  transform: rotate(0.8deg);
}

/* Мини-скотч на стикерах */
.hero-card--stats .stat-item::before{
  content:"";
  position:absolute;
  top:-10px;
  left:14px;
  width:64px;
  height:22px;
  transform: rotate(-8deg);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,240,190,0.75), rgba(255,230,170,0.52));
  border: 1px solid rgba(120,90,40,0.16);
  opacity: 0.9;
  pointer-events:none;
}

/* Числа — как штамп (чуть грубо, контрастно) */
.hero-card--stats .stat-value{
  font-size: 2.05rem;
  font-weight: 900;
  color: rgba(31,45,43,0.92);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 rgba(255,255,255,0.7);
}

/* Подписи — как подпись карандашом */
.hero-card--stats .stat-label{
  color: rgba(21,32,30,0.70);
  font-weight: 600;
}

/* Hover: как будто карточку “приподняли рукой” */
@media (hover:hover){
  .hero-card:hover{
    transform: translateY(-6px) rotate(-0.3deg);
    box-shadow:
      0 26px 60px rgba(15, 23, 42, 0.20),
      0 2px 0 rgba(255,255,255,0.35) inset;
  }
  .hero-card--stats:hover{
    transform: translateY(-6px) rotate(0.4deg);
  }
}

/* Мобильные: меньше наклона, меньше “хаоса” */
@media (max-width: 768px){
  .hero-card,
  .hero-card--stats{
    transform: none;
  }
  .hero-card:hover,
  .hero-card--stats:hover{
    transform: translateY(-4px);
  }
}



.hero-card--main{
  position: relative;
}

.hero-card--main .hero-card__surface{
  position: relative;
}

.hero-card--main .hero-card__surface .about-list{
  position: relative;
}

/* Штамп */
.hero-card--main .hero-card__surface .about-list::after{
  content: "ПРОВЕРЕНО";
  position: absolute;
  top: -10px;
  right: -6px;
  transform: rotate(14deg);
  padding: 0.35rem 0.7rem;
  border: 2px solid rgba(31,45,43,0.55);
  color: rgba(31,45,43,0.70);
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 10px;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 10px 20px rgba(15,23,42,0.12);
  opacity: 0.9;
}


/* =========================
   INDUSTRIES (media cards)
   современно + под акварель/бумагу
   ========================= */

.industries-grid--media{
  gap: 2.2rem;
}

/* новая карточка отрасли */
.industry-card--media{
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,45,43,0.12);
  box-shadow: var(--card-shadow);
}

/* верх: фото */
.industry-media{
  position: relative;
  height: 210px;
  border-radius: 26px 26px 18px 18px;
  overflow: hidden;
}

.industry-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
  transform: scale(1.02);
  transition: transform .45s ease, filter .45s ease;
}

/* лёгкая акварельная вуаль на фото */
.industry-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 260px at 20% 25%, rgba(242,162,58,0.22), transparent 60%),
    radial-gradient(600px 260px at 80% 70%, rgba(47,159,152,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.22));
  mix-blend-mode: multiply;
  opacity: .55;
  pointer-events:none;
}

/* “скотч” */
.industry-tape{
  position:absolute;
  top: -14px;
  width: 120px;
  height: 38px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,240,190,0.78), rgba(255,230,170,0.55)),
    repeating-linear-gradient(90deg, rgba(120,90,40,0.10) 0 2px, transparent 2px 6px);
  border: 1px solid rgba(120,90,40,0.18);
  box-shadow: 0 10px 18px rgba(15,23,42,0.12);
  opacity: .92;
  pointer-events:none;
}
.industry-tape--left{ left: 16px; transform: rotate(-7deg); }
.industry-tape--right{ right: 18px; width: 92px; height: 34px; transform: rotate(9deg); }

/* чип с иконкой + кол-во */
.industry-chip{
  position:absolute;
  left: 16px;
  bottom: 14px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(31,45,43,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
  color: rgba(31,45,43,0.82);
}
.industry-chip i{
  color: var(--secondary-color);
}

/* низ: текст */
.industry-body{
  padding: 1.4rem 1.5rem 1.6rem;
}

.industry-body h3{
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: .5rem;
}

.industry-body p{
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

/* теги-пункты как “мини-стикеры” */
.industry-tags{
  list-style: none;
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 0;
}

.industry-tags li{
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(47,159,152,0.10);
  border: 1px solid rgba(47,159,152,0.18);
  color: rgba(31,45,43,0.82);
  font-weight: 650;
  font-size: .9rem;
}

/* hover */
@media (hover:hover){
  .industry-card--media:hover{
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(47,159,152,0.22);
  }
  .industry-card--media:hover .industry-media img{
    transform: scale(1.08);
    filter: saturate(1.10) contrast(1.05);
  }
}

/* мобильные */
@media (max-width: 768px){
  .industry-media{ height: 190px; }
}


/* =========================
   TECHNOLOGY v2 (compact + reveal)
   ========================= */

.tech2 {
  position: relative;
}

.tech2-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* карточка */
.tech2-card{
  position: relative;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31,45,43,0.10);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* “бумажная” фактура внутри */
.tech2-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 280px at 18% 20%, rgba(242,162,58,0.14), transparent 60%),
    radial-gradient(700px 280px at 82% 78%, rgba(47,159,152,0.12), transparent 60%),
    repeating-linear-gradient(0deg, rgba(31,45,43,0.04) 0 1px, transparent 1px 10px);
  opacity: .32;
  mix-blend-mode: multiply;
  pointer-events:none;
}

/* верх карточки */
.tech2-head{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 1.2rem 1.2rem 1rem;
}

/* иконка-штамп */
.tech2-icon{
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(31,45,43,0.12);
  box-shadow: 0 12px 26px rgba(15,23,42,0.08);
  transform: rotate(-2deg);
}
.tech2-icon i{
  font-size: 1.55rem;
  color: var(--primary-color);
  opacity: .92;
}

/* заголовок+подзаголовок */
.tech2-title h3{
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin: 0 0 .2rem;
}
.tech2-title p{
  margin: 0;
  font-size: .92rem;
  color: rgba(21, 32, 30, 0.70);
}

/* пилюля категории */
.tech2-pill{
  display:inline-flex;
  align-items:center;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(47,159,152,0.12);
  border: 1px solid rgba(47,159,152,0.20);
  color: rgba(31,45,43,0.78);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* скрытая часть */
.tech2-more{
  position: relative;
  z-index: 2;
  padding: 0 1.2rem 1.2rem;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .45s ease, opacity .35s ease, transform .35s ease;
}

.tech2-more ul{
  margin: .2rem 0 .9rem;
  padding-left: 1.1rem;
  color: rgba(21, 32, 30, 0.74);
}
.tech2-more li{
  margin: .35rem 0;
  font-size: .92rem;
}
.tech2-meta{
  display: inline-flex;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(242,162,58,0.10);
  border: 1px solid rgba(242,162,58,0.22);
  color: rgba(31,45,43,0.82);
  font-weight: 750;
  font-size: .82rem;
}

/* hover раскрытие */
@media (hover:hover){
  .tech2-card:hover{
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(47,159,152,0.22);
  }
  .tech2-card:hover .tech2-more{
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* мобилка: раскрытие по тапу (через класс .is-open) */
.tech2-card.is-open .tech2-more{
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

/* декоратив */
.tech2-decor{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 0;
}
.tech2-blob{
  position:absolute;
  right:-120px;
  top: 20%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,159,152,0.10), transparent 70%);
  filter: blur(2px);
}
.tech2-line{
  position:absolute;
  left: 6%;
  bottom: 18%;
  width: 220px;
  height: 2px;
  opacity: .18;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transform: rotate(-20deg);
}

/* адаптив */
@media (max-width: 992px){
  .tech2-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .tech2-grid{ grid-template-columns: 1fr; }
  .tech2-head{ grid-template-columns: 56px 1fr; grid-template-areas:
    "icon title"
    "pill pill";
  }
  .tech2-icon{ grid-area: icon; }
  .tech2-title{ grid-area: title; }
  .tech2-pill{ grid-area: pill; justify-self: start; margin-top: .2rem; }
}


/* ================= NAV v2 (dropdown desktop + drawer mobile) ================= */

.nav-menu {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .2rem;
}

.nav-link i {
  font-size: .85rem;
  opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 280px;
  padding: .65rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(31,45,43,0.10);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 1100;
}

.nav-submenu a {
  display: flex;
  align-items: center;
  padding: .75rem .85rem;
  border-radius: 14px;
  color: rgba(31,45,43,0.82);
  text-decoration: none;
  font-weight: 650;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.nav-submenu a:hover {
  background: rgba(47,159,152,0.12);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* ПК: раскрытие по hover */
@media (hover: hover) {
  .nav-item--has-sub:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-item--has-sub:hover .nav-link i {
    transform: rotate(180deg);
    opacity: 1;
  }
}

/* Overlay для мобильного меню */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,14,0.30);
  backdrop-filter: blur(2px);
  z-index: 999;
}

.nav-overlay.active { display: block; }

/* ================= Mobile drawer ================= */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    right: -110%;
    width: min(92vw, 360px);
    height: calc(100vh - 72px);
    overflow-y: auto;

    padding: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;

    background: rgba(255,255,255,0.86);
    border-left: 1px solid rgba(31,45,43,0.10);
    box-shadow: var(--shadow-medium);
    border-radius: 22px 0 0 22px;
    transition: right .28s ease;
    z-index: 1000;
  }

  .nav-menu.active { right: 0; }

  .nav-item { width: 100%; }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 1rem .9rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(31,45,43,0.08);
  }

  /* подменю в мобилке — аккордеон */
  .nav-submenu {
    position: static;
    min-width: 0;
    margin-top: .55rem;

    opacity: 1;
    visibility: visible;
    transform: none;

    display: grid;
    gap: .35rem;
    padding: .45rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(31,45,43,0.08);

    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    transition: max-height .28s ease;
  }

  .nav-item--open .nav-submenu {
    max-height: 420px;
    padding-top: .45rem;
    padding-bottom: .45rem;
    border-width: 1px;
  }

  .nav-item--open .nav-link i {
    transform: rotate(180deg);
    opacity: 1;
  }
}

/* body lock when menu open */
body.menu-open {
  overflow: hidden;
}


/* =========================
   BURGER (mobile) — paper button + animated lines
   ========================= */

.hamburger-btn{
  display: none; /* покажем только на мобилке (ниже) */
  width: 52px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-btn::before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.45)),
    repeating-linear-gradient(0deg, rgba(31,45,43,0.04) 0 1px, transparent 1px 10px);
  border: 1px solid rgba(31,45,43,0.10);
  box-shadow:
    0 14px 30px rgba(15,23,42,0.12),
    0 2px 0 rgba(255,255,255,0.55) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* мини-“скотч” уголком */
.hamburger-btn::after{
  content:"";
  position:absolute;
  top: -10px;
  right: 8px;
  width: 34px;
  height: 18px;
  border-radius: 8px;
  transform: rotate(12deg);
  background:
    linear-gradient(180deg, rgba(255,240,190,0.80), rgba(255,230,170,0.55)),
    repeating-linear-gradient(90deg, rgba(120,90,40,0.10) 0 2px, transparent 2px 6px);
  border: 1px solid rgba(120,90,40,0.16);
  box-shadow: 0 10px 18px rgba(15,23,42,0.10);
  opacity: .9;
  pointer-events:none;
}

.hamburger-lines{
  position: absolute;
  inset: 0;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  z-index: 1;
}

.hamburger-lines span{
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(31,45,43,0.86);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55);
  transition: transform .25s ease, opacity .20s ease, width .25s ease;
}

/* эффект “нажатия” */
@media (hover:hover){
  .hamburger-btn:hover::before{
    transform: translateY(-2px) rotate(-0.6deg);
    box-shadow:
      0 18px 38px rgba(15,23,42,0.14),
      0 2px 0 rgba(255,255,255,0.55) inset;
    border-color: rgba(47,159,152,0.22);
  }
}

.hamburger-btn:active::before{
  transform: translateY(0);
}

/* ACTIVE: превращаем в крестик */
.hamburger-btn.active .hamburger-lines span:nth-child(1){
  transform: translateY(9.5px) rotate(45deg);
  width: 24px;
}
.hamburger-btn.active .hamburger-lines span:nth-child(2){
  opacity: 0;
  transform: scaleX(0.6);
}
.hamburger-btn.active .hamburger-lines span:nth-child(3){
  transform: translateY(-9.5px) rotate(-45deg);
  width: 24px;
}

/* показываем на мобилке */
@media (max-width: 992px){
  .hamburger-btn{ display: inline-block; }
}


/* ================= PRIVACY PAGE ================= */

.privacy-page {
  padding-top: 92px; /* фиксированный header */
}

.privacy-hero {
  padding: 2.8rem 5% 2rem;
  position: relative;
}

.privacy-hero__inner {
  padding: 2.2rem 2.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 45, 43, 0.12);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
}

.privacy-hero__inner::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 15% 20%, rgba(242, 162, 58, 0.16) 0%, transparent 60%),
    radial-gradient(900px 420px at 85% 70%, rgba(47, 159, 152, 0.14) 0%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(31, 45, 43, 0.04) 0 1px, transparent 1px 9px);
  opacity: .34;
  mix-blend-mode: multiply;
  pointer-events:none;
}

.privacy-hero__inner > * { position: relative; z-index: 1; }

.privacy-breadcrumbs {
  display: flex;
  gap: .6rem;
  align-items: center;
  font-weight: 700;
  color: rgba(31, 45, 43, 0.70);
  margin-bottom: .8rem;
  flex-wrap: wrap;
}

.privacy-breadcrumbs a {
  color: rgba(31, 45, 43, 0.78);
  text-decoration: none;
}

.privacy-breadcrumbs a:hover { color: var(--primary-color); }
.privacy-breadcrumbs .sep { opacity: .5; }

.privacy-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--primary-color);
  margin-bottom: .8rem;
}

.privacy-lead {
  max-width: 70ch;
  color: rgba(21, 32, 30, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.privacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.privacy-chip{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 45, 43, 0.10);
  color: rgba(31, 45, 43, 0.82);
  font-weight: 800;
  font-size: .9rem;
}

.privacy-chip i { color: var(--secondary-color); }

.privacy-section { padding: 2.2rem 5% 5rem; }

.privacy-layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.privacy-card{
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 45, 43, 0.10);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.4rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.privacy-card h2{
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: .65rem;
}

.privacy-note{
  font-weight: 650;
  color: rgba(21, 32, 30, 0.74);
}

.privacy-muted{ color: rgba(21, 32, 30, 0.70); }

.privacy-list{
  padding-left: 1.1rem;
  margin: .8rem 0 0;
}
.privacy-list li{ margin: .55rem 0; color: rgba(21, 32, 30, 0.78); }

.privacy-aside { position: relative; }

.privacy-card--sticky{
  position: sticky;
  top: 96px;
}

.privacy-card__title{
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--primary-color);
  margin-bottom: .9rem;
}

.privacy-toc{
  display: grid;
  gap: .25rem;
  margin-bottom: 1.1rem;
}

.privacy-toc a{
  text-decoration: none;
  color: rgba(31, 45, 43, 0.76);
  font-weight: 750;
  padding: .55rem .7rem;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.privacy-toc a:hover{
  background: rgba(47, 159, 152, 0.10);
  border-color: rgba(47, 159, 152, 0.18);
  transform: translateX(3px);
  color: var(--primary-color);
}

.privacy-mini{
  border-top: 1px solid rgba(31, 45, 43, 0.10);
  padding-top: .9rem;
}
.privacy-mini__label{ font-weight: 800; color: rgba(31, 45, 43, 0.62); font-size: .9rem; }
.privacy-mini__value{ font-weight: 900; color: var(--primary-color); margin-top: .15rem; }

.privacy-contacts{
  display: grid;
  gap: .6rem;
  margin-top: .8rem;
}

.privacy-contact{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem .9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 45, 43, 0.10);
  color: rgba(31, 45, 43, 0.82);
  text-decoration: none;
  font-weight: 750;
}

.privacy-contact i{ color: var(--secondary-color); }

.privacy-bottom{
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

@media (max-width: 992px){
  .privacy-layout{ grid-template-columns: 1fr; }
  .privacy-card--sticky{ position: static; }
  .privacy-page{ padding-top: 86px; }
}


/* PORTFOLIO SLIDER — Mobile polish */
.slider-dots{
  display:flex;
  justify-content:center;
  gap: 10px;
  margin-top: 14px;
}

.slider-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(31,45,43,0.25);
  border: 1px solid rgba(31,45,43,0.18);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.slider-dot.active{
  background: rgba(47,159,152,0.85);
  width: 22px;
}

@media (max-width: 768px){
  .portfolio{
    padding: 4.5rem 5% 4.2rem;
  }

  .portfolio-slider{
    padding: 0; /* убираем большие боковые поля */
  }

  .portfolio-grid{
    height: 340px; /* было 500 — слишком для мобилки */
    border-radius: 22px;
  }

  /* стрелки — компактные и “пальце-дружелюбные” */
  .slider-arrow{
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
    /* top: auto; */
    bottom: 14px;
    transform: none;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(31,45,43,0.12);
  }
  .slider-arrow.left{ left: 12px; }
  .slider-arrow.right{ right: 12px; }

  /* на мобилке hover нет — показываем подпись всегда */
  .portfolio-overlay{
    opacity: 1;
    transform: none;
    padding: 1.15rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
  }

  .portfolio-overlay h3{
    font-size: 1.25rem;
    margin-bottom: .35rem;
  }
  .portfolio-overlay p{
    font-size: .95rem;
  }

  /* отключаем hover-скейл на мобилке (прыгает неприятно) */
  .portfolio-item:hover img{
    transform: none;
  }

  /* точки — ниже карточки, чтобы не конфликтовали со стрелками */
  .slider-dots{
    margin-top: 16px;
  }
}
