/* RESET */
img{
    max-width: 100%;
    display: block;
}
html, body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container{
    width:100%;
    max-width:1200px;

    margin:0 auto;

    padding-left:16px;
    padding-right:16px;

    box-sizing:border-box;
}

/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 100svh;
    padding: 40px 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease;
    color: white;

    overflow: hidden;
}
/* затемнение */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10,10,20,0.95) 0%,
        rgba(10,10,20,0.8) 40%,
        rgba(10,10,20,0.4) 100%
    );
    z-index: 1;
}

/* контейнер поверх затемнения */
.hero .container {
    position: relative;
    z-index: 3;
}

/* ================= SLIDER ================= */

.hero-left {
    position: relative;
    max-width: 520px;
    margin-top: 20px;
}

.hero-slides {
    display: grid;
}

.slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ================= ARROWS ================= */

.hero-arrows {
    position: relative;
    z-index: 5; /* выше всех слайдов */
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.hero-arrows button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-arrows button:hover {
    background: rgba(255,255,255,0.4);
}

/* ================= NAVBAR ================= */

.hero-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #8b5cf6;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

.whatsapp-btn {
    background: green;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
}

/* ================= HERO CONTENT ================= */

.hero-content {
    width: 100%;
    max-width: 100%;
}

/* Левая часть */

.hero-left {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.hero-left h1 {
    font-size: 64px;
    margin: 25px 0;
    line-height: 1.1;
}

.hero-left h1 span {
    color: #8b5cf6;
}

.hero-left p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 500px;
}

/* ================= BUTTONS ================= */

.hero-right {
    width: 100%;
    max-width: 420px;
    flex-shrink: 1;
}
/* SVG */
.hero-right svg{
    width:18px;
    height:18px;
    stroke-width:1.8;
}

/* ОБЩИЕ КНОПКИ */
.hero-right a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:14px 20px;
    border-radius:14px;

    font-size:15px;
    font-weight:500;

    text-decoration:none;

    transition:0.25s;
}

.btn-primary,
.btn-gradient,
.btn-outline {
    display: block;
    padding: 18px;
    border-radius: 40px;
    text-align: center;
    margin-bottom: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary{
    background:linear-gradient(135deg,#6c63ff,#8f7bff);
    color:white;
}

.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(108,99,255,0.35);
}

.btn-gradient{
    background:linear-gradient(135deg,#ff7a18,#ff3d6b);
    color:white;
}

.btn-gradient:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(255,80,120,0.35);
}

.btn-outline{
    background:transparent;
    border:1px solid rgba(255,255,255,0.2);
    color:white;
}

.btn-outline:hover{
    background:rgba(255,255,255,0.08);
}

/* ================= CARDS ================= */
.hero-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    width:100%;
}

.info-card {
    flex: 1 1 48%;                  /* лучше для мобильных */
    flex-basis: auto;               /* важно для Safari */
    min-height: 142px;              /* чуть увеличил */
    padding: 20px 18px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: visible;
    min-width: 0;                   /* КРИТИЧНО */
    align-self: stretch;            /* помогает выровнять высоту */
}

.info-card span {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 6px;
    display: block;
}

.info-card strong {
    display: block;
    line-height: 1.32;
    font-size: 17px;
    font-weight: 700;
}

/* Цвета */
.info-card.green {
    border-left: 5px solid #00ff88;
    background: rgba(0, 255, 136, 0.08);
}

.info-card.red {
    border-left: 5px solid #ff4d4d;
    background: rgba(255, 77, 77, 0.08);
}
.call-box {
    background: rgba(91,92,246,0.2);
    border: 1px solid #5b5cf6;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
}

/* ================= SECTIONS ================= */

.processes,
.calculator,
.instagram,
.contacts {
    padding: 100px 0;
}

/* ================= INSTAGRAM SECTION ================= */

.instagram-section{
    padding:100px 0;
    background: linear-gradient(180deg,#f8f9ff 0%, #ffffff 100%);
}


/* HEADER */

.insta-header{
    text-align:center;
    max-width:700px;
    margin:0 auto 50px;
}

.insta-badge{
    display:inline-block;
    background:#fff;
    padding:8px 14px;
    border-radius:20px;
    font-size:14px;
    box-shadow:0 5px 15px rgba(0,0,0,0.05);
    margin-bottom:15px;
}

.insta-header h2{
    font-size:40px;
    margin-bottom:15px;
}

.insta-header h2 span{
    color:#6c63ff;
}

.insta-header p{
    color:#6b7280;
    line-height:1.6;
}


/* PROFILE CARD */

.insta-profile{
    display:flex;
    justify-content:center;
    margin-bottom:40px;
}

.insta-block{
    background:#fff;
    border-radius:25px;
    padding:25px 30px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
    max-width:700px;
    width:100%;

    overflow:hidden; /* 🔥 ВАЖНО */
}


/* CARD TOP */

.insta-card{
    display:flex;
    gap:20px;
    align-items:center;
    margin-bottom:25px;
}


/* AVATAR (ГРАДИЕНТ КАК В INSTAGRAM) */

.insta-avatar{
    width:80px;
    height:80px;
    border-radius:50%;
    background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;

    padding:3px;
}

.insta-avatar img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;

    display:block;
}


/* INFO */

.insta-info{
    flex:1;
}

.insta-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.insta-top strong{
    font-size:18px;
}


/* BUTTON */

.insta-btn{
    background:linear-gradient(135deg,#6c63ff,#8f7bff);
    color:white;
    padding:8px 16px;
    border-radius:10px;
    font-size:14px;
    text-decoration:none;
    transition:.3s;
}

.insta-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(108,99,255,0.3);
}


/* STATS */

.insta-stats{
    display:flex;
    gap:20px;
    font-size:14px;
    margin-bottom:10px;
    color:#555;
}

.insta-stats b{
    color:#000;
}


/* DESC */

.insta-desc{
    font-size:14px;
    color:#6b7280;
    line-height:1.5;
}


/* ACTUAL (СТОРИС) */

.actual{
    display:flex;
    gap:15px;
    overflow-x:auto;
    padding:15px 5px;
    width: 100%;
    max-width: 100%;
    overflow-y: hidden;
    scrollbar-width:none; /* Firefox */
}

.actual::-webkit-scrollbar{
    display:none; /* Chrome */
}
.actual .insta-avatar{
    width:70px;
    height:70px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

    padding:3px;
}



.actual .insta-avatar span{
    display:block;
    font-size:12px;
    margin-top:6px;
    color:#333;
    text-align:center;
    white-space:nowrap;
}
.carousel img:hover{
    transform:scale(1.05);
}


/* SCROLL ANIMATION */

@keyframes scroll{
    0%{
        transform:translateX(0);
    }
    100%{
        transform:translateX(-50%);
    }
}
.carousel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width:max-content;
    will-change: transform;
    animation: scroll 25s linear infinite;
}

.carousel img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 10px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ================= PROCESS SECTION ================= */

.process-section {
    padding: 120px 0;
    background: #f7f8fc;
    overflow: hidden;
}
.process-section .container {
    width: 100%;
    max-width: 1400px;
    margin:0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.section-head {
    margin-bottom: 50px;
}

.section-label {
    color: #7c5cff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-head h2 {
    font-size: 46px;
    margin: 15px 0;
}


.section-head h2 span {
    color: #7c5cff;
}

.section-head p {
    font-size: 16px;
    color: #666;
}

/* ================= PROCESS CARDS ================= */

.process-wrapper {
    display: flex;
    gap: 20px;
    height: 420px;
    width: 100%;           /* на всю ширину страницы */
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.process-card {
    position: relative;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    filter: grayscale(100%);
    min-width: 0;
}

.process-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.7) 100%
    );
}

/* Контент */

.process-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 20px;
    color: white;
    z-index: 2;
}

.process-content h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
}

/* Текст по умолчанию скрыт */
.process-content p {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-size: 14px;
}

/* АКТИВНАЯ */

.process-card.active {
    flex: 3;
    filter: grayscale(0%);
}
.process-card.active .process-content p {
    opacity: 1;
    transform: translateY(0);
}
.process-wrapper:hover .process-card .process-content p {
    opacity: 0;
    transform: translateY(10px);
}
.process-wrapper .process-card:hover .process-content p {
    opacity: 1;
    transform: translateY(0);
}
/* Hover эффект */

.process-wrapper:hover .process-card {
    flex: 1;
    filter: grayscale(100%);
}

.process-wrapper .process-card:hover {
    flex: 3;
    filter: grayscale(0%);
}


/* ================= CALCULATOR ================= */

.calc-section {
    padding: 120px 0;
    background: #f6f7fb;
}

.calc-header {
    text-align: center;
    margin-bottom: 60px;
}

.calc-header h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.calc-header h2 span {
    color: #6c63ff;
}

.calc-header p {
    color: #777;
}

/* WRAPPER */

.calc-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* LEFT SIDE */

.calc-main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    flex: 2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* STEPS */

.calc-steps {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
}

.step.active {
    background: #6c63ff;
    color: white;
}

.line {
    flex: 1;
    height: 2px;
    background: #e0e3f3;
}

/* QUESTION */

.question {
    font-size: 22px;
    margin-bottom: 25px;
}

/* OPTIONS */

.options {
    margin-bottom: 30px;
}

.option {
    border: 2px solid #eaeaea;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    background: #fafafa;
}

.option:hover {
    border-color: #6c63ff;
}

.option.active {
    border-color: #ff7a18;
    background: #fff7ef;
}

.option h4 {
    margin: 0;
}

.option p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #777;
}

/* NEXT BUTTON */

.btn-next {
    background: #6c63ff;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    float: right;
    transition: 0.3s;
}

.btn-next:hover {
    background: #5548e0;
}

/* RIGHT SIDE */

.calc-summary {
    flex: 1;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    color: white;
    border-radius: 20px;
    padding: 40px;
}

.calc-summary h4 {
    opacity: 0.7;
    margin-bottom: 15px;
}

.total {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
}

.calc-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-summary li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.calc-summary li span {
    font-weight: 600;
}


/* ================= LAYOUT ================= */

.contacts-section{
    padding:100px 0;
    background:linear-gradient(180deg,#f8f9ff 0%, #ffffff 100%);
}

.contacts-grid{
    display:grid;
    grid-template-columns: 1.1fr 1fr;
    gap:40px;
    align-items:start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ================= REVIEWS HERO REFINED ================= */
.stars{
    color:#facc15; /* золото */
    letter-spacing:2px;
}
.reviews-hero{
    display:flex;
    gap:25px;
    padding:30px;
    border-radius:24px;

    background:linear-gradient(135deg,#0f172a,#064e3b);
    color:white;

    box-shadow:0 25px 60px rgba(0,0,0,0.25);
    margin-bottom:25px;

    position:relative;
    overflow:hidden;
}

/* мягкий glow */
.reviews-hero::after{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    background:radial-gradient(circle, rgba(34,197,94,0.25), transparent 70%);
    top:-100px;
    right:-100px;
}

/* зелёный блок */

.rating-square{
    width:100px;
    height:100px;
    border-radius:20px;

    background:linear-gradient(135deg,#22c55e,#16a34a);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    flex-shrink:0;
}

.rating-value{
    font-size:36px;
    font-weight:700;
}

.rating-stars{
    font-size:14px;
    letter-spacing:2px;
}

/* текст справа */

.reviews-content {
    max-width: 380px;
}

.reviews-content h3{
    font-size:26px;
    margin-bottom:8px;
}

.reviews-content p{
    color:#cbd5f5;
    line-height:1.6;
    margin-bottom:15px;
}

.reviews-link{
    display:inline-flex;
    align-items:center;
    gap:8px;

    background:rgba(255,255,255,0.1);
    padding:12px 18px;
    border-radius:12px;

    color:white;
    text-decoration:none;

    transition:0.3s;
}

.reviews-link:hover{
    background:#22c55e;
    transform:translateY(-2px);
}

/* ================= REVIEW CARD ================= */

.review-card{
    background:#fff;
    border-radius:20px;
    padding:25px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

.review-top{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:15px;
}

.review-avatar{
    width:45px;
    height:45px;
    border-radius:50%;

    background:#e5f7ee;
    color:#16a34a;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:600;
}

.review-meta{
    font-size:13px;
    color:#6b7280;
}

.quote{
    margin-left:auto;
    font-size:40px;
    color:#e5e7eb;
}

.review-text{
    font-size:14px;
    color:#374151;
    line-height:1.6;
    margin-bottom:15px;
}

.review-images{
    display:flex;
    gap:10px;
    margin:0;
}

.review-images img{
    width:48%;
    height:140px;
    object-fit:cover;
    border-radius:12px;

    transition:0.3s;
}

.review-images img:hover{
    transform:scale(1.05);
}

/* ================= RIGHT SIDE ================= */

.contacts-title h2{
    font-size:36px;
    margin-bottom:5px;
}

.contacts-title p{
    color:#6b7280;
    margin-bottom:20px;
}

.contacts-map{
    border-radius:20px;
    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

.contacts-map iframe{
    width:100%;
    height:350px;
    border:0;
}
@media (max-width: 768px) {

    .review-images {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    .review-images img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }

    .review-images .col-6,
    .review-images .col-md-3 {
        padding: 0 !important;
        width: 100% !important;
    }

}

/* ================= FOOTER ================= */

.footer{
    padding:80px 0 30px;
    background:linear-gradient(135deg,#020617,#0b1120 60%, #020617);
    color:#cbd5f5;
    position:relative;
    overflow:hidden;
}

/* мягкий свет */
.footer::before{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    background:radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    top:-150px;
    left:-150px;
}

/* сетка */

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1.2fr;
    gap:60px;
    margin-bottom:40px;
}
/* логотип */

.footer-logo{
    font-size:28px;
    font-weight:700;
    margin-bottom:15px;
    color:white;
}

.footer-logo span{
    color:#6366f1;
}

.footer-about p{
    line-height:1.7;
    color:#94a3b8;
    margin-bottom:20px;
}

/* соц сети */

.footer-socials{
    display:flex;
    gap:12px;
}

.footer-socials a{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);

    color:white;
    text-decoration:none;

    transition:0.3s;
}

.footer-socials a:hover{
    background:#6366f1;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(99,102,241,0.4);
}

/* навигация */
.footer-contacts h4,
.footer-nav h4{
    color:white;
    margin-bottom:15px;
}

.footer-nav ul{
    list-style:none;
    padding:0;
}

.footer-nav li{
    margin-bottom:10px;
}

.footer-nav a{
    color:#94a3b8;
    text-decoration:none;
    transition:0.3s;
}

.footer-nav a:hover{
    color:#6366f1;
    padding-left:5px;
}

/* контакты */

.footer-contact-item{
    display:flex;
    gap:15px;
    margin-bottom:20px;
}

.icon-box{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:rgba(99,102,241,0.15);
    color:#6366f1;
    font-size:18px;
}
.footer-contact-item strong{
    display:block;
    color:white;
    margin-bottom:5px;
}

.footer-contact-item p{
    font-size:14px;
    color:#94a3b8;
    line-height:1.5;
}

/* низ */

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.05);
    padding-top:20px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:14px;
    color:#64748b;
}

.footer-bottom a{
    color:#6366f1;
    text-decoration:none;
}

.footer-bottom a:hover{
    text-decoration:underline;
}
@media(max-width:900px){

    .footer-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

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

}
@media (max-width: 768px) {

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .hero {
        padding: 20px 0 50px !important;
    }

    /* BADGE */
    .hero-badge {
        font-size: 13px !important;
        padding: 8px 14px !important;
    }

    /* ЗАГОЛОВОК */
    .hero-left h1 {
        font-size: 38px !important;
        line-height: 1.2 !important;
        margin: 16px 0 12px !important;
    }

    .hero-left p {
        font-size: 16px !important;
        margin-bottom: 20px !important;
    }

    /* СТРЕЛКИ */
    .hero-arrows {
        justify-content: center !important;
        margin-top: 16px !important;
        margin-bottom: 0 !important;
    }

    /* ПРАВАЯ КОЛОНКА */
    .hero-right {
        width: 100% !important;
        margin-top: 28px !important;
    }

    /* КНОПКИ */
    .btn-primary,
    .btn-gradient,
    .btn-outline {
        width: 100% !important;
        font-size: 17px !important;
        padding: 18px 20px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        margin-bottom: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    /* КАРТОЧКИ — главная проблема */
    .hero-cards {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 14px;
    }

    .info-card {
        flex: none !important;           /* важно */
        width: 100% !important;
        min-height: 138px;
        padding: 18px 16px;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
    }

    .info-card strong {
        display: block;
        margin-top: 6px;
        font-size: 17px;
        line-height: 1.35;
        white-space: normal;
    }

    /* ТЕЛЕФОН */
    .call-box {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        border-radius: 16px;
        text-align: center;
    }

    .call-box span {
        font-size: 12px !important;
        display: block !important;
        opacity: 0.7 !important;
        margin-bottom: 6px !important;
    }

    .call-box strong {
        font-size: 19px !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .process-wrapper {
        flex-direction: column !important;
        height: auto !important;        /* ← вот это главное */
        gap: 16px !important;
        padding: 0 16px !important;
    }

    .process-card {
        flex: none !important;
        width: 100% !important;
        height: 250px !important;
        filter: grayscale(0%) !important;
    }

    .process-card.active {
        flex: none !important;
        height: 250px !important;
    }

    .process-content p {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 768px) {

    .calc-section {
        padding: 60px 0 !important;
    }

    /* убираем боковые отступы контейнера внутри калькулятора */
    .calc-section .container {
        padding: 0 12px !important;
    }

    .calc-main {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .calc-header h2 {
        font-size: 30px !important;
    }

    /* шаги — кружочки чуть меньше чтобы не вылезали */
    .calc-steps {
        gap: 4px !important;
    }

    .step {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    /* опции в столбик */
    .option {
        padding: 16px !important;
    }

    /* итого блок */
    .calc-summary {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .total,
    #totalPrice {
        font-size: 28px !important;
    }

    /* кнопки навигации */
    #btnNext,
    #btnBack {
        font-size: 10px !important;
        padding: 10px 5px !important;
    }
}
@media (max-width: 768px) {

    .instagram-section {
        padding: 60px 0 !important;
    }

    .insta-header {
        padding: 0 16px !important;
    }

    .insta-header h2 {
        font-size: 28px !important;
    }

    .insta-header p {
        font-size: 15px !important;
    }

    /* профиль карточка на всю ширину */
    .insta-block {
        margin: 0 12px !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    /* имя + кнопка в столбик */
    .insta-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .insta-btn {
        width: 80% !important;
        text-align: center !important;
        padding: 12px !important;
        font-size: 15px !important;
    }

    /* статистика */
    .insta-stats {
        gap: 12px !important;
        flex-wrap: wrap !important;
        font-size: 13px !important;
    }

    /* карусель фото побольше */
    .carousel img {
        width: 240px !important;
        height: 240px !important;
    }
}

/* =========================================
   GLOBAL MOBILE FIX
========================================= */

*,
*::before,
*::after{
    box-sizing:border-box;
}

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden !important;
}

/* Safari iPhone fix */
body{
    position:relative;
}

/* IMG / VIDEO */
img,
video,
iframe{
    max-width:100%;
    height:auto;
    display:block;
}

/* =========================================
   REMOVE 100vw BUGS
========================================= */



/* =========================================
   HERO MOBILE
========================================= */

@media (max-width: 992px){

    .hero-content{
        flex-direction:column !important;
        gap:30px;
    }

    .hero-left,
    .hero-right{
        width:100% !important;
        max-width:100% !important;
    }

    .hero-left h1{
        font-size:42px !important;
        word-break:break-word;
    }

    .hero-navbar{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    nav{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        gap:14px;
    }

    nav a{
        margin-left:0 !important;
    }
}
/* =========================================
   CALCULATOR FIX
========================================= */

@media (max-width: 992px){

    .calc-wrapper{
        flex-direction:column !important;
    }

    .options{
        flex-direction:column !important;
    }

    .calc-main,
    .calc-summary{
        width:100% !important;
    }
}

/* =========================================
   CONTACTS FIX
========================================= */

@media (max-width: 992px){

    .contacts-grid{
        grid-template-columns:1fr !important;
    }

    .reviews-hero{
        flex-direction:column !important;
    }
}

/* =========================================
   FOOTER FIX
========================================= */

@media (max-width: 992px){

    .footer-grid{
        grid-template-columns:1fr !important;
    }
}

/* =========================================
   INSTAGRAM FIX
========================================= */

@media (max-width: 768px){

    .insta-card{
        flex-direction:column !important;
        align-items:flex-start !important;
    }
    .insta-card,
    .insta-info,
    .insta-block {
        min-width: 0;
    }
    .insta-info{
        width:100%;
    }

    .insta-btn{
        width:100% !important;
    }

    .carousel{
        overflow:hidden !important;
    }

    .carousel-track{
        width:max-content;
    }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 480px){

    h1{
        font-size:34px !important;
    }

    h2{
        font-size:28px !important;
    }

    .hero-left p,
    .section-head p,
    .insta-header p{
        font-size:14px !important;
    }

    .btn-primary,
    .btn-gradient,
    .btn-outline{
        font-size:15px !important;
        padding:16px !important;
    }

    .hero-cards{
        flex-direction:column !important;
    }

    .info-card{
        width:100% !important;
    }
}
/* =========================
   SAFARI FLEXBUG FIX (усиленный)
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Основные flex-контейнеры */
.hero-content,
.hero-right,
.hero-cards,
.info-card {
    min-width: 0 !important;
    min-height: 0 !important;
    flex-shrink: 1 !important;
}

/* Специально для карточек */
.info-card {
    flex: 1 1 auto !important;     /* Safari любит auto */
}

/* Hero Right колонка */
.hero-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    flex-shrink: 1;
}

/* Дополнительно для iOS Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
    .hero-right {
        -webkit-overflow-scrolling: touch;
    }

    .info-card {
        min-height: 138px;
        padding: 18px 16px;
    }
}
