/* Лендинг Eligma. Підключається після main.css, використовує ті самі кольори.
   Основний шрифт Manrope (підтримує кирилицю); Solway лишається лише для логотипа Eligma (латиниця). */

:root {
    --teal: #14c4b4;
    --blue: #3090e2;
    --coral: #ff9f7f;
    --cyan: #00c9df;
    --deep: #23698b;
    --ink: #14232b;
    --muted: #5a6b75;
    --line: #e1e8ec;
    --bg-alt: #f5f8fa;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Меню ----------
   Перевизначає і десктопні, і мобільні правила з main.css:
   компактний бургер у білій «плашці» (видно на будь-якому фоні)
   та темна випадна панель замість кольорового кола. */

.navbar-container {
    margin-right: 0;
    height: 64px;
}

.navbar-container input[type="checkbox"],
.navbar-container input[type="checkbox"]:checked {
    top: 10px;
    right: 8px;
    width: 56px;
    height: 46px;
    z-index: 1002;
}

.navbar-container .hamburger-lines {
    top: 24px;
    right: 24px;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.navbar-container .hamburger-lines::before {
    content: "";
    position: absolute;
    top: -14px;
    right: -16px;
    bottom: -14px;
    left: -16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    z-index: -1;
    transition: opacity 0.2s ease;
}

.navbar-container .hamburger-lines .line {
    height: 3px;
    border-radius: 2px;
    background: var(--ink);
}

.navbar-container .hamburger-lines .line1,
.navbar-container .hamburger-lines .line3 {
    transform-origin: 50% 50%;
}

.navbar-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleX(0);
    opacity: 0;
}

.navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: translateY(-7.5px) rotate(-45deg);
}

.navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line {
    background: #fff;
}

.navbar-container input[type="checkbox"]:checked ~ .hamburger-lines::before {
    opacity: 0;
}

/* кольорове коло більше не використовується */
.navbar .menu-background { display: none; }

.navbar .menu-items {
    top: 8px;
    right: 8px;
    width: min(280px, calc(100vw - 16px));
    box-sizing: border-box;
    padding: 64px 24px 10px;
    background: var(--ink);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.navbar-container input[type="checkbox"]:checked ~ .menu-items {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.navbar .menu-items li {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.navbar .menu-items li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.navbar .menu-items a {
    justify-content: space-between;
    padding: 0.95rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Manrope', "Segoe UI", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.navbar .menu-items a::before {
    content: none;
    display: none;
}

.navbar .menu-items a::after {
    content: "→";
    color: var(--teal);
    transition: transform 0.2s ease;
}

.navbar .menu-items a:hover { color: #fff; }
.navbar .menu-items a:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */

.main_logo_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 100vh;
    padding: 6rem 1.5rem 4rem;
    box-sizing: border-box;
    /* темніший градієнт: білий текст читається на всій ширині */
    background: linear-gradient(135deg, #0b7a83 0%, #1f5f94 100%);
}

.main_logo_section .animated_squares {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.main_logo_section .animated_squares li { background: rgba(255, 255, 255, 0.1); }

.main_logo_section .main_logo {
    position: relative;
    top: auto;
    width: auto;
    margin-bottom: 2rem;
    z-index: 2;
}

.main_logo_section .main_logo img {
    width: 96px;
    height: 96px;
    margin: 0 1.4rem 0 0;
}

.main_logo_section .main_logo h1 {
    color: #fff;
    font-size: 3.6rem;
    letter-spacing: 0.16em;
    text-shadow: none;
}

.hero_text {
    position: relative;
    z-index: 2;
    max-width: 44rem;
    text-align: center;
}

.hero_title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

.hero_lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
}

.hero_actions { margin-bottom: 2rem; }

.hero_tags {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    margin: 0.35rem;
    background: var(--coral);
    color: var(--ink);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn_ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.btn_ghost:hover { box-shadow: inset 0 0 0 2px #fff, 0 6px 16px rgba(0, 0, 0, 0.22); }

/* ---------- Секції ---------- */

.block { padding: 5.5rem 1.5rem; }
.block_alt { background: var(--bg-alt); }

.wrap { max-width: 1080px; margin: 0 auto; }
.wrap_narrow { max-width: 600px; }

.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--deep);
    margin-bottom: 0.6rem;
}

.block h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.lead {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--muted);
}

.grid { display: grid; gap: 1.5rem; }
.grid_3 { grid-template-columns: repeat(3, 1fr); }

.card {
    position: relative;
    background: #fff;
    padding: 1.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.7rem;
}

.card p { font-size: 0.98rem; color: var(--muted); }

.card .num {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 1rem;
}

.card .tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--deep);
    background: #e8f6f8;
    border-radius: 999px;
}

.plain {
    padding: 0.4rem 0 0.4rem 1.2rem;
    border-left: 3px solid var(--coral);
    color: var(--muted);
}

.plain b { color: var(--ink); }

/* ---------- Кроки ---------- */

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-top: 3.4rem;
    border-top: 1px solid var(--line);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    left: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--teal);
}

.steps b { display: block; font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps span { display: block; color: var(--muted); font-size: 0.98rem; }

/* ---------- Форма ---------- */

.block_cta {
    background: var(--ink);
    color: #fff;
}

.block_cta .eyebrow { color: var(--teal); }
.block_cta .lead { color: rgba(255, 255, 255, 0.75); margin-top: 0; }
.block_cta h2 { margin-bottom: 1rem; }

.lead_form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem; }

.lead_form input,
.lead_form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1.1rem;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--ink);
    background: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
}

.lead_form input:focus,
.lead_form textarea:focus { outline: none; border-color: var(--coral); }

.lead_form .btn { align-self: flex-start; margin: 0.4rem 0 0; }
.lead_form .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

/* приховане поле-пастка для ботів */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead_status { font-size: 1.05rem; font-weight: 600; }
.lead_status:empty { display: none; }
.lead_status.ok { color: var(--teal); }
.lead_status.err { color: var(--coral); }

.contacts {
    margin-top: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.contacts a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--teal); }

.footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    background: #0d171c;
    color: #8fa0a9;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .grid_3 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .grid_3 { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }

    .main_logo_section { padding-top: 5rem; }
    .main_logo_section .main_logo img { width: 72px; height: 72px; margin-right: 1rem; }
    .main_logo_section .main_logo h1 { font-size: 2.4rem; }
    .hero_title { font-size: 1.7rem; }
    .hero_lead { font-size: 1.05rem; }

    .hero_actions .btn {
        display: block;
        max-width: 320px;
        margin: 0.6rem auto;
        font-size: 1.1rem;
    }

    .lead_form .btn { align-self: stretch; text-align: center; }

    .navbar .menu-items a { font-size: 1.15rem; padding: 1.05rem 0; }

    .block { padding: 3.5rem 1.2rem; }
    .block h2 { font-size: 1.7rem; margin-bottom: 1.8rem; }
}