
/* ОБЩИЕ СТИЛИ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

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


/* ШАПКА */

header {
    padding: 15px 0;
    background: #0f172a;
    color: white;
    border-bottom: 2px solid #1e293b;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    color: #38bdf8;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
}

header nav a {
    margin-left: 25px;
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

header nav a:hover,
header nav a:focus-visible {
    color: white;
}


/* ОБЩИЕ СЕКЦИИ */

section {
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

h2 {
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 32px;
    text-align: center;
}


/* ГЛАВНЫЙ ЭКРАН */

.hero {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 100%
    );
    color: white;
    text-align: center;
}

.hero h1 {
    margin-bottom: 15px;
    font-size: 48px;
}

.hero .subtitle {
    margin-bottom: 30px;
    color: #a8b7ca;
    font-size: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s,
        transform 0.2s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #7dd3fc;
    transform: translateY(-2px);
}


/* ПРЕИМУЩЕСТВА */

.advantages {
    background: #f3f7fb;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    gap: 30px;
}

.advantage-item {
    padding: 30px 20px;
    background: #e6f2fa;
    border: 1px solid #c7e4f5;
    border-radius: 12px;
    box-shadow:
        0 6px 16px -6px rgba(15, 23, 42, 0.24);
    text-align: center;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 24px -10px rgba(15, 23, 42, 0.35);
}

.advantage-item .icon {
    margin-bottom: 15px;
    font-size: 40px;
    line-height: 1;
}

.advantage-item h3 {
    margin-bottom: 10px;
    color: #0f172a;
}


/* ФЛАГ РОССИИ */

.russia-flag {
    width: 80px;
    height: 48px;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 3px;
    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.18);
}

.russia-flag span {
    display: block;
    height: 33.333%;
}

.russia-flag span:nth-child(1) {
    background: #ffffff;
}

.russia-flag span:nth-child(2) {
    background: #0039a6;
}

.russia-flag span:nth-child(3) {
    background: #d52b1e;
}


/* ПОДДЕРЖКА ФОНДА */

.fund-support {
    background: #edf3f9;
    text-align: center;
}

.fund-support p {
    max-width: 1080px;
    margin: 0 auto;
}

.fund-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.fund-logos img {
    width: auto;
    height: 100px;
    max-width: 300px;
    object-fit: contain;
}

.fund-logos img:first-child {
    height: 160px;
    max-width: 360px;
}


/* КЕЙСЫ ПРИМЕНЕНИЯ */

.cases ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    list-style: none;
}

.cases ul li {
    padding: 18px 22px;
    background: white;
    border-left: 4px solid #38bdf8;
    border-radius: 8px;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.08);
}


/* ВИДЕО */

.video-section {
    background: #f1f5f9;
}

.video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 16px;
    box-shadow:
        0 14px 30px -14px rgba(15, 23, 42, 0.55);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* КОНТАКТЫ */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-info,
.contact-visual {
    min-height: 250px;
    border-radius: 14px;
    box-shadow:
        0 6px 18px -8px rgba(15, 23, 42, 0.22);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 38px;
    background: white;
}

.contact-info a {
    color: #0369a1;
}

.contact-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow: hidden;
    padding: 36px;
    background: linear-gradient(
        135deg,
        #0f172a,
        #164e63
    );
    color: white;
}

.contact-visual img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 8px 12px rgba(0, 0, 0, 0.28)
        );
}

.contact-visual strong,
.contact-visual span {
    display: block;
}

.contact-visual strong {
    margin-bottom: 8px;
    font-size: 22px;
}

.contact-visual span {
    color: #bae6fd;
}


/* ЗАГОЛОВКИ ВНУТРЕННИХ СТРАНИЦ */

.page-header {
    padding: 40px 0;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.page-header h1 {
    color: #0f172a;
    font-size: 36px;
}

.page-header p {
    margin-top: 8px;
    color: #475569;
    font-size: 18px;
}


/* СТРАНИЦА «МАКЕТ СИСТЕМЫ» */

.project-page-header {
    padding: 56px 0;
    background: linear-gradient(
        135deg,
        #e0f2fe 0%,
        #f1f5f9 55%,
        #dbeafe 100%
    );
}

.project-page-header h1 {
    margin: 4px 0 8px;
    font-size: clamp(36px, 5vw, 52px);
}

.project-page-header p:last-child {
    color: #475569;
    font-size: 19px;
}

.project-kicker {
    color: #0284c7;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-details {
    background: #f8fafc;
}

.project-content {
    max-width: 1040px;
}


/* ВВОДНОЕ ОПИСАНИЕ ПРОЕКТА */

.project-intro {
    padding: 55px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.project-intro > .container {
    max-width: 1100px;
}

.project-intro p,
.system-component > p,
.interface-panel > p {
    color: #334155;
    font-size: 17px;
    line-height: 1.75;
}

.project-intro p + p,
.system-component > p + p {
    margin-top: 18px;
}

.components-title {
    margin: 64px 0 32px;
    font-size: 30px;
}


/* КОМПОНЕНТЫ СИСТЕМЫ */

.system-components {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.system-component {
    position: relative;
    overflow: hidden;
    padding: 32px 34px;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #f8fbff 100%
    );
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.system-component::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        #0284c7,
        #38bdf8,
        #7dd3fc
    );
    content: "";
}

.system-component:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.11);
}

.system-component-featured {
    grid-column: 1 / -1;
    padding: 38px 42px 42px;
}

.component-heading {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e0f2fe;
}

.component-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.3;
    text-align: left;
}


/* ВКЛАДКИ ПАНЕЛИ ОПЕРАТОРА */

.operator-tabs {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.interface-panel {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.interface-panel h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 21px;
}


/* ОКНО ПРОСМОТРА ИЗОБРАЖЕНИЙ */

.image-viewer {
    width: min(96vw, 1500px);
    height: min(94vh, 1000px);
    padding: 0;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 16px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55);
}

.image-viewer::backdrop {
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(3px);
}

.image-viewer[open] {
    display: grid;
    grid-template-rows: auto 1fr;
}

.image-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    background: #1e293b;
    color: white;
}

.image-viewer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-viewer button {
    min-width: 40px;
    min-height: 40px;
    padding: 7px 12px;
    background: #334155;
    color: white;
    border: 1px solid #64748b;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.image-viewer button:hover,
.image-viewer button:focus-visible {
    background: #475569;
}

.image-viewer-close {
    font-size: 26px;
    line-height: 1;
}

.image-viewer-canvas {
    overflow: auto;
    padding: 24px;
    text-align: center;
    overscroll-behavior: contain;
}

.image-viewer-canvas img {
    display: inline-block;
    width: auto;
    max-width: none;
    height: auto;
    transform-origin: top center;
    transition: width 0.15s ease;
}


/* СТРАНИЦА «О НАС» */

.about-details {
    background: #f4f7fb;
}

.about-content {
    max-width: 1140px;
}


/* ОПИСАНИЕ КОМПАНИИ */

.about-intro {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
    align-items: start;
    gap: 64px;
    padding: 40px;
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.07);
}

.about-intro h2 {
    margin: 0;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.15;
    text-align: left;
}

.about-intro > p {
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}


/* КОНТАКТНАЯ ИНФОРМАЦИЯ */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0 76px;
}

.contact-card {
    min-height: 170px;
    padding: 26px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: #7dd3fc;
    box-shadow:
        0 16px 32px rgba(15, 23, 42, 0.1);
}

.contact-card:focus-within {
    border-color: #38bdf8;
    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.2);
}

.contact-card h3 {
    margin-bottom: 9px;
    color: #0f172a;
    font-size: 20px;
}

.contact-card p,
.contact-card a {
    color: #526277;
}

.contact-card p {
    line-height: 1.7;
}

.contact-card a {
    text-decoration-color: #7dd3fc;
    text-underline-offset: 4px;
}

.contact-card a:hover {
    color: #0369a1;
}

.contact-card a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(56, 189, 248, 0.35);
    outline-offset: 3px;
}


/* ФАКТЫ О КОМПАНИИ */

.about-facts {
    padding: 54px 0 30px;
    border-top: 1px solid #dbe4ef;
}

.about-facts h2 {
    margin-bottom: 28px;
    text-align: left;
}

.about-facts ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0;
    list-style: none;
}

.about-facts li {
    position: relative;
    min-height: 175px;
    padding: 30px 28px;
    overflow: hidden;
    background: #0f172a;
    color: white;
    border-radius: 18px;
}

.about-facts li::after {
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 120px;
    height: 120px;
    background: rgba(56, 189, 248, 0.12);
    border-radius: 50%;
    content: "";
}

.about-facts strong,
.about-facts span {
    position: relative;
    z-index: 1;
    display: block;
}

.about-facts strong {
    margin-bottom: 12px;
    color: #7dd3fc;
    font-size: 23px;
}

.about-facts span {
    color: #cbd5e1;
    line-height: 1.65;
}


/* КОМАНДА */

.team-section {
    margin-top: 76px;
    padding-top: 54px;
    border-top: 1px solid #dbe4ef;
}

.team-section h2 {
    margin-bottom: 8px;
    text-align: left;
}

.team-subtitle {
    max-width: 620px;
    margin-bottom: 35px;
    color: #64748b;
    text-align: left;
}

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

.team-card {
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.12);
}

.team-photo {
    width: 100%;
    height: 330px;
    overflow: hidden;
    background: #f1f5f9;
}

.team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-info {
    padding: 28px;
}

.team-info h3 {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 21px;
}

.team-info h4 {
    margin-bottom: 12px;
    color: #38bdf8;
    font-size: 15px;
    font-weight: 600;
}

.team-info p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}


/* ПОДВАЛ */

footer {
    padding: 30px 0;
    background: #0f172a;
    color: #94a3b8;
    border-top: 2px solid #1e293b;
    text-align: center;
}

footer p:first-child {
    color: white;
    font-weight: 500;
}


/* ПЛАНШЕТЫ */

@media (max-width: 900px) {
    .about-grid,
    .about-facts ul {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid > :last-child,
    .about-facts ul > :last-child {
        grid-column: 1 / -1;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-cards {
        grid-template-columns: 1fr 1fr;
    }

    .interface-images {
        gap: 20px;
    }
}


/* МОБИЛЬНЫЕ УСТРОЙСТВА */

@media (max-width: 768px) {
    section {
        padding: 44px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .contacts-grid,
    .cases ul {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    header nav a {
        margin: 0 10px;
    }

    .fund-logos img {
        height: 82px;
        max-width: 240px;
    }

    .fund-logos img:first-child {
        height: 125px;
        max-width: 280px;
    }

    .contact-visual {
        flex-direction: column;
        text-align: center;
    }

    .project-page-header {
        padding: 42px 0;
    }

    .project-intro,
    .system-component {
        padding: 24px 20px;
    }

    .system-components {
        grid-template-columns: 1fr;
    }

    .system-component-featured {
        padding: 26px 20px;
    }

    .component-heading h2 {
        font-size: 22px;
    }

    .interface-panel {
        padding: 20px 16px;
    }

    .about-intro,
    .about-grid,
    .about-facts ul {
        grid-template-columns: 1fr;
    }

    .about-intro {
        gap: 24px;
        padding: 28px 22px;
    }

    .about-intro h2 {
        font-size: 28px;
    }

    .about-grid > :last-child,
    .about-facts ul > :last-child {
        grid-column: auto;
    }

    .project-section,
    .project-intro {
        padding: 42px 0;
    }

    .project-section h2,
    .project-intro h2 {
        font-size: 25px;
    }

    .project-section > .container > p,
    .project-intro > .container > p {
        font-size: 16px;
    }

    .interface-images,
    .project-cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .project-card {
        padding: 23px 21px;
    }

    .project-card h3 {
        font-size: 19px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero .subtitle {
        font-size: 17px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .advantage-item {
        padding: 25px 20px;
    }

    .fund-support {
        padding: 40px 0;
    }

    .cases ul li {
        min-height: 60px;
    }
}


/* ТЕЛЕФОНЫ */

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

    .logo {
        font-size: 18px;
        text-align: center;
    }

    header nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    header nav a {
        margin: 0;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .page-header p {
        font-size: 16px;
    }

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

    .team-photo {
        height: 300px;
    }

    .image-viewer {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .image-viewer-toolbar {
        gap: 8px;
        padding: 8px;
    }

    .image-viewer-controls {
        gap: 5px;
    }

    .image-viewer button {
        min-width: 38px;
        min-height: 38px;
        padding: 6px 9px;
    }

    .image-viewer-canvas {
        padding: 12px;
    }
}


/* ОТКЛЮЧЕНИЕ АНИМАЦИЙ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn-primary,
    .advantage-item,
    .system-component,
    .image-viewer-canvas img,
    .contact-card,
    .team-card,
    .fund-logos img,
    .cases ul li {
        transition: none;
    }
}


/* =========================================
   НОВЫЕ СТИЛИ СТРАНИЦЫ СУП-1
   ========================================= */

/* Разделы проекта */

.project-section {
    padding: 55px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.project-section:nth-of-type(even) {
    background: #f1f5f9;
}

.project-section h2,
.project-intro h2 {
    margin-bottom: 28px;
    color: #0f172a;
    font-size: 30px;
    text-align: center;
}

.project-section > .container > p,
.project-intro > .container > p {
    max-width: 1050px;
    margin: 0 auto 22px;
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}


/* Галерея изображений */

.interface-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
    margin-top: 30px;
}

.interface-image {
    min-width: 0;
    text-align: center;
}

.interface-image button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

.interface-image button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.interface-image button:focus-visible {
    outline: 3px solid #0284c7;
    outline-offset: 4px;
}

.interface-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.interface-image p {
    margin-top: 12px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}


/* Карточки проекта */

.project-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.project-card {
    min-width: 0;
    padding: 28px 30px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-left: 4px solid #38bdf8;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.project-card h3 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.35;
}

.project-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}


/* Список программной защиты */

.project-card ol {
    padding-left: 24px;
    color: #334155;
}

.project-card ol li {
    padding-left: 7px;
    margin-bottom: 13px;
    line-height: 1.7;
}

.project-card ol li:last-child {
    margin-bottom: 0;
}

.project-card ol li::marker {
    color: #0284c7;
    font-weight: 700;
}


/* Дополнительные стили главной страницы */

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    line-height: 1.2;
}

.advantage-item p {
    color: #475569;
    line-height: 1.7;
}

.fund-logos img {
    transition: transform 0.2s ease;
}

.fund-logos img:hover {
    transform: translateY(-3px);
}

.cases ul li {
    min-height: 70px;
    display: flex;
    align-items: center;
    line-height: 1.6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cases ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.contact-info a {
    text-decoration-color: #7dd3fc;
    text-underline-offset: 4px;
}

.contact-info a:hover {
    color: #0284c7;
}


/* Мобильные устройства */

@media (max-width: 480px) {
    .project-card {
        padding: 20px 17px;
    }

    .interface-image p {
        font-size: 14px;
    }
}

/* =================================
   ОБНОВЛЁННАЯ ГАЛЕРЕЯ СУП-1
================================= */

/* Делаем область проекта шире */
.project-intro > .container,
.project-section > .container {
    max-width: 1100px;
}

/* Галерея */
.interface-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 30px;
    width: 100%;
    margin: 35px auto;
}

/* Карточки фотографий */
.interface-image {
    width: 100%;
    min-width: 0;
    text-align: center;
}

/* Рамка фотографии */
.interface-image button {
    width: 100%;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #d5deea;
    border-radius: 14px;
    overflow: hidden;
}

/* Само изображение */
.interface-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    margin: 0 auto;
}

/* Подписи */
.interface-image p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
}

/* Текст проекта */
.project-intro > .container > p,
.project-section > .container > p {
    font-size: 18px;
    line-height: 1.8;
}


/* =================================
   МОБИЛЬНАЯ ВЕРСИЯ
================================= */

@media (max-width: 768px) {

    .project-intro > .container,
    .project-section > .container {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .interface-images {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 25px;
    }

    .interface-image button {
        padding: 5px;
        border-radius: 12px;
    }

    .interface-image img {
        width: 100%;
        max-height: 650px;
    }

    .interface-image p {
        font-size: 16px;
        line-height: 1.6;
    }

    .project-intro > .container > p,
    .project-section > .container > p {
        font-size: 18px;
        line-height: 1.75;
    }

    .project-section h2,
    .project-intro h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .project-card p {
        font-size: 17px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {

    .project-intro > .container,
    .project-section > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-intro > .container > p,
    .project-section > .container > p {
        font-size: 17px;
        line-height: 1.75;
    }

    .interface-image p {
        font-size: 15px;
    }
}

/* Единое оформление всех фотографий на странице проектов */
.interface-images {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 35px auto;
}

.interface-image {
    flex: 1 1 420px;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.interface-image button {
    display: block;
    width: 100%;
    padding: 8px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d5deea;
    border-radius: 14px;
    overflow: hidden;
}

.interface-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    margin: 0 auto;
    object-fit: contain;
}

.interface-image p {
    margin: 14px auto 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .interface-images {
        gap: 22px;
        padding: 0 5px;
    }

    .interface-image {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .interface-image img {
        max-height: none;
    }

    .interface-image p {
        font-size: 16px;
    }
}
/* Совместная фотография команды */
.team-group-photo {
    width: 100%;
    max-width: 950px;
    margin: 30px auto 40px;
    text-align: center;
}

.team-group-photo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

@media (max-width: 600px) {
    .team-group-photo {
        margin: 22px auto 30px;
    }

    .team-group-photo img {
        border-radius: 10px;
    }
}

/* Фотографии проектов: вертикальное расположение */
.interface-images {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px;
    width: 100%;
    margin: 30px auto;
}

.interface-image {
    flex: none !important;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.interface-image button {
    width: 100%;
}

.interface-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0 auto;
}
