/* =====================================================================
   ООО «Титан» — стили сайта
   Тема: тёмно-синий «техно» + акцентный циан. Адаптив для ПК/планшетов/смартфонов.
   ===================================================================== */

:root {
    --bg:        #0c1322;
    --bg-alt:    #111b2e;
    --surface:   #16223a;
    --surface-2: #1c2b47;
    --line:      #25344f;
    --text:      #e7edf7;
    --muted:     #9fb0c9;
    --accent:    #2fe6c8;   /* циан */
    --accent-2:  #4f8cff;   /* электрик-синий */
    --danger:    #ff6b6b;
    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 18px 40px -18px rgba(0,0,0,.65);
    --maxw:      1180px;
    --font-head: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(79,140,255,.16), transparent 60%),
        radial-gradient(900px 500px at 0% 0%, rgba(47,230,200,.12), transparent 55%),
        var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.site-main { flex: 1; }

.accent { color: var(--accent); }

/* ===== Кнопки ===== */
.btn {
    --b: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head);
    font-weight: 600; font-size: 15px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--b);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #06121f;
    box-shadow: 0 10px 24px -10px rgba(47,230,200,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(47,230,200,.7); }

.btn-outline { --b: var(--line); background: transparent; color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Шапка / навигация ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,19,34,.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled {
    border-color: var(--line);
    box-shadow: 0 10px 30px -20px #000;
    background: rgba(12,19,34,.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
    display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #06121f; font-family: var(--font-head); font-weight: 800; font-size: 14px;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 19px; line-height: 1; }
.logo-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav ul a {
    display: block; padding: 8px 14px; border-radius: 9px;
    color: var(--muted); font-weight: 600; font-size: 15px;
    transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav ul a.active { color: var(--accent); }

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

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px;
    cursor: pointer; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding: 70px 0 80px; }
.hero-glow { position: absolute; inset: 0; background:
    radial-gradient(600px 300px at 75% 30%, rgba(47,230,200,.18), transparent 70%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr .85fr; gap: 50px; align-items: center; }

.badge { display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: rgba(47,230,200,.12); color: var(--accent); font-weight: 600; font-size: 13px;
    border: 1px solid rgba(47,230,200,.25); margin-bottom: 20px; }

.hero-text h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 18px; }
.hero-text p { color: var(--muted); font-size: 18px; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 26px; color: var(--accent); }
.hero-stats span { color: var(--muted); font-size: 14px; }

.hero-card {
    background: linear-gradient(160deg, var(--surface), var(--bg-alt));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 18px; margin-bottom: 16px; }
.hero-list { list-style: none; margin-bottom: 18px; }
.hero-list li { display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hero-list li:last-child { border-bottom: none; }
.hero-list b { color: var(--accent); white-space: nowrap; }

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(24px, 3.5vw, 34px); text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 36px; }

/* ===== Карточки-преимущества ===== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.feature-ico { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: 14px; background: rgba(79,140,255,.12); margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Обслуживаемое оборудование ===== */
.equip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.equip-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .2s, transform .2s; }
.equip-item:hover { border-color: var(--accent); transform: translateX(4px); }
.equip-dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(47,230,200,.18); flex: none; }
.equip-item strong { display: block; }
.equip-item small { color: var(--muted); }

/* ===== CTA ===== */
.cta { padding: 56px 0; }
.cta-inner { background: linear-gradient(120deg, rgba(47,230,200,.14), rgba(79,140,255,.14));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 38px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 28px; margin-bottom: 6px; }
.cta-inner p { color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Заголовок страницы ===== */
.page-head { padding: 54px 0 30px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.page-head p { color: var(--muted); }

/* ===== О компании ===== */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-text h2 { font-size: 24px; margin: 24px 0 12px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--muted); margin-bottom: 12px; }
.facts { list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: none; }
.facts span { color: var(--muted); }
.facts b { color: var(--text); text-align: right; }
.about-side h3 { margin-bottom: 8px; }

/* ===== Вкладки услуг ===== */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.tab-btn { font-family: var(--font-head); font-weight: 600; font-size: 15px;
    padding: 12px 22px; border-radius: 999px; cursor: pointer;
    background: var(--surface); color: var(--muted); border: 1px solid var(--line);
    transition: all .22s ease; }
.tab-btn:hover { color: var(--text); border-color: var(--accent); }
.tab-btn.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #06121f; border-color: transparent; }

.tab-panel { display: none; animation: fade .35s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.service-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.service-row { display: flex; justify-content: space-between; align-items: center; gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 18px 22px; transition: border-color .2s, transform .2s; }
.service-row:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-info strong { display: block; font-size: 16px; }
.service-info small { color: var(--muted); }
.service-price { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }

.note { color: var(--muted); font-size: 14px; text-align: center; margin-top: 26px; }

/* ===== Прайс-таблица ===== */
.price-cat { font-size: 22px; margin: 36px 0 14px; color: var(--accent); }
.price-cat:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table thead { background: var(--surface-2); }
.price-table th { text-align: left; padding: 14px 18px; font-family: var(--font-head); font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price-table td { padding: 15px 18px; border-top: 1px solid var(--line); }
.price-table tbody tr { background: var(--surface); transition: background .18s; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table .ta-right { text-align: right; }
.price-table b { color: var(--accent); font-family: var(--font-head); }
.price-table small { color: var(--muted); }
.free { color: var(--accent); font-weight: 700; }

/* ===== Контакты ===== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.contacts-info { display: grid; gap: 14px; align-content: start; }
.contact-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 18px 20px; transition: border-color .2s; }
.contact-card:hover { border-color: var(--accent); }
.contact-ico { font-size: 22px; width: 46px; height: 46px; flex: none; display: grid; place-items: center;
    border-radius: 12px; background: rgba(47,230,200,.12); }
.contact-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-card p { color: var(--muted); margin: 0; }
.contact-card a:hover { color: var(--accent); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.contacts-map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.contacts-map iframe { display: block; }

/* ===== Формы / авторизация ===== */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { background: var(--bg); border: 1px solid var(--line); color: var(--text);
    border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--font-body); font-size: 15px;
    transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,230,200,.18); }
.field input::placeholder { color: #5e6e88; }
.err { color: var(--danger); font-size: 13px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.alert-info { background: rgba(79,140,255,.14); border: 1px solid rgba(79,140,255,.35); color: #bcd2ff; }
.alert-err { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.35); color: #ffc2c2; }

/* ===== Личный кабинет ===== */
.account-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.account-profile { text-align: center; }
.avatar { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 30px;
    color: #06121f; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.account-profile h2 { font-size: 22px; margin-bottom: 16px; }
.account-profile .facts { text-align: left; margin-bottom: 18px; }
.account-info h3 { font-size: 20px; margin-bottom: 10px; }
.account-info p { color: var(--muted); margin-bottom: 20px; }
.account-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-link { display: flex; align-items: center; gap: 10px; padding: 16px 18px;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 600; transition: border-color .2s, transform .2s; }
.quick-link:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--accent); }

/* ===== Подвал ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: auto; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.logo--footer { margin-bottom: 14px; }
.footer-about { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-col h4 { font-size: 16px; margin-bottom: 14px; }
.footer-links, .footer-contacts { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contacts a { color: var(--muted); transition: color .2s; }
.footer-links a:hover, .footer-contacts a:hover { color: var(--accent); }
.footer-contacts li { color: var(--muted); font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .account-grid { grid-template-columns: 1fr; }
    .account-profile { max-width: 420px; }
}

@media (max-width: 860px) {
    /* Мобильное меню */
    .burger { display: flex; }
    .main-nav {
        position: fixed; top: 70px; right: 0;
        width: min(320px, 86vw); height: calc(100vh - 70px);
        flex-direction: column; align-items: stretch; gap: 18px;
        background: var(--bg-alt); border-left: 1px solid var(--line);
        padding: 26px 22px; transform: translateX(110%);
        transition: transform .3s ease; overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); box-shadow: -20px 0 50px -20px #000; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul a { padding: 12px 14px; font-size: 16px; }
    .nav-auth { flex-direction: column; align-items: stretch; gap: 10px; }
    .nav-auth .btn { width: 100%; }

    .about-grid, .contacts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }

    /* Таблица прайса -> карточки на мобильных */
    .price-table, .price-table thead, .price-table tbody, .price-table th,
    .price-table td, .price-table tr { display: block; }
    .price-table { min-width: 0; }
    .price-table thead { display: none; }
    .price-table tr { border-top: 1px solid var(--line); padding: 8px 0; }
    .price-table td { border: none; padding: 6px 18px; display: flex; justify-content: space-between; gap: 16px; }
    .price-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 600; }
    .price-table .ta-right { text-align: right; }
}

@media (max-width: 560px) {
    .cards-grid { grid-template-columns: 1fr; }
    .equip-grid { grid-template-columns: 1fr; }
    .account-links { grid-template-columns: 1fr; }
    .hero-stats { gap: 22px; }
    .service-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .section { padding: 48px 0; }
    .auth-card { padding: 26px 20px; }
}
