/* ============================================================
   СТРОГИЙ ИНДУСТРИАЛЬНЫЙ СТИЛЬ
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
    --bg:        #0f1215;
    --surface:   #161a1f;
    --surface-2: #1c2128;
    --line:      #262c33;
    --line-2:    #333b44;
    --text:      #e8ebee;
    --text-dim:  #97a0ab;
    --text-dim2: #6b7480;
    --accent:    #e5b53c;
    --accent-d:  #c99a22;
    --vk:        #4c75a3;
    --vk-l:      #7fa7d4;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
body.pmodal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Кнопки (общие) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
    white-space: nowrap;
}
.btn--accent {
    background: var(--accent);
    color: #14181c;
}
.btn--accent:hover { background: var(--accent-d); }
.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; }

.btn--lg {
    padding: 20px 44px;
    font-size: 19px;
    letter-spacing: 0.04em;
}
.btn--hero {
    padding: 20px 44px;
    font-size: 19px;
    letter-spacing: 0.04em;
    width: 100%;
    max-width: 420px;
}

/* ============================================================
   ВЕРХНЕЕ МЕНЮ
   ============================================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15,18,21,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar__row {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 15px;
    text-transform: uppercase;
}
.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #14181c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
}
.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    transition: color .15s;
    position: relative;
    padding: 6px 0;
}
.nav a:hover { color: var(--text); }
.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .2s;
}
.nav a:hover::after { width: 100%; }

/* Кнопка телефона (шапка/футер) */
.phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-2);
    border-radius: 2px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}
.phone-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.phone-btn__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #38c976;
    box-shadow: 0 0 0 4px rgba(56,201,118,.15);
    flex-shrink: 0;
}
.phone-btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.phone-btn--footer { color: var(--text-dim); }

/* Кнопка VK (шапка/футер) */
.vk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-2);
    border-radius: 2px;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}
.vk-btn:hover {
    border-color: var(--vk);
    color: var(--vk-l);
}
.vk-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.vk-btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 400px at 82% 12%, rgba(229,181,60,.08), transparent 60%),
        linear-gradient(180deg, #12161a 0%, #0f1215 100%);
    z-index: 0;
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }

.hero__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(229,181,60,.35);
    margin-bottom: 32px;
}

.hero__title {
    font-size: 62px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}
.hero__lead {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 0 40px;
}
.hero__actions {
    margin-bottom: 66px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 32px;
    max-width: 720px;
}
.stat {
    padding-right: 24px;
    border-right: 1px solid var(--line);
}
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.stat span {
    font-size: 13px;
    color: var(--text-dim2);
    letter-spacing: 0.02em;
}

/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}
.section-head--light .section-head__title { color: var(--text); }
.section-head--left { text-align: left; margin-bottom: 40px; }

.section-head__num {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.section-head__title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-head__sub {
    font-size: 17px;
    color: var(--text-dim);
    margin: 0;
}

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services { padding: 110px 0; background: var(--bg); }

.services__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service {
    display: grid;
    grid-template-columns: 480px 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color .2s;
}
.service:hover { border-color: var(--line-2); }

.service__media {
    position: relative;
    min-height: 340px;
    background: #0b0e11;
    overflow: hidden;
}
.service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(12%) contrast(1.02);
    transition: transform .5s, filter .3s;
}
.service:hover .service__media img {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(1.02);
}
.service__num {
    position: absolute;
    top: 22px; left: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    padding: 6px 12px;
    background: rgba(15,18,21,.75);
    border: 1px solid rgba(229,181,60,.35);
    backdrop-filter: blur(6px);
}

.service__body {
    padding: 40px 46px 40px 46px;
    display: flex;
    flex-direction: column;
}
.service__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}
.service__title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.service__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.service__desc {
    color: var(--text-dim);
    font-size: 15.5px;
    margin: 0 0 26px;
}

.specs {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}
.specs li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--text);
}
.specs li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 10px; height: 1px;
    background: var(--accent);
}

.service__body .btn { margin-top: auto; }

/* ============================================================
   О КОМПАНИИ
   ============================================================ */
.about {
    padding: 110px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
.feature {
    padding: 40px 32px 40px 0;
    border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature + .feature { padding-left: 32px; }
.feature__idx {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 24px;
}
.feature h4 {
    font-size: 19px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.feature p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts {
    padding: 120px 0;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(229,181,60,.07), transparent 60%),
        var(--bg);
}
.contacts__inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.contacts__inner .section-head { margin-left: auto; margin-right: auto; }

.contacts__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}
.contacts__buttons .btn {
    min-width: 320px;
}
.btn--vk svg {
    width: 20px;
    height: 20px;
}
.btn--vk:hover {
    border-color: var(--vk);
    color: var(--vk-l);
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
    background: #0a0d10;
    border-top: 1px solid var(--line);
    padding: 40px 0 30px;
}
.footer__row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 14px;
    text-transform: uppercase;
}
.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-left: auto;
    margin-right: 20px;
}
.footer__nav a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color .15s;
}
.footer__nav a:hover { color: var(--accent); }
.footer__copy {
    padding-top: 22px;
    font-size: 12.5px;
    color: var(--text-dim2);
    letter-spacing: 0.02em;
}
.footer__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА (моб.)
   ============================================================ */
.float-phone {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 100;
    width: 58px; height: 58px;
    padding: 0;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #14181c;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    cursor: pointer;
}
.float-phone:hover { background: var(--accent-d); color: #14181c; }

/* ============================================================
   МОДАЛЬНОЕ ОКНО ВЫБОРА НОМЕРА
   ============================================================ */
.pmodal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pmodal.is-open { display: flex; }

.pmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,10,13,.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: pmFade .18s ease;
}

.pmodal__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 2px;
    padding: 34px 30px 26px;
    animation: pmUp .22s ease;
}

@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pmUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pmodal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text-dim);
    border-radius: 2px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.pmodal__close:hover { border-color: var(--accent); color: var(--accent); }

.pmodal__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.pmodal__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pmodal__item {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: border-color .15s, background .15s;
    cursor: pointer;
}
.pmodal__item:hover {
    border-color: var(--accent);
    background: var(--surface-2);
}
.pmodal__idx {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
}
.pmodal__num {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

/* ============================================================
   ТОСТ "СКОПИРОВАНО"
   ============================================================ */
.copy-toast {
    position: fixed;
    left: 50%; bottom: 40px;
    transform: translate(-50%, 20px);
    background: #1c2128;
    color: var(--text);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--accent);
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 400;
}
.copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
    .service { grid-template-columns: 380px 1fr; }
    .service__body { padding: 34px; }
    .service__title { font-size: 26px; }
    .about__grid { grid-template-columns: repeat(2, 1fr); }
    .feature { padding: 34px 26px 34px 0; }
    .feature + .feature { padding-left: 26px; }
    .feature:nth-child(2) { border-right: none; }
    .feature:nth-child(3) { padding-left: 0; }
    .feature:nth-child(3), .feature:nth-child(4) { border-top: 1px solid var(--line); }
    .feature:nth-child(4) { border-right: none; }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .hero { padding: 80px 0 70px; }
    .hero__title { font-size: 42px; }
    .hero__lead { font-size: 16px; }
    .section-head__title { font-size: 32px; }
    .services, .about, .contacts { padding: 80px 0; }

    .service { grid-template-columns: 1fr; }
    .service__media { min-height: 240px; }
    .service__body { padding: 30px 24px; }

    .hero__stats { grid-template-columns: 1fr; }
    .stat { padding: 18px 0; border-right: none; border-bottom: 1px solid var(--line); }
    .stat + .stat { padding-left: 0; }
    .stat:last-child { border-bottom: none; }

    .float-phone { display: flex; }

    .topbar__actions { gap: 8px; }
    .vk-btn--sm span { display: none; }
    .vk-btn--sm { padding: 0 12px; }
}

@media (max-width: 620px) {
    .wrap { padding: 0 18px; }
    .topbar__row { height: 64px; gap: 14px; }
    .brand__name { font-size: 13px; }
    .phone-btn--sm { font-size: 13px; padding: 0 12px; }
    .phone-btn--sm .phone-btn__dot { display: none; }

    .hero { padding: 60px 0 60px; }
    .hero__title { font-size: 32px; }
    .hero__lead { font-size: 15px; margin-bottom: 30px; }
    .hero__actions { margin-bottom: 48px; }
    .btn--hero { max-width: none; padding: 16px 22px; font-size: 15px; letter-spacing: 0.02em; }

    .btn--lg { padding: 16px 22px; font-size: 15px; letter-spacing: 0.02em; width: 100%; }
    .contacts__buttons .btn { min-width: 0; width: 100%; }

    .section-head__title { font-size: 26px; }
    .section-head__sub { font-size: 15px; }

    .service__head { flex-direction: column; gap: 8px; }
    .service__title { font-size: 22px; }
    .specs { grid-template-columns: 1fr; }

    .about__grid { grid-template-columns: 1fr; }
    .feature {
        padding: 26px 0 !important;
        border-right: none !important;
        border-top: 1px solid var(--line);
    }
    .feature:first-child { border-top: none; }

    .footer__row { flex-direction: column; align-items: flex-start; gap: 22px; }
    .footer__nav { margin: 0; gap: 18px; }
    .footer__actions { flex-wrap: wrap; }

    .pmodal__dialog { padding: 30px 20px 22px; }
    .pmodal__num { font-size: 15px; }

    .copy-toast { left: 18px; right: 18px; transform: translate(0, 20px); bottom: 90px; text-align: center; }
    .copy-toast.is-visible { transform: translate(0, 0); }
}