:root {
    --primary-blue: #2f7dd9;
    --secondary-blue: #057499;
    --accent-blue: #07aee8;
    --deep-blue: #0d2031;
    --soft-blue: #e8f4f8;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --success: #4caf50;
    --error: #f44336;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(47, 125, 217, 0.15);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevents tiny gaps below images */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    /* Ensure container doesn't exceed screen */
}

.section {
    padding: var(--spacing-lg) 0;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(47, 125, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 125, 217, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-accent {
    background: var(--accent-blue);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header .logo b {
    color: #fff;
    text-transform: uppercase;
    border-left: #10a1e7 2px solid;
    padding-left: 8px;
}

.header .logo {
    display: flex;
    align-items: center !important;
    gap: 4px;
}

.header.scrolled .logo img {
    /* Перетворення білого кольору у синій (--primary-blue: #2f7dd9) */
    filter: brightness(0) saturate(100%) invert(38%) sepia(93%) saturate(1512%) hue-rotate(192deg) brightness(90%) contrast(92%);
}

.header.scrolled .logo b {
    color: #222;
}

.header.scrolled .phone-number svg {
    color: #1f7fde;
}

.header.scrolled .home-btn {
    filter: brightness(0) saturate(100%) invert(38%) sepia(93%) saturate(1512%) hue-rotate(192deg) brightness(90%) contrast(92%);
}

.header.scrolled .mobile-phone svg {
    fill: #f9f9f9;
    color: #fbfbfb;
    border-radius: 50%;
    padding: 4px;
    border: #2ecc71 2px solid;
    width: 28px;
    height: 28px;
    background: #2ecc71;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.home-btn {
    border-radius: 50%;
    border: #fff 2px solid;
    display: block;
    padding: 4px;
}

/* Стилізація випадаючого списку */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
}

.dropdown-content li a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content li a:hover {
    background-color: #f1f1f1;
}

/* Показувати при наведенні */
.dropdown:hover .dropdown-content {
    display: block;
}

/* На мобільних пристроях краще залишити бургер-меню, де всі пункти списком */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 20px;
    }

    .dropbtn {
        display: none;
        /* Ховаємо назву групи на мобільних, щоб не захаращувати */
    }
}

.nav-list ul li {
    min-width: 24px;
}

.icon {
    width: 24px;
}

.icon {
    width: 24px;
}

.header.scrolled .phone-number,
.header.scrolled .nav-list a {
    color: var(--text-dark);
}

.header.scrolled .menu-toggle span {
    background: var(--text-dark);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    color: var(--white);
    font-weight: 500;
}

.nav-cta {
    background: var(--accent-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--white) !important;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--deep-blue), var(--primary-blue));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    color: var(--white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hero-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.hero-image {
    position: relative;
}

.floating-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.badge-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    width: 100%;
    line-height: 0;
}

/* Quality */
.quality {
    background: var(--soft-blue);
}

.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.analysis-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.analysis-card img,
.purification-flow img {
    max-width: 100%;
    height: auto;
    display: block;
}

.steps-list {
    display: grid;
    grid-column: 1 / -1;
    /* розтягне на всю ширину у батьківському гріду */
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.step-num {
    background: var(--primary-blue);
    color: var(--white);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.step-name {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.info-tooltip {
    margin-left: auto;
    /* Вирівнює знак питання до правого краю */
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.info-tooltip:hover {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 32, 49, 0.95);
    color: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    width: max-content;
    max-width: 280px;
    white-space: normal;
    text-align: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    line-height: 1.4;
    pointer-events: none;
}

/* Стрілочка під тултипом */
.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(13, 32, 49, 0.95) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

/* Ховер через CSS для настільних пк */
@media (hover: hover) {

    .info-tooltip:hover::after,
    .info-tooltip:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }


}

/* Клас для мобільних девайсів (додається через JS по кліку) */
.info-tooltip.show-tooltip::after,
.info-tooltip.show-tooltip::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Hint Box */
.mobile-hint-box {
    position: fixed;
    bottom: -100px;
    left: 20px;
    right: 20px;
    background: rgba(13, 32, 49, 0.98);
    color: white;
    padding: 1.2rem;
    border-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    text-align: center;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.mobile-hint-box.active {
    bottom: 200px;
}

@media (max-width: 768px) {
    /* Hide the default floating tooltip on mobile as we'll use the bottom box */
    .info-tooltip::after,
    .info-tooltip::before {
        display: none !important;
    }
    
    .info-tooltip {
        transform: scale(1.2); /* Make icon easier to tap on mobile */
        padding: 5px !important;
    }
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-actions {
    display: flex;
    gap: 1em;
    padding-right: 1em;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    background: var(--soft-blue);
    padding: 2rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.product-info {
    padding: 2em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.form-product-card .product-info {
    padding: 1.5rem 0 0 0;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Form */
.order-section {
    background: var(--soft-blue);
}

.order-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-step-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.form-step-dot.active {
    background: var(--primary-blue);
    color: var(--white);
}

.form-step-line {
    width: 50px;
    height: 2px;
    background: #eee;
}

.form-step-line.active {
    background: var(--primary-blue);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

/* Autocomplete styles */
.autocomplete-container {
    position: relative;
    display: block;
    width: 100%;
}

.autocomplete-items {
    position: absolute;
    border: 2px solid #eee;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--white);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-md);
    display: none;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    text-align: left;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.autocomplete-items div:hover,
.autocomplete-active {
    background-color: var(--soft-blue) !important;
}

.form-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center !important;
}

.step-content h3 {
    text-align: center;
}

.step-content .subh {
    text-align: center;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Product Selection in Form */
.product-selection {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.form-product-card {
    flex: 1;
    min-width: 150px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 20px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.form-product-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.form-product-card.active {
    border-color: var(--primary-blue);
    /*background: var(--soft-blue);*/
    box-shadow: var(--shadow-md);
}

.form-product-card.active::after {
    content: '✓';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #06b006;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-img-small {
    width: 100%;
    height: 120px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-small img {
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.product-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.product-price small {
    font-size: 12px;
}

.product-price {
    display: block;
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.form-product-card .product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.qty-selector input {
    width: 60px !important;
    text-align: center;
    font-size: 1.2rem !important;
    font-weight: 700;
    padding: 0.5rem !important;
    border: none !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    .steps-list {
        grid-template-columns: 1fr;
    }

    .product-selection {
        flex-direction: column;
        gap: 1rem;
    }

    .form-product-card {
        flex-direction: row;
        text-align: left;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 0.8rem;
    }

    .product-img-small {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .form-product-card .product-info {
        align-items: flex-start;
    }

    .product-name {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    /* Footer mobile navigation */
    .nav-mobile-grid ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        text-align: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-phone {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 0;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
        overflow-x: hidden;
        /* Prevent child overflow from horizontal scroll */
    }

    .hero-container,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero-trust-list,
    .hero-btns {
        justify-content: center;
    }

    .hero-trust-list {
        grid-template-columns: 1fr;
        /* Stacking features is safer for narrow screens */
        text-align: left;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .nav {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background: var(--white);
        z-index: 1001;
        padding: 6rem 2rem;
        transition: var(--transition);
    }

    .nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list a {
        color: var(--text-dark);
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .menu-toggle.active span {
        background: var(--text-dark);
    }

    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-badge {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 2rem;
        display: inline-flex;
        transform: none;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .quality-grid {
        gap: 2rem;
    }

    .steps-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .step-item {
        width: 100%;
    }

    .step-name {
        max-width: calc(100% - 40px);
        /* Враховуємо ширину кружка з цифрой */
    }

    .analysis-card {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-img-wrapper {
        padding: 1rem;
        height: 300px;
    }

    .product-info {
        padding: 1.5rem;
    }
}

/* Mobile Breakpoint for 1-column layout */
@media (max-width: 576px) {
    .steps-list,
    .products-grid,
    .quality-grid {
        grid-template-columns: 1fr;
    }
}




/* Floating Buttons */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixed-btn {
    width: 44px;
    /* Slightly smaller for mobile */
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: transform 0.2s;
    border: #fff 2px solid;
}

.fixed-btn:hover {
    transform: scale(1.1);
}

.fixed-btn.telegram {
    background: #0088cc;
}

.fixed-btn.phone {
    background: var(--success);
}

.fixed-btn img,
.fixed-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* App Screenshots Section */
.app-section {
    background: var(--white);
    text-align: center;
}

.delivery-details {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.screenshot-item {
    background: var(--soft-blue);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(47, 125, 217, 0.1);
    position: relative;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.screenshot-item img {
    border-radius: 12px;
    width: 100%;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.screenshot-title {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-blue);
}

@media (max-width: 1100px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-logo {
        filter: brightness(0) invert(1);
        margin: auto;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hide-mob {
        display: none;
    }
}

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Deposit & Online Payment Sections */
.deposit-grid,
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.deposit-img img,
.payment-img img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.features-list {
    margin: 1.5rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.features-list li span {
    color: var(--success);
    font-weight: 700;
}

.card-glass {
    background: rgba(47, 125, 217, 0.05);
    border: 1px solid rgba(47, 125, 217, 0.1);
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.payment-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.payment-feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.payment-feature-item .icon {
    background: var(--soft-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.payment-cta {
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    padding: 1rem;
    background: var(--soft-blue);
    border-radius: 12px;
}

.online-payment-section {
    background: var(--soft-blue);
}

.deposit-section {
    background: var(--white);
}


/* Базові стилі для іконки, щоб вона виглядала акуратно */
.mobile-phone svg {
    display: block;
    fill: #2ecc71;
    /* Колір іконки, можна змінити на свій */
}

/* 1. Логіка для ПК (екрани більше 768px) */
@media (min-width: 769px) {
    .mobile-phone {
        display: none !important;
        /* Ховаємо іконку */
    }

    .desktop-phone {
        display: flex;
        /* Показуємо текст */
        font-size: 12px;
    }
}

/* 2. Логіка для Мобільних (екрани 768px і менше) */
@media (max-width: 768px) {
    .desktop-phone {
        display: none !important;
        /* Ховаємо текст */
        font-size: 12px;
    }

    .mobile-phone {
        display: flex;
        /* Показуємо іконку */
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 992px) {

    .deposit-grid,
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .deposit-grid .deposit-content,
    .payment-grid .payment-content {
        order: 2;
    }

    .deposit-grid .deposit-img,
    .payment-grid .payment-img {
        order: 1;
    }

    .section-title {
        text-align: center !important;
    }

    .payment-feature-item {
        text-align: left;
    }

    /* Target very narrow screens (360px) */
    @media (max-width: 400px) {
        .hero-title {
            font-size: 1.8rem;
        }

        .btn {
            padding: 0.8rem 1.2rem;
            font-size: 0.9rem;
        }

        .hero-btns {
            flex-direction: column;
            width: 100%;
        }

        .hero-btns .btn {
            width: 100%;
        }

        .header-container {
            padding: 0 5px;
        }

        .logo img {
            width: 80px;
        }

        .fixed-cta {
            bottom: 10px;
            left: 10px;
        }
    }
}