:root {
    --brand: #6b1c3b;
    --brand-dark: #571531;
    --ink: #222;
    --muted: #666;
    --bg: #fafafa;
    --bg-alt: #f2f2f2;
    --card: #ffffff;
    --line: #d4d4d4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.55;
    color: var(--ink);
    background: #fff;
}

main { flex: 1 0 auto; }


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

h1, h2, h3, h4 { font-weight: 600; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

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

/* ---------- Buttons (Tilda t142: 60px, radius 5, bold 16px) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0 60px;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn--outline { background: transparent; border: 2px solid var(--brand); color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: transparent; border: 2px solid #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--brand); }
.btn--wide { width: 100%; }

/* ---------- Header (T454: чёрный, меню по краям, логотип по центру) ---------- */
.header {
    position: relative;
    background: #000;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.header__navs { display: contents; }
.nav--left { order: 1; flex: 1 1 0; justify-content: flex-start; }
.header__logo { order: 2; }
.nav--right { order: 3; flex: 1 1 0; justify-content: flex-end; }
.header__burger { order: 4; }
.header__logo { color: #fff; font-size: 24px; font-weight: 400; letter-spacing: .3px; white-space: nowrap; }
.header__logo:hover { text-decoration: none; }
.header__logo-img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav__link { color: #fff; padding: 4px 0; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav__link:hover { text-decoration: underline; }
.header__burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.header__burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--gray { background: var(--bg-alt); }
.section--dark { background: var(--brand); color: #fff; }
.section--dark a { color: #fff; }
.section__title { margin: 0 0 56px; font-size: 42px; font-weight: 600; text-align: center; line-height: 1.23; }
.section--dark .section__title { color: #fff; }
.section__subtitle { text-align: center; color: var(--muted); margin: -20px 0 40px; }
.section__intro { max-width: 640px; margin: 0 auto 40px; text-align: center; font-size: 24px; line-height: 1.5; }
.section__actions { text-align: center; margin-top: 34px; }

/* ---------- Hero (T545: фото слева 50/50, бордовая панель, фото по высоте контента) ---------- */
.hero { padding: 70px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 560px; }
.hero__photo { height: 100%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__panel {
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 60px;
}
.hero__content { width: 100%; }
.hero__title { margin: 0 0 24px; font-size: 52px; font-weight: 600; line-height: 1.23; color: #fff; }
.hero__descr { font-size: 18px; line-height: 1.55; }
.hero__contacts { margin-top: 18px; font-size: 18px; line-height: 1.6; }
.hero__contacts a { color: #fff; }
.hero__contacts strong { font-weight: 600; }
.hero__actions { margin-top: 30px; }

/* ---------- Services (T026/T004: две колонки с буллетами, uppercase-подзаголовки) ---------- */
.services { display: grid; grid-template-columns: 1fr; gap: 50px; max-width: 860px; margin: 0 auto; }
.services__col { padding: 0; border: 0; background: none; }
.services__heading { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); }
.services__text { margin: 0; font-size: 20px; line-height: 1.55; }

/* ---------- Prices (T792: название 22px/400, цена 20px, тонкие линии) ---------- */
.prices { margin: 0; }
.prices__row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
    padding: 18px 4px; border-bottom: 1px solid #e0e0e0;
}
.prices__row dt { font-weight: 400; font-size: 22px; line-height: 1.4; }
.prices__row dd { margin: 0; font-size: 20px; color: var(--ink); white-space: nowrap; }

/* ---------- Cards / blog ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.card__link { display: block; color: inherit; height: 100%; }
.card__link:hover { text-decoration: none; }
.card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card__img-empty { aspect-ratio: 16/10; background: linear-gradient(135deg, #eee, #ddd); }
.card__body { padding: 18px 20px 24px; }
.card__meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card__title { margin: 0 0 8px; font-size: 19px; color: var(--brand); }
.card__text { margin: 0; color: #555; font-size: 15px; }

/* ---------- Reviews (T525: круглый аватар 100px слева, текст справа, 2 колонки, без карточек) ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 70px; max-width: 1000px; margin: 0 auto; }
.review { display: flex; align-items: flex-start; gap: 30px; }
.review__avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review__avatar--empty { display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-size: 34px; font-weight: 700; }
.review__body { min-width: 0; }
.review__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.review__name { margin-top: 14px; font-size: 14px; font-weight: 700; }
.review__role { margin-top: 3px; font-size: 14px; color: var(--muted); }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contacts__list { list-style: none; margin: 26px 0; padding: 0; }
.contacts__list li { margin-bottom: 12px; }
.contacts__list span { display: inline-block; width: 110px; color: rgba(255,255,255,.7); font-size: 15px; }
.contacts__social { display: flex; gap: 12px; }
.contacts__form { background: #fff; color: var(--ink); border-radius: 6px; padding: 30px; }
.contacts__form-title { margin: 0 0 18px; font-size: 24px; color: var(--brand); text-align: center; }

/* ---------- Form ---------- */
.form__field { margin-bottom: 16px; }
.form__label { display: block; font-size: 14px; margin-bottom: 6px; color: #444; }
.input, textarea.input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 3px;
    font: inherit; background: #fff; color: var(--ink);
}
.input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
textarea.input--textarea { min-height: 110px; resize: vertical; }
.form__field--error .input { border-color: #c0392b; }
.form__error { color: #c0392b; font-size: 13px; margin-top: 4px; }
.form__help { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form__consent { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form__thanks { text-align: center; padding: 14px 0 4px; color: #2e7d32; }

/* ---------- Article ---------- */
.article__meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.article__title { margin: 0 0 10px; font-size: 36px; line-height: 1.2; }
.article__intro { font-size: 19px; color: #555; margin: 0 0 28px; }
.article__cover { margin: 0 0 30px; }
.article__cover img { border-radius: 6px; width: 100%; }
.article__tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; background: var(--bg-alt); border-radius: 20px; padding: 5px 14px; font-size: 14px; color: var(--brand); }
.tag:hover { background: var(--brand); color: #fff; text-decoration: none; }
.figure { margin: 28px 0; }
.figure img { border-radius: 6px; width: 100%; }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.embed { margin: 28px 0; }
.embed iframe { max-width: 100%; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 6px; }

/* ---------- Rich text ---------- */
.richtext h2, .richtext h3 { color: var(--brand); line-height: 1.25; }
.richtext h2 { font-size: 27px; margin: 34px 0 12px; }
.richtext h3 { font-size: 22px; margin: 28px 0 10px; }
.richtext ul, .richtext ol { padding-left: 24px; }
.richtext blockquote { border-left: 3px solid var(--brand); margin: 20px 0; padding: 4px 0 4px 18px; color: #555; }
.richtext img { border-radius: 6px; }
.quote { background: var(--bg-alt); border-left: 3px solid var(--brand); border-radius: 0 5px 5px 0; margin: 28px 0; padding: 20px 24px; }
.quote p { margin: 0 0 8px; font-size: 18px; }
.quote cite { font-size: 14px; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.pagination__info { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: #1d1d1d; color: rgba(255,255,255,.7); padding: 34px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__contacts a { color: rgba(255,255,255,.85); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero__inner, .contacts { grid-template-columns: 1fr; }
    .hero__photo { height: 380px; }
    .hero__panel { padding: 44px 24px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .reviews { grid-template-columns: 1fr; gap: 36px; }
    .section { padding: 56px 0; }
    .hero { padding-top: 30px; }
    .section__title { font-size: 32px; margin-bottom: 32px; }
    .hero__title { font-size: 36px; }
    .header__burger { display: block; }
    .header__navs {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        background: #000;
        padding: 10px 20px 18px;
    }
    .header__navs.nav--open { display: block; }
    .nav { width: 100%; margin: 0; flex-direction: column; gap: 0; }
    .nav--left, .nav--right { grid-column: auto; justify-self: auto; }
    .nav--right { justify-content: flex-start; }
    .nav__link { padding: 10px 0; font-size: 15px; }
}

@media (max-width: 640px) {
    .cards { grid-template-columns: 1fr; }
    .section__title { font-size: 26px; margin-bottom: 24px; }
    .article__title { font-size: 28px; }
    .contacts__list span { width: 90px; }
    .prices__row dt { font-size: 18px; }
    .prices__row dd { font-size: 17px; }
    .btn { padding: 0 30px; min-height: 52px; }
    .section__intro { font-size: 19px; }
    .review { flex-direction: column; }
    .review__body { width: 100%; }
}
