/* ==== GLOBAL ==== */
:root {
    --bg: #050816;
    --bg-light: #0f172a;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --card-bg: #020617;
    --border: #1f2937;
    --danger: #ef4444;
    --radius-xl: 1.5rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #020617 100%);
    color: var(--text);
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}
.logo-img {
    height: 28px;            /* размер логотипа */
    width: auto;
    display: block;
}


video {
    max-width: 100%;
    border-radius: 1rem;
}

/* ==== LAYOUT ==== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background: radial-gradient(circle at top, #111827 0, #020617 70%);
}

/* ==== HEADER ==== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.95),
        rgba(15, 23, 42, 0.8),
        transparent
    );
    border-bottom: 1px solid rgba(55, 65, 81, 0.4);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #60a5fa, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.7);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 600;
}

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

.navbar {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.navbar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 0.15rem;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #60a5fa, #6366f1);
    transition: width 0.22s ease;
}

.navbar a:hover {
    color: #f9fafb;
}

.navbar a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #e5e7eb;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ==== HERO ==== */
.hero {
    padding: 5rem 0 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw + 1rem, 3.1rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 32rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease,
        background 0.12s ease, border-color 0.12s ease;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(to right, #3b82f6, #6366f1);
    color: #f9fafb;
    box-shadow: 0 14px 35px rgba(59, 130, 246, 0.6);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.7);
}

.btn.secondary {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
}

.btn.secondary:hover {
    background: rgba(15, 23, 42, 1);
    transform: translateY(-1px);
}

.btn.full-width {
    width: 100%;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-bullets li {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: radial-gradient(circle at top, #111827 0, #020617 70%);
}

/* ==== HERO MEDIA (PHONE MOCKUP) ==== */
.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.phone-mockup {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 18;
    border-radius: 2rem;
    padding: 0.6rem;
    background: radial-gradient(circle at 0 0, #60a5fa, #0f172a);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 0.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(15, 23, 42, 0.9);
}

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

/* ==== SECTION TITLES ==== */
.section-title {
    font-size: 1.75rem;
    text-align: center;
    margin: 0 0 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 32rem;
    margin: 0.25rem auto 2.5rem;
}

/* ==== FEATURES ==== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-xl);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==== VIDEOS ==== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.video-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-xl);
    padding: 1.3rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.video-wrapper {
    border-radius: 1.1rem;
    overflow: hidden;
    background: #020617;
}

.video-card h3 {
    margin: 0;
    font-size: 1rem;
}

.video-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==== SCREENS ==== */
.screens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 0.6rem;                           /* расстояние между карточками */
    width: 100%;
}

.screen-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0.9rem;
    border: 1px solid rgba(31, 41, 55, 0.7);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: zoom-in;                       /* курсор для подсказки */
}

/* Эффект увеличения при наведении */
.screen-card:hover {
    transform: scale(1.5);                /* увеличение */
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.screen-card img {
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
    display: block;
}

.screen-card figcaption {
    font-size: 0.75rem;
    margin-top: 0.3rem;
    text-align: center;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .screens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==== CONTACT ==== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.contact-list li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.contact-list a {
    color: #93c5fd;
}

.contact-form {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    border: 1px solid rgba(31, 41, 55, 0.9);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.9rem;
}

label {
    font-size: 0.85rem;
}

input,
textarea {
    border-radius: 0.8rem;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.form-note {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    color: var(--text-muted);
}

/* ==== FOOTER ==== */
.footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 1.3rem 0 1.6rem;
    margin-top: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
    }

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

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

    .screens-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .navbar {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        padding: 0.8rem 1.5rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid rgba(31, 41, 55, 0.95);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.12s ease, opacity 0.12s ease;
    }

    .navbar.open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .footer-inner {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .screens-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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



/* ==== TABLET MOCKUP – LANDSCAPE ==== */

.tablet {
    position: relative;

    max-width: 100%;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 22px;
    padding: 10px;             /* уменьшили рамку */
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 2px #111;
    margin: 0 auto;
    overflow: hidden;          /* главное решение */
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.tablet-screen {
    background: #f5f5f7;
    border-radius: 12px;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
              /* заголовок + сетка */
    overflow: hidden;          /* тоже ограничиваем */
}

#menu-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    grid-template-rows: repeat(3, 1fr); /* 3 ряда */
    height: 100%;  
    gap: 5px; /* Расстояние между кнопками */
    padding: 5px;
    background: #fff; /* Белый фон для контейнера */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Тень для контейнера */
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #333;
    font-size: 0.5vw;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    height: 100%;
    padding: 20px;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-evenly;
}

.menu-item i {
    font-size: 0.4vw; /* Размер иконки */
    margin-bottom: 10px;
    transition: color 0.3s;
}

/* Эффект при наведении */
.menu-item:hover {
    transform: translateY(-2px); /* Подъем кнопки */
    background-color: #3e63a3; /* Цвет фона при наведении */
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.menu-item:hover i {
    color: white; /* Цвет иконки при наведении */
}

.menu-item:active {
    transform: translateY(2px); /* Эффект при нажатии */
}

/* Параллакс-эффект для иконок */
.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Адаптивность для мобильных устройств */


.device-slider {
    position: relative;
    width: 820px;
    height: 520px;      /* высота одинаковая для устройств */
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


.device {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.device.active {
    opacity: 1;
    transform: translateX(0);
}

.device.exit-left {
    opacity: 0;
    transform: translateX(-100%);
}


/* ====== MOBILE RESPONSIVE FOR TABLET FRAME ====== */
@media (max-width: 768px) {
    .tablet {
        width: 95vw;        /* почти вся ширина экрана */
        height: auto;       /* растягивается по пропорции */
        padding: 10px;      /* увеличиваем рамку */
        border-radius: 28px;
    }


    .menu-item {

    font-size: 1.5vw;
 
}

.menu-item i {
    font-size: 1.7vw; /* Размер иконки */
    margin-bottom: 10px;
    transition: color 0.3s;
}


}








/* PHONE FRAME MOCKUP */

.phone {
    position: relative;
    width: 280px;
    background: #000;
    border-radius: 38px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* внутренний экран */
.phone-screen {
    flex: 1;
    background: #f9fafb;
    border-radius: 30px;
  padding: 10% 10px 10px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;          /* ничего не вылезет за границы */
}

/* чёлка */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 18px;
    background: #020617;
    border-radius: 999px;
    z-index: 10;
}

/* заголовок */
.phone-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

/* контейнер меню */
.menu-container {
    flex: 1;
    background: linear-gradient(to bottom right, #0c2841, #00f2fe);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  
}

/* заголовок */
.menu-container h2 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 10px 0;
    text-align: center;
}

/* список */
.menu-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* li */
.menu-list li {
   flex: 1;
      display: flex;
}

/* кнопки */
.menu-list a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
    gap: 6px;
}

/* цвета */
.open-works { background: #a51414; }
.in-progress-works { background: #867902; }
.closed-works { background: #027e36; }
.deliveries { background: #055b94; }
.devices { background: #405b75; }
.deviceshistories { background: #83baee; color: #000; }
.logout { background: #8e44ad; }

/* hover */
.menu-list a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}



/* Ограничиваем ширину списка блогов */
.blog-list {
    width: 100%;
    margin: 0 auto;
    text-align: left;       /* текст внутри кнопок слева */
}


.blog-section .container {
    width: 100%;       /* ширина всего блока */
    margin: 0 auto;         /* центрирование */
    text-align: center;     /* выравниваем заголовок и список */
}

.blog-section .section-title {
    text-align: center;
}
/* ==== BLOG PREVIEW (index + blog) ==== */

.blog-section {
    padding: 3rem 0;
}

.blog-section .section-title {
    margin-bottom: 1.5rem;
}

/* список блогов */
.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* один элемент */
.blog-list li {
    border-radius: 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* ссылка */
.blog-list li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
}

/* маленькая стрелочка слева */
.blog-list li a::before {
    content: "↗";
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: #2563eb;
}

/* hover эффект */
.blog-list li:hover {
    background: #e5f0ff;
    box-shadow: 0 8px 18px rgba(15,23,42,0.12);
    transform: translateY(-1px);
}

/* для тёмного футерного/серого блока можно чуть затемнить */
.section.bg-light .blog-list li {
    background: #ffffff;
}
/* === отключаем растяжение кнопок в планшете === */
.device .tablet .menu-list {
    height: auto !important;
}

.device .tablet .menu-list li {
    flex: none !important;
}


@media (max-width: 820px) {

 .device-slider {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px auto 0 auto;     /* центр и отступ сверху */
        transform: translateY(-20px); /* поднимаем ближе к центру */
    }

    .hero-media {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }



    #menu-container {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, auto);
        padding: 1px;
        gap: 1px;
        height: 93%;
           width: 98%;
    }

    .menu-item {
        font-size: 2vw;      /* размер текста меньше */
        padding: 6px 3px;      /* меньше внутренние отступы */
        border-radius: 10px;
    }

    .menu-item i {
        font-size: 1.8vw;      /* уменьшаем иконку */
        margin-bottom: 4px;
    }



}

@media (max-width: 820px) {
    .hero {
        padding-top: 2rem !important;  /* уменьшили расстояние сверху */
    }

    .hero-text {
        margin-bottom: 1rem !important; /* уменьшили пустое место под текстом */
    }

    .device-slider {
        transform: translateY(-40px) !important; /* чуть выше */
    }
}

.back-btn {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
       margin-bottom: 20px;
}

.back-btn2 {
    width: 100%;
    display: flex;
    justify-content: flex-end;
   
}

