/* =====================================================================
   СМАРТПРО — страницы «Главная» и «Калькулятор»
   (подключается после domofon_style.css, использует его переменные)
   ===================================================================== */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.section { max-width: 1200px; margin: 0 auto; padding: 84px 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.2; letter-spacing: -.01em; }
.section-head p { margin: 14px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: #e9e1f8;
}

/* ===== Главный экран компании ===== */
.c-hero {
    position: relative;
    overflow: hidden;
    margin-top: -67px;
    padding: 150px 24px 110px;
    color: #fff;
    background:
        radial-gradient(900px 500px at 85% 15%, rgba(61, 107, 255, .38), transparent 60%),
        radial-gradient(800px 500px at 10% 90%, rgba(122, 92, 214, .45), transparent 60%),
        linear-gradient(160deg, #1a0b38 0%, #120727 60%, #0d0520 100%);
}
.c-hero::before {                      /* едва заметная сетка */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.c-hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}
.c-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    text-wrap: balance;
}
.c-hero h1 span { background: linear-gradient(135deg, #b9a4ff, #6f9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c-hero .lead { margin: 22px 0 32px; max-width: 560px; font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .84); }
.c-hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-outline { color: #fff; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }

.hero-visual { position: relative; display: flex; flex-direction: column; gap: 16px; }
.float-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
    animation: floaty 6s ease-in-out infinite;
}
.float-card:nth-child(2) { margin-left: 36px; animation-delay: -2s; }
.float-card:nth-child(3) { margin-left: 12px; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.fc-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
}
.float-card strong { display: block; font-size: 1.05rem; }
.float-card span { font-size: .88rem; color: rgba(255, 255, 255, .72); }

/* ===== Плашка «Ключи и трубки» — главная ссылка на магазин ===== */
.shop-band-wrap { position: relative; z-index: 3; max-width: 1200px; margin: -56px auto 0; padding: 0 24px; }
.shop-band {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    border-radius: 28px;
    padding: 40px 44px;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(18, 7, 39, .96) 35%, rgba(18, 7, 39, .6) 100%),
        url("img/fon-opt.jpg") center / cover no-repeat;
    box-shadow: 0 26px 60px rgba(18, 7, 39, .45);
    border: 1px solid rgba(255, 255, 255, .12);
}
.shop-band .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
}
.shop-band h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.2; }
.shop-band p { margin: 12px 0 24px; color: rgba(255, 255, 255, .85); max-width: 520px; }
.shop-products { display: flex; justify-content: center; align-items: center; gap: 12px; }
.shop-products figure {
    margin: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
    transition: transform .25s;
}
.shop-products figure:nth-child(1) { transform: rotate(-6deg); width: 150px; }
.shop-products figure:nth-child(2) { transform: translateY(-10px); }
.shop-products figure:nth-child(3) { transform: rotate(6deg); }
.shop-band:hover .shop-products figure { transform: none; }
.shop-products img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== Услуги ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    position: relative;
    padding: 28px 26px 30px;
    border-radius: 22px;
    background: var(--card);
    border: 1.5px solid transparent;
    box-shadow: var(--shadow);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); border-color: #cdbff0; box-shadow: 0 18px 40px rgba(36, 18, 78, .16); }
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    font-size: 1.35rem;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
    box-shadow: 0 8px 20px rgba(79, 82, 230, .32);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ===== Почему мы ===== */
.band { background: #fff; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-item { padding: 26px 22px; border-radius: 20px; background: var(--bg); text-align: left; }
.why-item .num { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ===== Как мы работаем ===== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.timeline li { position: relative; padding-top: 58px; }
.timeline li::before {
    counter-increment: s;
    content: counter(s);
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
}
.timeline li::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 56px;
    right: -8px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #cdbff0 0 8px, transparent 8px 16px);
}
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* ===== Призыв к калькулятору ===== */
.cta-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 84px; }
.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 44px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #5b3fb0 0%, #3d6bff 100%);
    box-shadow: 0 22px 50px rgba(61, 80, 230, .35);
}
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .88); max-width: 560px; }
.btn-white { color: var(--brand-dark); background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); white-space: nowrap; }
.btn-white:hover { transform: translateY(-2px); }

/* ===== Простой подвал для страницы калькулятора ===== */
.footer-simple { margin-top: 40px; }
.footer-simple-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 40px;
    align-items: center;
}
.footer-simple-inner strong { font-size: 1.2rem; margin-right: auto; font-family: var(--font-brand); letter-spacing: .04em; }
.footer-simple-inner a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.footer-simple-inner a:hover { text-decoration: underline; }
.footer-simple-inner i { color: #b9a4ff; }

/* ===== Калькулятор ===== */
.mini-hero {
    margin-top: -67px;
    padding: 130px 24px 80px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(700px 380px at 80% 10%, rgba(61, 107, 255, .35), transparent 60%),
        radial-gradient(700px 400px at 10% 100%, rgba(122, 92, 214, .45), transparent 60%),
        linear-gradient(160deg, #1a0b38, #120727);
}
.mini-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em; }
.mini-hero p { max-width: 640px; margin: 16px auto 0; color: rgba(255, 255, 255, .84); font-size: 1.05rem; }

.calc-wrap { max-width: 1200px; margin: -38px auto 0; padding: 0 24px 40px; position: relative; z-index: 2; }
.calc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }

.calc-card {
    margin-bottom: 20px;
    padding: 28px 28px 14px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(36, 18, 78, .10);
}
.calc-card > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; font-size: 1.2rem; }
.calc-card > .sub { margin: 0 0 12px 42px; font-size: .9rem; color: var(--ink-soft); }

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #efeaf8;
}
.calc-row:first-of-type { border-top: 0; }
.calc-row .name { font-weight: 600; }
.calc-row .hint { display: block; margin-top: 2px; font-size: .84rem; font-weight: 400; color: var(--ink-soft); }

.stepper { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.stepper button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.stepper button:hover { background: var(--brand-dark); }
.stepper button:active { transform: scale(.93); }
.stepper input {
    width: 76px;
    height: 42px;
    text-align: center;
    font: 700 1.15rem var(--font-body);
    color: var(--ink);
    background: #faf9fd;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 107, 255, .15); background: #fff; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.format { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0 14px; }
.format label { cursor: pointer; }
.format input { position: absolute; opacity: 0; pointer-events: none; }
.format .opt {
    display: block;
    height: 100%;
    padding: 16px 18px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: #faf9fd;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.format .opt strong { display: block; margin-bottom: 4px; }
.format .opt > span { display: block; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.format .opt em { display: inline-block; margin-top: 8px; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--brand-dark); background: #e9e1f8; border-radius: 8px; padding: 2px 8px; }
.format input:checked + .opt { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.format input:focus-visible + .opt { outline: 3px solid rgba(47, 107, 255, .55); outline-offset: 2px; }

.calc-result {
    position: sticky;
    top: 86px;
    padding: 28px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(160deg, #2a1658 0%, #120727 100%);
    box-shadow: 0 22px 50px rgba(18, 7, 39, .4);
}
.calc-result h2 { font-size: 1.15rem; margin-bottom: 18px; color: rgba(255, 255, 255, .9); }
.total-line { margin-bottom: 16px; }
.total-line .lbl { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.total-line .val { font-size: 2.3rem; font-weight: 800; line-height: 1.15; }
.total-line .val small { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.breakdown { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: rgba(255, 255, 255, .82); }
.breakdown li b { color: #fff; white-space: nowrap; }
.breakdown .empty { color: rgba(255, 255, 255, .55); justify-content: center; }
.disclaimer { margin: 0 0 18px; font-size: .8rem; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.result-actions { display: grid; gap: 10px; }
.result-actions .btn { width: 100%; padding: 14px 18px; }
.btn-soft { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.btn-soft:hover { background: rgba(255, 255, 255, .2); }
.link-reset { display: block; margin-top: 14px; text-align: center; background: none; border: 0; font: .88rem var(--font-body); color: rgba(255, 255, 255, .65); cursor: pointer; text-decoration: underline; }
.link-reset:hover { color: #fff; }

.mini-total {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 800;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    background: rgba(18, 7, 39, .95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.mini-total span { font-size: .78rem; color: rgba(255, 255, 255, .7); display: block; }
.mini-total b { font-size: 1.15rem; }
.mini-total .go { font-weight: 700; font-size: .9rem; padding: 9px 14px; border-radius: 12px; background: linear-gradient(135deg, #7a5cd6, #3d6bff); }

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
    .c-hero-inner { grid-template-columns: 1fr; }
    .hero-visual { flex-direction: row; flex-wrap: wrap; }
    .float-card { flex: 1 1 240px; margin-left: 0 !important; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .timeline li:nth-child(2)::after { display: none; }
    .shop-band { grid-template-columns: 1fr; padding: 34px 28px; }
    .calc-grid { grid-template-columns: 1fr; }
    .calc-result { position: static; }
    .mini-total { display: flex; }
    .calc-wrap { padding-bottom: 90px; }
}

@media (max-width: 720px) {
    .section { padding: 56px 16px; }
    .c-hero { margin-top: -59px; padding: 112px 18px 90px; }
    .mini-hero { margin-top: -59px; padding: 108px 18px 70px; }
    .hero-actions .btn { width: 100%; }
    .hero-visual { display: none; }
    .shop-band-wrap { margin-top: -44px; padding: 0 14px; }
    .shop-band { padding: 28px 20px; border-radius: 22px; }
    .shop-products figure { width: 92px; height: 92px; border-radius: 18px; }
    .shop-products figure:nth-child(1) { width: 112px; }
    .cards { grid-template-columns: 1fr; gap: 14px; }
    .why { grid-template-columns: 1fr 1fr; gap: 12px; }
    .why-item { padding: 20px 16px; }
    .timeline { grid-template-columns: 1fr; gap: 20px; }
    .timeline li { padding: 0 0 0 62px; min-height: 48px; }
    .timeline li::after { display: none; }
    .cta-wrap { padding: 0 14px 56px; }
    .cta { flex-direction: column; align-items: flex-start; padding: 28px 22px; border-radius: 22px; }
    .cta .btn { width: 100%; }
    .calc-wrap { padding: 0 12px 90px; }
    .calc-card { padding: 22px 16px 8px; border-radius: 20px; }
    .calc-card > .sub { margin-left: 0; }
    .calc-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .stepper { justify-content: space-between; }
    .stepper input { flex: 1; width: auto; }
    .format { grid-template-columns: 1fr; }
    .footer-simple-inner { padding: 32px 16px 20px; }
}

/* ===== Страница договора оферты ===== */
.doc-wrap { max-width: 900px; margin: -38px auto 0; padding: 0 20px 60px; position: relative; z-index: 2; }
.doc-card { padding: 40px 48px 44px; border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(36, 18, 78, .10); line-height: 1.7; }
.doc-card h2 { margin: 34px 0 12px; padding-bottom: 8px; font-size: 1.25rem; color: var(--brand-dark); border-bottom: 2px solid #e8e2f4; }
.doc-card h2:first-child { margin-top: 0; }
.doc-card p { margin: 0 0 12px; }
.doc-card ul { margin: 0 0 14px; padding-left: 24px; }
.doc-card li { margin-bottom: 6px; }
.doc-card .req p { margin-bottom: 6px; }
.doc-meta { margin: 0 0 24px; color: var(--ink-soft); font-size: .95rem; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.doc-actions .btn { padding: 10px 18px; font-size: .92rem; }
.doc-actions .btn-print { background: #efeaf9; color: var(--brand-dark); border: 1px solid var(--line); }
@media (max-width: 720px) {
    .doc-wrap { padding: 0 12px 40px; }
    .doc-card { padding: 26px 18px 30px; border-radius: 20px; }
}
@media print {
    .navbar, .mobile-menu, .mini-hero, .doc-actions, .footer { display: none !important; }
    body { background: #fff; }
    .doc-wrap { margin: 0; padding: 0; max-width: none; }
    .doc-card { box-shadow: none; padding: 0; }
}


/* ===== Разработка сайтов ===== */
.hero-web-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .22);
    transition: background .2s;
}
.hero-web-link:hover { background: rgba(255, 255, 255, .2); }
.hero-web-link i:first-child { color: #b9a4ff; }

.web {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 420px at 90% 10%, rgba(61, 107, 255, .35), transparent 60%),
        radial-gradient(700px 460px at 0% 100%, rgba(122, 92, 214, .40), transparent 60%),
        linear-gradient(160deg, #1a0b38, #120727);
}
.web-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 24px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.web .eyebrow { color: #fff; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); }
.web h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.18; letter-spacing: -.01em; }
.web-text > p { margin: 16px 0 22px; color: rgba(255, 255, 255, .84); font-size: 1.05rem; max-width: 560px; }
.web-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.web-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, .92); }
.web-list i {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
}
.web-example {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    line-height: 1.45;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: background .2s, transform .2s;
}
.web-example:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.web-example strong { font-size: 1rem; }
.web-example span:nth-child(2) { color: rgba(255, 255, 255, .78); }
.we-icon { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, #7a5cd6, #3d6bff); }
.we-go { margin-left: auto; color: #b9a4ff; }

/* Схематичный макет сайта справа */
.web-visual { position: relative; min-height: 400px; }
.browser {
    width: 88%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
    animation: floaty 7s ease-in-out infinite;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #ece7f7; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9bfe3; }
.browser-bar i:nth-child(1) { background: #ff8a80; }
.browser-bar i:nth-child(2) { background: #ffd180; }
.browser-bar i:nth-child(3) { background: #8de3a5; }
.browser-bar span { flex: 1; height: 18px; margin-left: 10px; border-radius: 9px; background: #fff; }
.browser-body { padding: 16px; background: #f7f4fd; }
.bb-hero { padding: 26px 20px; border-radius: 14px; background: linear-gradient(135deg, #5b3fb0, #3d6bff); }
.bb-hero b { display: block; height: 12px; width: 70%; margin-bottom: 10px; border-radius: 6px; background: rgba(255, 255, 255, .85); }
.bb-hero b:nth-child(2) { width: 48%; background: rgba(255, 255, 255, .5); }
.bb-hero em { display: block; width: 90px; height: 26px; margin-top: 14px; border-radius: 9px; background: #fff; }
.bb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.bb-cards div { height: 74px; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(36, 18, 78, .08); }
.bb-lines b { display: block; height: 9px; margin-bottom: 8px; border-radius: 5px; background: #ddd5ef; }
.bb-lines b:nth-child(2) { width: 62%; }
.phone-mock {
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 34%;
    padding: 10px;
    border-radius: 24px;
    background: #120727;
    border: 3px solid #3b2a66;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
    animation: floaty 6s ease-in-out infinite -2s;
}
.pm-bar { width: 36%; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: #3b2a66; }
.pm-hero { height: 70px; border-radius: 12px; background: linear-gradient(135deg, #7a5cd6, #3d6bff); margin-bottom: 8px; }
.pm-card { height: 34px; margin-bottom: 8px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.web-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, .95);
    color: var(--brand-dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.web-chip i { color: var(--accent); }
.web-chip.c1 { top: 8px; right: 6%; }
.web-chip.c2 { top: 46%; left: -4%; }
.web-chip.c3 { bottom: 4px; left: 6%; }

@media (max-width: 1024px) {
    .web-inner { grid-template-columns: 1fr; padding: 64px 24px; }
    .web-visual { max-width: 520px; margin: 10px auto 0; width: 100%; }
}
@media (max-width: 720px) {
    .web-inner { padding: 52px 16px; gap: 30px; }
    .web .hero-actions .btn { width: 100%; }
    .web-visual { min-height: 320px; }
    .web-chip { font-size: .74rem; padding: 7px 11px; }
    .web-chip.c2 { left: 0; }
    .hero-web-link { font-size: .85rem; }
}

/* Кнопки главного экрана компактнее, чтобы три кнопки помещались в ряд */
.hero-actions .btn-lg { padding: 15px 24px; font-size: 1.05rem; }
.c-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }

/* ===== Калькулятор по прайсу ===== */
.calc-row .name { flex: 1; min-width: 0; }
.calc-row .hint .rate { color: var(--brand-dark); font-weight: 700; }
.calc-row details { margin-top: 6px; }
.calc-row summary { display: inline-block; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--accent); list-style: none; }
.calc-row summary::-webkit-details-marker { display: none; }
.calc-row summary::before { content: "▸ "; }
.calc-row details[open] summary::before { content: "▾ "; }
.calc-row details p { margin: 6px 0 0; padding: 10px 12px; font-size: .84rem; line-height: 1.5; color: var(--ink-soft); background: #f6f3fc; border-radius: 10px; }
.format.three { grid-template-columns: repeat(3, 1fr); }
.val.val-sm { font-size: 1.5rem; }
.breakdown li.sep { margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.breakdown li.note { display: block; font-size: .8rem; color: #ffd59a; }
@media (max-width: 720px) { .format.three { grid-template-columns: 1fr; } }


/* =====================================================================
   Страница «Проекты»
   ===================================================================== */
.p-hero {
    position: relative;
    overflow: hidden;
    margin-top: -67px;
    padding: 130px 24px 70px;
    color: #fff;
    background:
        radial-gradient(900px 520px at 80% 8%, rgba(61, 107, 255, .40), transparent 60%),
        radial-gradient(800px 520px at 0% 70%, rgba(122, 92, 214, .45), transparent 60%),
        linear-gradient(160deg, #1a0b38 0%, #120727 60%, #0d0520 100%);
}
.p-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.p-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.p-hero .lead { margin: 20px 0 30px; max-width: 520px; font-size: clamp(1rem, 2vw, 1.15rem); color: rgba(255, 255, 255, .84); }
.city { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 50px rgba(61, 107, 255, .35)); }

.p-hero-cards { max-width: 1200px; margin: 36px auto 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.glass h2 { font-size: 1.25rem; margin-bottom: 8px; }
.glass p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.dc-card { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: flex-start; }
.dc-svg { flex: none; width: 140px; height: auto; filter: drop-shadow(0 12px 30px rgba(61, 107, 255, .5)); }

.phone-app { flex: none; position: relative; width: 120px; height: 190px; padding: 10px; border-radius: 26px; background: #0d0a1f; border: 3px solid #3b2a66; box-shadow: 0 20px 44px rgba(0, 0, 0, .5); transform: rotate(8deg); }
.pa-notch { width: 40%; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: #2a2150; }
.pa-cam { height: 76px; border-radius: 10px; background: linear-gradient(135deg, #5b3fb0, #3d6bff); opacity: .9; }
.pa-title { width: 60%; height: 7px; margin: 12px auto 0; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.pa-btn { width: 44px; height: 44px; margin: 14px auto 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #7a5cd6, #3d6bff); box-shadow: 0 0 20px rgba(61, 107, 255, .7); }

.sub-title { margin: 56px 0 22px; font-size: 1.5rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.badge-done { color: #fff; background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 6px 16px rgba(34, 197, 94, .4); }
.badge-wip { color: #7a4b00; background: #ffe9c2; }

.proj { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 26px; background: var(--card); box-shadow: 0 20px 50px rgba(36, 18, 78, .16); }
.proj-photo { position: relative; min-height: 320px; background-size: cover; background-position: center; }
.proj-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 7, 39, .05), rgba(18, 7, 39, .45)); }
.proj-photo .badge { position: absolute; top: 18px; left: 18px; z-index: 1; }
.proj-body { padding: 34px 34px 36px; }
.proj-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.proj-meta { margin: 8px 0 22px; color: var(--ink-soft); }
.proj-meta i { color: var(--brand); margin-right: 6px; }
.proj-sub { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.proj-tags { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.proj-tags li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.proj-tags i { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; font-size: .9rem; background: linear-gradient(135deg, #7a5cd6, #3d6bff); }

.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj-ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; padding: 34px 20px 28px; text-align: center; border-radius: 24px; background: var(--bg); border: 2px dashed #cdbff0; }
.proj-ph .badge { position: absolute; top: 16px; left: 16px; }
.ph-icon { font-size: 2.2rem; color: #b6a6e0; margin-bottom: 12px; }
.proj-ph h3 { font-size: 1.15rem; }
.proj-ph p { margin: 6px 0 0; color: var(--ink-soft); }

@media (max-width: 1024px) {
    .p-hero-inner { grid-template-columns: 1fr; }
    .p-hero-art { max-width: 560px; margin: 0 auto; }
    .p-hero-cards { grid-template-columns: 1fr; }
    .proj { grid-template-columns: 1fr; }
    .proj-photo { min-height: 240px; }
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .p-hero { margin-top: -59px; padding: 108px 16px 50px; }
    .glass { padding: 22px 18px; }
    .app-card { flex-direction: column-reverse; align-items: flex-start; }
    .phone-app { align-self: center; transform: none; }
    .dc-svg { width: 96px; }
    .proj-body { padding: 24px 18px 26px; }
    .proj-grid { grid-template-columns: 1fr; }
    .cards-4 { grid-template-columns: 1fr; }
    .proj-body .btn { width: 100%; }
}
