:root {
    --primary: #2A2A2A;
    --accent: #F14700;
    --primary-soft: #FFF2E9;
    --text-main: #1f2933;
    --text-muted: #6b7280;
    --bg: #f7f7f8;
    --white: #ffffff;
    --border: #e5e7eb;
    --radius-lg: 14px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

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

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 248, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-img {
    height: 46px;
}

nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

nav a {
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 13px;
}

/* Burger */

.burger {
    display: none;
    position: relative;
    width: 34px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.burger span:nth-child(1) {
    top: 3px;
}

.burger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger span:nth-child(3) {
    bottom: 3px;
}

.page.nav-open .burger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.page.nav-open .burger span:nth-child(2) {
    opacity: 0;
}

.page.nav-open .burger span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero */

.hero {
    padding: 40px 0 32px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--primary);
    margin: 0 0 16px;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 520px;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #F14700, #c13600);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(241, 71, 0, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(241, 71, 0, 0.45);
}

.btn-ghost {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.hero-media {
    position: relative;
}

/* hero card + overlay фикс */

.hero-card {
    border-radius: 22px;
    padding: 18px;
    background: radial-gradient(circle at 0% 0%, #ffffff, #f1f1f3);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* изображение */
.hero-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    background-image:
        linear-gradient(to bottom right, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.9)),
        url("/img/main_img.jpeg");
    background-size: cover;
    background-position: center;
}

/* общая сетка поверх картинки */
.hero-image-overlay {
    position: absolute;
    inset: 0;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    color: #f9fafb;
}

/* верхний бейдж */
.hero-tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    font-size: 11px;
    border: 1px solid rgba(148, 163, 184, 0.55);
}

/* низ: левая большая таблетка + правые две */
.hero-image-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

/* левая большая таблетка */
.hero-kpi {
    max-width: 60%;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-kpi strong {
    font-size: 13px;
    color: var(--accent);
}

/* правый столбик таблеток */
.hero-pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.7);
    font-size: 11px;
    white-space: nowrap;
}

.hero-label {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Sections */

section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 22px;
    color: var(--primary);
    margin: 0 0 6px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 420px;
}

/* Equipment grid */

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
}

.card-image {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.card-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pill-small {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f9fafb;
}

/* Advantages */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.adv-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border);
}

.adv-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.adv-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Contact */

.contact-section {
    padding-bottom: 40px;
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: flex-start;
}

.contact-info-card,
.contact-form-card {
    background: var(--white);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.contact-info-card h3,
.contact-form-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--primary);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 14px;
}

.contact-list li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 10px;
}

.contact-badges span {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--accent);
}

.contact-note {
    font-size: 12px;
    color: var(--text-muted);
}

.contact-form-card p {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-muted);
}

form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-main);
}

input,
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    background: #f9fafb;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(241, 71, 0, 0.2);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.form-full {
    grid-column: 1 / -1;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 12px 0 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */

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

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

    .contact-inner {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .header-right {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 12px 16px 14px;
        background: rgba(247, 247, 248, 0.98);
        border-bottom: 1px solid rgba(229, 231, 235, 0.9);
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        display: none;
    }

    .page.nav-open .header-right {
        display: flex;
    }

    .burger {
        display: inline-block;
    }

    .header-contacts {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 28px;
    }

    .equipment-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    form {
        grid-template-columns: 1fr;
    }

    /* адаптив для нижних таблеток в hero */
    .hero-image-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-kpi {
        max-width: 100%;
    }

    .hero-pills {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
}
