/* ===== ГраверТехСтиль — общие стили ===== */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --border: #30363d;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #ff7a18;
    --accent-hover: #ff9248;
    --accent-glow: rgba(255, 122, 24, 0.25);
    --blue: #58a6ff;
    --success: #3fb950;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 20% 0%, rgba(255, 122, 24, 0.08), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(88, 166, 255, 0.06), transparent 40%);
    background-attachment: fixed;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

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

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

/* ===== Шапка ===== */
.site-header {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #d35400 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

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

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

.logo-text .tag {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition);
}

.nav a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav a.active {
    color: var(--accent);
    background: rgba(255, 122, 24, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 20px;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #e0680e 100%);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.4);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 20px,
            rgba(255, 122, 24, 0.03) 20px,
            rgba(255, 122, 24, 0.03) 21px
        );
}

.hero-visual svg {
    width: 70%;
    height: 70%;
    z-index: 1;
}

/* ===== Секции ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 700px;
    margin-bottom: 48px;
}

.section-head {
    margin-bottom: 48px;
}

/* ===== Преимущества ===== */
.features {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 122, 24, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Каталог ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.product-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-image svg {
    width: 60%;
    height: 60%;
    opacity: 0.9;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.specs {
    list-style: none;
    margin-bottom: 24px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.specs li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--border);
}

.specs li:last-child {
    border-bottom: none;
}

.specs .label {
    color: var(--text-secondary);
}

.specs .value {
    color: var(--text-primary);
    font-weight: 600;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.product-price .from {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
    margin-bottom: -4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Галерея ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.gallery-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #1a1f27 100%);
}

.gallery-visual svg {
    width: 70%;
    height: 70%;
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Видео ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.video-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #000 0%, var(--bg-tertiary) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: all var(--transition);
}

.video-frame:hover .play-button {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.play-button::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 22px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

.video-body {
    padding: 20px 24px;
}

.video-body h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.video-body p {
    font-size: 14px;
    color: var(--text-secondary);
}

.video-meta {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== Форма ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 122, 24, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-text .value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-text .value a {
    color: var(--text-primary);
}

.contact-text .value a:hover {
    color: var(--accent);
}

.form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
}

.form-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.form-card .lead {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    margin-bottom: 18px;
}

.form-field label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-consent {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-consent input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.form-submit {
    width: 100%;
}

.form-success {
    display: none;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.form-success.show {
    display: block;
}

/* ===== CTA-блок ===== */
.cta-band {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    border: 1px solid var(--border);
    margin-top: 40px;
}

.cta-band h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-band p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

/* ===== Подвал ===== */
.site-footer {
    background: #08090c;
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 0 60px;
    }

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

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 28px;
    }

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

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

@media (max-width: 640px) {
    .nav {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 12px;
        gap: 4px;
        transform: translateY(-120%);
        transition: transform var(--transition);
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav a {
        width: 100%;
        text-align: left;
        padding: 12px;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .cta-band {
        padding: 32px 20px;
    }

    .cta-band h2 {
        font-size: 24px;
    }

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