/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f3a;
    --bg-card: rgba(15, 31, 58, 0.7);
    --accent: #00b4d8;
    --accent-glow: rgba(0, 180, 216, 0.3);
    --accent-dark: #0090ad;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --border: rgba(0, 180, 216, 0.15);
    --border-hover: rgba(0, 180, 216, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Roboto', sans-serif;
    --font-ui: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.3px;
}

/* UI elements keep Inter for readability */
.header__menu,
.header__langs,
.lang-btn,
.form-submit,
.footer__links,
.footer__copy,
.contact-item h4,
.contact-item p,
.form-group input,
.form-group textarea {
    font-family: var(--font-ui);
}

/* Headings styling */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

/* Section titles */
.section-title {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding: 8px 24px;
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 50px;
    background: rgba(0, 180, 216, 0.08);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.1);
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.header.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    flex-shrink: 0;
}

.header__logo-img {
    height: 82px;
    width: auto;
    transition: height var(--transition);
}

.header.scrolled .header__logo-img {
    height: 64px;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__menu {
    display: flex;
    gap: 4px;
}

.header__link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition);
    color: var(--text-secondary);
    position: relative;
    white-space: nowrap;
}

.header__link:hover,
.header__link.active {
    color: var(--text-primary);
    background: rgba(0, 180, 216, 0.1);
}

.header__link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header__langs {
    display: flex;
    gap: 8px;
    margin: 0 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: var(--accent);
    border-color: rgba(0, 180, 216, 0.3);
    background: rgba(0, 180, 216, 0.05);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.1);
}


.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.88) 0%,
        rgba(10, 22, 40, 0.65) 40%,
        rgba(10, 22, 40, 0.5) 70%,
        rgba(10, 22, 40, 0.75) 100%
    );
}

.hero__overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 140px 0 100px;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease forwards;
    background: linear-gradient(135deg, #e8e8e8 0%, #5a8a9a 50%, #7ab8c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(0, 180, 216, 0.4));
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.hero__title-accent {
    background: linear-gradient(90deg, var(--accent), #48cae4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1s 0.2s ease forwards;
    opacity: 0;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT ===== */
.about {
    padding: 120px 0;
    background: var(--bg-primary);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about__text strong {
    color: var(--accent);
}

.about__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    background: rgba(0, 180, 216, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 180, 216, 0.08);
}

.stat-card__number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card__number::after {
    content: '+';
    font-size: 1.6rem;
}

.stat-card__label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 400;
}

/* ===== SERVICES ===== */
.services {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
    pointer-events: none;
    z-index: 1;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 32px 36px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #48cae4);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 180, 216, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 28px;
    color: var(--accent);
    background: rgba(0, 180, 216, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all var(--transition);
}

.service-card:hover .service-card__icon {
    background: rgba(0, 180, 216, 0.15);
    box-shadow: 0 0 30px var(--accent-glow);
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.35;
}

.service-card__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ===== PARTNERS ===== */
.partners {
    padding: 0 0 120px;
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 2;
}

.partners::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
    pointer-events: none;
    z-index: 2;
}

.partners__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partners__track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}

.partners__marquee:focus-within .partners__track {
    animation-play-state: paused;
}


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

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    flex-shrink: 0;
    transition: all var(--transition);
    overflow: visible;
}

.partner-logo img {
    height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: all var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
    filter: none;
}

.partner-logo--text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.partner-logo--text:hover {
    color: var(--text-primary);
}

/* ===== PROJECTS ===== */
.projects {
    padding: 128px 0;
    background:
        radial-gradient(circle at 86% 12%, rgba(0, 180, 216, 0.08), transparent 28%),
        var(--bg-secondary);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.projects__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
    text-align: center;
}

.projects__heading {
    width: 100%;
}

.projects__heading .section-title {
    display: block;
}

.projects__heading .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 20px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 250px;
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 180, 216, 0.08);
}

.project-card__img {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
}

.project-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card__img img {
    transform: scale(1.08);
}

.project-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.02) 48%, rgba(10, 22, 40, 0.66));
    pointer-events: none;
}

.project-card__content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 44px 20px 20px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.95) 70%);
}

.project-card__meta {
    margin-bottom: 10px;
    color: var(--accent);
    font: 700 0.62rem/1.2 var(--font-ui);
    letter-spacing: 0.14em;
}

.project-card--featured {
    grid-row: span 2;
}

.project-card--featured .project-card__img {
    height: 100%;
}

.project-card--featured .project-card__content {
    padding: 24px 26px 26px;
}

.project-card__title {
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.project-card__text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-item__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    color: var(--accent);
    background: rgba(0, 180, 216, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.contact-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(0, 180, 216, 0.03);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.08);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #ff6b6b;
}

.form-status {
    min-height: 1.5em;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-status[data-type="error"] { color: #ff9b9b; }
.form-status[data-type="success"] { color: #7ee2a8; }
.form-status[data-type="info"] { color: var(--text-secondary); }

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.form-submit:focus-visible,
.quick-widget__toggle:focus-visible,
.header__burger:focus-visible,
.lang-btn:focus-visible,
.header__link:focus-visible {
    outline: 3px solid rgba(0, 180, 216, 0.75);
    outline-offset: 3px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 50px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer__logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 8px;
}

.footer__logo p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.footer__copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .header__logo-img {
        height: 66px;
    }
    .header.scrolled .header__logo-img {
        height: 58px;
    }
    .header__menu {
        gap: 2px;
    }
    .header__link {
        font-size: 0.82rem;
        padding: 6px 9px;
        letter-spacing: 0.2px;
    }
    .header__langs {
        margin: 0 10px;
        padding-left: 10px;
        gap: 4px;
    }
    .lang-btn {
        padding: 4px 7px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .services__grid,
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services__grid > :last-child {
        grid-column: span 2;
    }

    .projects__grid {
        grid-template-rows: auto;
    }

    .project-card--featured {
        grid-column: span 2;
        grid-row: auto;
    }

    .project-card--featured .project-card__img {
        height: 260px;
        min-height: 0;
    }

    .header__logo-img {
        height: 58px;
    }

    .header.scrolled .header__logo-img {
        height: 52px;
    }

    .header__langs {
        margin: 0 12px 0 auto;
        padding-left: 0;
        border-left: none;
        gap: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.85rem;
    }


    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 90px 32px 40px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: right var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .header__nav.open {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header__link {
        font-size: 1.15rem;
        padding: 12px 16px;
        display: block;
        white-space: normal;
    }

    .header__burger {
        display: flex;
    }

    .header__burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .header__burger.active span:nth-child(2) {
        opacity: 0;
    }
    .header__burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header.scrolled {
        padding: 9px 0;
    }

    .header__logo-img {
        height: 50px;
    }

    .header.scrolled .header__logo-img {
        height: 42px;
    }

    .header__langs {
        margin: 0 10px 0 auto;
        padding-left: 0;
        border-left: none;
        gap: 4px;
    }

    .lang-btn {
        padding: 4px 7px;
        font-size: 0.8rem;
    }

    .hero__content {
        padding: 110px 0 70px;
    }

    .hero__title {
        font-size: clamp(1.6rem, 6.5vw, 2.5rem);
        letter-spacing: 1px;
    }

    .hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .partner-logo {
        height: 80px;
        padding: 0 18px;
    }


    .partner-logo img {
        height: 45px;
        max-width: 150px;
    }

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

    .services__grid,
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services__grid > :last-child {
        grid-column: span 1;
    }

    .projects__header {
        align-items: flex-start;
        margin-bottom: 36px;
    }

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

    .project-card--featured {
        grid-column: auto;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .about, .services, .projects, .contacts {
        padding: 70px 0;
    }

    .partners {
        padding: 0 0 60px;
    }


    .section-header {
        margin-bottom: 36px;
    }

    .hero__content {
        padding: 95px 0 50px;
    }

    .about__stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card__number {
        font-size: 1.9rem;
    }

    .stat-card__label {
        font-size: 0.75rem;
    }

    .footer__logo img {
        height: 52px;
    }

    .footer__links {
        gap: 16px;
    }
}

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

    .partners__track { animation: none; }
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 380px;
    line-height: 1.5;
    animation: toastIn 0.4s ease forwards;
}

/* Quick contact widget removed from the page. */
#quickWidget {
    display: none !important;
}

.toast-notification--success {
    background: rgba(0, 180, 216, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notification--error {
    background: rgba(220, 53, 69, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

@media (max-width: 480px) {
    .toast-notification {
        left: 16px;
        right: 16px;
        bottom: 20px;
        max-width: none;
        text-align: center;
        padding: 14px 20px;
        font-size: 0.85rem;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== TIMELINE: MEDICAL GAS SYSTEMS (inside services) ===== */
.services__timeline {
    margin-top: 80px;
    padding-top: 60px;
    position: relative;
}

.services__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.section-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.timeline__wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

/* Центральная линия */
.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark), var(--accent));
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Шаг таймлайна */
.timeline__step {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 70px;
}

.timeline__step:last-child {
    margin-bottom: 0;
}

/* Чередование: нечётные — контент справа, чётные — слева */
.timeline__step:nth-child(odd) {
    flex-direction: row;
}

.timeline__step:nth-child(even) {
    flex-direction: row-reverse;
}

/* Иконка по центру */
.timeline__icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow:
        0 0 0 4px var(--bg-primary),
        0 0 0 6px var(--accent),
        0 0 25px var(--accent-glow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.timeline__step:hover .timeline__icon {
    box-shadow:
        0 0 0 4px var(--bg-primary),
        0 0 0 6px var(--accent),
        0 0 40px var(--accent-glow),
        0 0 60px rgba(0, 180, 216, 0.15);
    transform: translateX(-50%) scale(1.08);
}

.timeline__icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Контент шага */
.timeline__step-content {
    width: 45%;
}

.timeline__step:nth-child(odd) .timeline__step-content {
    text-align: left;
    padding-left: 30px;
}

.timeline__step:nth-child(even) .timeline__step-content {
    text-align: right;
    padding-right: 30px;
}

/* Номер шага */
.timeline__step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), #48cae4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 8px rgba(0, 180, 216, 0.3));
}

/* Заголовок шага */
.timeline__step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Текст шага */
.timeline__step-text {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ===== TIMELINE RESPONSIVE ===== */
@media (max-width: 768px) {
    .services__timeline {
        margin-top: 50px;
        padding-top: 40px;
    }

    .timeline__line {
        left: 27px;
    }

    .timeline__step,
    .timeline__step:nth-child(odd),
    .timeline__step:nth-child(even) {
        flex-direction: row !important;
        padding-left: 72px;
        margin-bottom: 50px;
    }

    .timeline__icon {
        left: 27px;
        width: 46px;
        height: 46px;
    }

    .timeline__icon svg {
        width: 22px;
        height: 22px;
    }

    .timeline__step-content,
    .timeline__step:nth-child(odd) .timeline__step-content,
    .timeline__step:nth-child(even) .timeline__step-content {
        width: 100%;
        text-align: left !important;
        padding: 0 !important;
    }

    .timeline__step-number {
        font-size: 32px;
    }

    .timeline__step-title {
        font-size: 13px;
    }

    .timeline__step-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .services__timeline {
        margin-top: 30px;
        padding-top: 30px;
    }

    .timeline__step {
        padding-left: 60px;
        margin-bottom: 40px;
    }

    .timeline__line {
        left: 22px;
    }

    .timeline__icon {
        left: 22px;
        width: 40px;
        height: 40px;
    }

    .timeline__icon svg {
        width: 20px;
        height: 20px;
    }

    .timeline__step-number {
        font-size: 28px;
    }

    .timeline__step-title {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .timeline__step-text {
        font-size: 0.82rem;
    }
}

/* ===== CONTACT LINKS ===== */
.contact-link {
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

/* ===== TRUST BADGES ===== */
.about__trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.trust-badge:hover {
    border-color: var(--border-hover);
    background: rgba(0, 180, 216, 0.06);
    transform: translateY(-2px);
}

.trust-badge__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge__icon svg {
    width: 22px;
    height: 22px;
}

.trust-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .about__trust {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ===== QUICK CONTACT WIDGET ===== */
.quick-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.quick-widget__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 20px rgba(0, 180, 216, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    outline: none;
}

.quick-widget__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.quick-widget__toggle svg {
    width: 26px;
    height: 26px;
    transition: transform var(--transition);
}

.quick-widget__icon-close {
    display: none;
}

.quick-widget.active .quick-widget__icon-chat {
    display: none;
}

.quick-widget.active .quick-widget__icon-close {
    display: block;
}

.quick-widget__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.quick-widget.active .quick-widget__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.quick-widget__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    background: rgba(15, 31, 58, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
    white-space: nowrap;
}

.quick-widget__item:hover {
    transform: translateX(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.quick-widget__item span {
    font-size: 0.85rem;
    font-weight: 600;
}

.quick-widget__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.quick-widget__icon svg {
    width: 18px;
    height: 18px;
}

.quick-widget__item--phone .quick-widget__icon {
    background: #00b4d8;
}

.quick-widget__item--whatsapp .quick-widget__icon {
    background: #25d366;
}

.quick-widget__item--telegram .quick-widget__icon {
    background: #0088cc;
}

@media (max-width: 480px) {
    .quick-widget {
        bottom: 20px;
        right: 18px;
    }
    .quick-widget__toggle {
        width: 50px;
        height: 50px;
    }
    .quick-widget__toggle svg {
        width: 22px;
        height: 22px;
    }
}
