/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #f8f9fb;
    --bg-alt: #ffffff;
    --text: #1a1f2e;
    --text-soft: #5c677d;
    --accent: #3b5bdb;
    --accent-hover: #2b45a8;
    --border: #e2e8f0;
    --radius: 16px;
    --container: 1100px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 72px 0; }

.section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 40px;
    color: var(--text);
}
.section__title--left { text-align: left; }

/* ---------- КНОПКИ ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}
.btn:active { transform: scale(.98); }
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 91, 219, 0.2);
}
.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(59, 91, 219, 0.3);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text); }

/* ---------- ХЕДЕР ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 249, 251, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
}
.logo span { color: var(--accent); }
.header__link {
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-soft);
    transition: color .2s;
}
.header__link:hover { color: var(--accent); }

/* ---------- HERO ---------- */
.hero { padding: 60px 0 80px; }
.hero__inner {
    display: grid;
    gap: 40px;
    align-items: center;
}
.hero__subtitle {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 16px;
}
.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.2;
    margin: 0 0 24px;
}
.hero__desc {
    color: var(--text-soft);
    font-size: 1.1rem;
    margin: 0 0 32px;
    max-width: 48ch;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Имитация окна браузера */
.hero__mockup {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.mockup__header {
    height: 36px;
    background: #f1f3f6;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}
.mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
}
.mockup__dot:nth-child(1) { background: #ef4444; }
.mockup__dot:nth-child(2) { background: #f59e0b; }
.mockup__dot:nth-child(3) { background: #10b981; }
.hero__mockup img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* ---------- ПРОБЛЕМА ---------- */
.problem { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.problem__grid {
    display: grid;
    gap: 24px;
}
.problem__card {
    background: var(--bg);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.problem__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}
.problem__card p {
    margin: 0;
    font-weight: 500;
    font-size: 1.05rem;
}

/* ---------- РЕШЕНИЕ ---------- */
.solution__inner {
    display: grid;
    gap: 40px;
    align-items: center;
}
.solution__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.solution__list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-soft);
    font-size: 1.05rem;
}
.solution__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}
.solution__list strong { color: var(--text); }
.solution__blob {
    display: none; /* Скрываем заглушку, когда есть список */
}

/* ---------- ПОРТФОЛИО ---------- */
.portfolio__card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.portfolio__image img {
    width: 100%;
    height: 300px;
}
.portfolio__content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.portfolio__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 12px;
}
.portfolio__desc {
    color: var(--text-soft);
    margin: 0 0 24px;
}

/* ---------- ПРОЦЕСС ---------- */
.process__grid {
    display: grid;
    gap: 24px;
}
.process__step {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}
.process__number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.process__step h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}
.process__step p {
    margin: 0;
    color: var(--text-soft);
}

/* ---------- ЦЕНА ---------- */
.price { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price__card {
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.price__amount {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}
.price__desc {
    color: var(--text-soft);
    margin: 0 0 32px;
    font-size: 1.1rem;
}

/* ---------- FAQ ---------- */
.faq__inner { max-width: 800px; margin: 0 auto; }
.faq__item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.faq__question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform .2s;
}
.faq__item[open] .faq__question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq__answer {
    padding: 0 24px 24px;
    color: var(--text-soft);
    margin: 0;
}

/* ---------- КОНТАКТЫ ---------- */
.contacts { background: var(--accent); color: #fff; }
.contacts .section__title { color: #fff; margin-bottom: 16px; }
.contacts__desc {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 32px;
}
.contacts__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.contacts .btn--primary {
    background: #fff;
    color: var(--accent);
    box-shadow: none;
}
.contacts .btn--primary:hover { background: #f1f3f6; }
.contacts .btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.contacts .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- ФУТЕР ---------- */
.footer {
    padding: 32px 0;
    background: var(--text);
    color: var(--text-soft);
    text-align: center;
    font-size: .9rem;
}

/* ---------- АДАПТИВ (ДЕСКТОП) ---------- */
@media (min-width: 768px) {
    .section { padding: 100px 0; }
    .hero__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
    .hero__mockup img { height: 480px; }

    .problem__grid { grid-template-columns: repeat(3, 1fr); }

    .solution__inner { grid-template-columns: 1fr 1fr; gap: 64px; }

    .portfolio__card { grid-template-columns: 1fr 1fr; }
    .portfolio__image img { height: 100%; min-height: 400px; }

    .process__grid { grid-template-columns: repeat(3, 1fr); }
}