/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f8f4ef;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.5;
}

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

:root {
    --bg: #f2ede6;
    --dark: #221f1c;
    --text: #6d675f;
    --accent: #a8865c;
    --accent-dk: #94744c;
    --line: #dcd2c4;

    --pad-t: 40px;
    --pad-b: 40px;

    --container: 1240px;
    --c-pad: 20px;
    --side-pad: max(20px, calc((100vw - var(--container)) / 2 + var(--c-pad)));
    --media-shift: var(--side-pad);
    --gutter: 24px;
    --btn-h: 52px;
    --media-w: clamp(300px, 40vw, 600px);
}

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

section:focus,#contacts:focus {
  outline: none;
}
/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(247, 243, 237, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(221, 210, 196, 0.7);
    padding: 24px 0;
    background-color: #f6f2ec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap:0px; /*10px*/
}
.header__logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brandmark {
    font-family:"Great Vibes", sans-serif;
    font-size: 46px;
    width: 93px;/* 120px*/
    line-height: 1;
    color: #b08a5a;
    letter-spacing: -0.08em;      /* -0.02em */
     /* Маска с более плотным затемнением слева */
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,1) 60%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,1) 60%);
}
.brandtext {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #947451;
    line-height: 1.4;
}

.brandtext .name_2{
   letter-spacing: 3px;
}

.brandtext .name{
    margin-left: 30px;
}

.header__nav {
    flex: 1;
}
.header__nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    justify-content: center;
}
.header__nav-link {
    color: #5c4a3a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.header__nav-link:hover,
.header__nav-link.active {
    color: #8b6f47;
    border-bottom-color: #b08a5a;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-h);
    padding: 0 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0;
    transition: background .25s, color .25s;
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--accent-dk);
}
.btn--outline {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn--outline:hover {
    background: var(--accent);
    color: #fff;
}

/* Бургер */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.header__burger-line {
    width: 24px;
    height: 2px;
    background-color: #5c4a3a;
    transition: all 0.3s ease;
}
.header__burger.active .header__burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header__burger.active .header__burger-line:nth-child(2) {
    opacity: 0;
}
.header__burger.active .header__burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Мобильное меню */
.header__mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f6f2ec;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.header__mobile-nav.active {
    display: block;
}
.header__mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.header__mobile-nav-link {
    display: block;
    color: #5c4a3a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(92, 74, 58, 0.1);
}
.header__mobile-nav-link--cta {
    background-color: #8b6f47;
    color: #ffffff;
    text-align: center;
    border-radius: 4px;
    border-bottom: none;
    margin-top: 8px;
}

/* ============================================
   HERO (home.php)
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    display: grid;
    grid-template-columns: minmax(0, 620px) var(--media-w);
    grid-template-areas:
        "crumbs   media"
        "head     media"
        "text     media"
        "actions  media"
        "features media";
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    padding: var(--pad-t) var(--media-shift) var(--pad-b) var(--side-pad);
}
.hero__head {
    grid-area: head;
}
.hero__text {
    grid-area: text;
}
.hero__actions {
    grid-area: actions;
}
.hero__features {
    grid-area: features;
}
.hero__media {
    grid-area: media;
    align-self: stretch;
    margin: calc(var(--pad-t) * -1) 0 calc(var(--pad-b) * -1);
    background: url("/assets/img/home.png") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 94%, transparent 100%);
    pointer-events: none;
}
.hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}
.hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(30px, 3.4vw + 8px, 50px);
    line-height: 1.16;
    color: #201d1a;
    margin-bottom: 24px;
}
.hero__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    max-width: 470px;
    margin-bottom: 36px;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}
.hero__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 180px;
    font-size: 13px;
    line-height: 1.4;
    color: #3c3833;
}
.hero__feature + .hero__feature {
    border-left: 1px solid var(--line);
    padding-left: 28px;
}
.hero__feature svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

/* ============================================
   ABOUT (home.php)
   ============================================ */
.about {
    padding: 80px var(--side-pad);
}
.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}
.about-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.about__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
}
.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0px;
  background: #fdfbf9;
  transition: border-color .25s;
  height: 100%;
}
.card > a {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: default;
}
.card__link {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
}
.card:hover {
    border-color: var(--accent);
}
/* Главная иконка карточки */
.card__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 auto;
  margin-bottom: 20px;
  color: var(--accent);
}

.card__title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: 19px;
    line-height: 1.35;
    color: #201d1a;
    margin-bottom: 12px;
    overflow-wrap: break-word;
}
.card__text {
    display: flex;
    align-items: start;
    height: 100%;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
}
.card__link svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  transition: transform .25s;
}
.card:hover .card__link svg {
    transform: translateX(4px);
}

.about__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(26px, 2vw + 12px, 34px);
    color: #201d1a;
    margin-bottom: 28px;
}
.about__title::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.about__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    max-width: 560px;
    margin-bottom: 20px;
}
.about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
    margin-top: 44px;
}
.stat__num {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(26px, 2vw + 14px, 36px);
    color: #201d1a;
}
.stat__caption {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
    margin-top: 6px;
}

/* ============================================
   TRUST & STEPS (home.php)
   ============================================ */
.trust {
    padding: 0px var(--side-pad) 80px;
}
.trust__grid {
    display: grid;
    grid-template-columns: minmax(0, .5fr) minmax(0, .64fr);
    gap: 60px;
    align-items: start;
}
.trust__title,
.steps__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(24px, 2vw + 12px, 32px);
    color: #201d1a;
    margin-bottom: 32px;
}
.trust__title::after,
.steps__title::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.trust__left {
    border-right: 1px solid var(--line);
    padding-right: 48px;
}
.trust__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.trust__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.trust__icon {
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--accent);
    margin-top: 2px;
}
.trust__name {
    font-size: 14px;
    font-weight: 600;
    color: #2b2825;
    margin-bottom: 6px;
}
.trust__text {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text);
}

.steps {
    --gap: 20px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--gap);
}
.steps::before {
    content: "";
    position: absolute;
    top: 49px;
    left: 22px;
    right: calc((100% - 4 * var(--gap)) / 5 - 22px);
    height: 1px;
    background: var(--line);
}
.step__num {
    font-size: 12px;
    color: #3c3833;
    margin-bottom: 12px;
}
.step__icon {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fbf9f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.step__icon svg {
    width: 20px;
    height: 20px;
}
.step__title {
    font-size: 13px;
    font-weight: 600;
    color: #2b2825;
    margin-top: 16px;
}
.step__text {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text);
    margin-top: 6px;
}

/* ============================================
   CASES (home.php)
   ============================================ */
.cases {
    padding: 0px var(--side-pad) 80px;
}
.cases__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(24px, 2vw + 12px, 32px);
    color: #201d1a;
    margin-bottom: 32px;
}
.cases__title::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
}
.case {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    border: 1px solid var(--line);
    background: #f7f2ea;
    transition: border-color .25s;
    cursor: pointer;
}
.case:hover {
    border-color: var(--accent);
}
.case__label {
    font-size: 12px;
    color: #3c3833;
    margin-bottom: 10px;
}
.case__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.case__num {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(28px, 2.4vw + 8px, 40px);
    line-height: 1;
    color: var(--accent);
}
.case__unit {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    color: var(--accent);
}
.case__preposition {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    color: #201d1a;
}
.case__phrase {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    color: #201d1a;
}
.case__text {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 24px;
}
.case__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color .25s;
}
.case__link svg {
    width: 16px;
    height: 16px;
    transition: transform .25s;
}
.case__link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   FAQ (home.php)
   ============================================ */
.faq {
    padding: 0px var(--side-pad) 80px;
}
.faq__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(24px, 2vw + 12px, 32px);
    color: #201d1a;
    margin-bottom: 32px;
}
.faq__title::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.faq__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    align-items: start;
}
.faq__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq__item {
    border: 1px solid var(--line);
    background: #fdfbf9;
    transition: border-color .25s;
}
.faq__item.open {
    border-color: var(--accent);
}
.faq__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    color: #2b2825;
    text-align: left;
}
.faq__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform .3s;
}
.faq__item.open .faq__icon {
    transform: rotate(45deg);
}
.faq__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}
.faq__body-inner {
    overflow: hidden;
}
.faq__item.open .faq__body {
    grid-template-rows: 1fr;
}
.faq__answer {
    padding: 0 20px 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text);
}

/* ============================================
   CONTACT (home.php)
   ============================================ */
.contact {
    padding: 0px var(--side-pad) 80px;
}
.contact__panel {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    padding: 30px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: center;
}
.contact__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -171px;
    width: 50%;
    background: url("/assets/img/form.png") left bottom / cover no-repeat;
    pointer-events: none;
}
.contact__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(242, 237, 230, 0) 28%,
            rgba(246, 242, 236, .7) 33%,
            var(--bg) 88%);
}
.contact__info,
.contact__form {
    position: relative;
    z-index: 1;
}
.contact__title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(24px, 2vw + 12px, 28px);
    color: #201d1a;
    margin-bottom: 20px;
}
.contact__title::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.contact__text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    max-width: 320px;
}
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.contact__input,
.contact__select,
.contact__textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0 16px;
    height: 48px;
    font-family: inherit;
    font-size: 13px;
    color: var(--dark);
    transition: border-color .25s;
}
.contact__textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 16px;
    resize: vertical;
}
.contact__input::placeholder,
.contact__textarea::placeholder {
    color: #9a938a;
}
.contact__input:focus,
.contact__select:focus,
.contact__textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact__select {
    appearance: none;
    -webkit-appearance: none;
    color: #9a938a;
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a8865c' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.contact__select:valid {
    color: var(--dark);
}
.contact__select option {
    color: var(--dark);
}
.contact__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    background: var(--accent);
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: background .25s;
}
.contact__submit:hover {
    background: var(--accent-dk);
}
/*.contact__note {
    display:flex;
    flex-direction: column;
    gap:10px;
    font-size: 11px;
    color: #8b857c;
}
.contact__note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}*/
.contact__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    color: #8b857c;
    cursor: pointer;
}
.contact__note-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}
.contact__note-text a:hover {
    color: var(--accent);
}
.contact__checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .25s, background-color .25s;
}
.contact__checkbox:hover {
    border-color: var(--accent);
}
.contact__checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.contact__checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.contact__checkbox:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   ABOUT HERO (about.php)
   ============================================ */
.about-hero {
    position: relative;
    overflow: hidden;
    background: var(--bg);
    display: grid;
    grid-template-columns: minmax(0, 620px) var(--media-w);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "crumbs media"
        "inner  media";
    justify-content: space-between;
    align-items: center;
    padding: var(--pad-t) var(--media-shift) var(--pad-b) var(--side-pad);
}
.about-hero__breadcrumbs {
    grid-area: crumbs;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #9a948b;
    margin-bottom: 44px;
}
.about-hero__breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.about-hero__breadcrumbs a:hover {
    color: var(--accent);
}
.about-hero__inner {
    grid-area: inner;
}
.about-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}
.about-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(28px, 2.8vw + 10px, 46px);
    line-height: 1.2;
    color: #201d1a;
    margin-bottom: 24px;
}
.about-hero__text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    max-width: 560px;
}
.about-hero__media {
    grid-area: media;
    align-self: stretch;
    margin: calc(var(--pad-t) * -1) 0 calc(var(--pad-b) * -1);
    background: url("/assets/img/about.jpg") right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 96%, transparent 100%);
    pointer-events: none;
}

/* ============================================
   EXP (about.php)
   ============================================ */
.exp {
    padding: 72px 0 80px;
}
.exp-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}
.exp-spec {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 48px 0 0;
}
.exp-approach {
    border-left: 1px solid var(--line);
    padding: 0 0 0 48px;
    display: flex;
    flex-direction: column;
    height: 89%;
}

.exp-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 34px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #3f3b37;
}
.exp-title::after {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--accent);
}

.exp-ico {
    color: var(--accent);
    flex: none;
}
.exp-ico svg {
    display: block;
    width: 100%;
    height: 100%;
}

.exp-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.exp-card {
    border: 1px solid var(--line);
    padding: 24px 22px;
}
.exp-card h3 {
    transition: color .25s ease;
}
.exp-card:hover {
    border-color: var(--accent);
}
.exp-card:hover h3 {
    color: var(--accent);
}
.exp-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.exp-card-head .exp-ico {
    width: 38px;
    height: 38px;
}
.exp-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--dark);
}
.exp-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.exp-item+.exp-item {
    border-top: 1px solid var(--line);
    margin-top: 80px;
    padding-top: 30px;
}
.exp-item-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.exp-item-head .exp-ico {
    width: 42px;
    height: 42px;
}
.exp-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--dark);
}
.exp-item p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    margin-left: 58px;
}

.exp-pubs {
    margin-top: 56px;
    border-top: 1px solid var(--line);
    padding-top: 48px;
}
.exp-pubs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.exp-pubs-head .exp-title {
    margin-bottom: 0;
}
.exp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
}
.exp-link:hover {
    text-decoration: underline;
}
.exp-list {
    list-style: none;
    margin-top: 28px;
}
.exp-list li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.exp-list li p {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #4b4741;
}
.exp-list time {
    font-size: 12px;
    color: #8d8781;
    white-space: nowrap;
}
.exp-list-link {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    color: #4b4741;
    text-decoration: none;
    transition: color .25s ease;
}
.exp-list-link:hover {
    color: var(--accent);
}

/* ============================================
   CTA (about.php)
   ============================================ */
.cta {
    position: relative;
    padding: 20px 0;
    background: linear-gradient(90deg, var(--line) 0%, var(--bg) 60%);
}
.cta-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gutter);
    padding: 0 var(--c-pad);
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--btn-h);
    padding: 0 36px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.cta-btn--outline {
    border-color: var(--accent);
    color: var(--accent-dk);
    background: transparent;
}
.cta-btn--outline:hover {
    background: var(--accent);
    color: #fff;
}
.cta-btn--solid {
    background: var(--accent);
    color: #fff;
}
.cta-btn--solid:hover {
    background: var(--accent-dk);
}

/* ============================================
    URBAN_LAW
    ============================================ */
 .hero--urban {
    --pad-t: 72px;
    --pad-b: 72px;
}

.hero--urban .hero__title {
    max-width: 560px;
}
/* ============================================
   PROBLEMS (страница «Земля и градостроительство»)
============================================ */
.problems {
  padding: 60px var(--side-pad) 80px;
}
.problems__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 32px;
}
.problems__title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
/* ============================================
   IMPORTANT (страница «Земля и градостроительство»)
============================================ */
.important {
  padding: 0 var(--side-pad) 80px;
}
.important__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 36px;
}
.important__title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.important__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: stretch;
}
.important__col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.important__col:last-child {
  border-left: 1px solid var(--line);
  padding-left: 48px;
}
.important__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.important__icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-top: 2px;
}
.important__name {
  font-size: 14px;
  font-weight: 600;
  color: #2b2825;
  margin-bottom: 8px;
}
.important__text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  max-width: 460px;
}
/* ============================================
   CASE STUDY (страница «Земля и градостроительство»)
============================================ */
.case-study {
  padding: 0 var(--side-pad) 80px;
}
.case-study__panel {
  background: var(--bg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .75fr);
  gap: 48px;
}
/* левая колонка с акцентной полосой, как в макете */
.case-study__head {
  align-self: start;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
}
.case-study__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.case-study__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 1.6vw + 8px, 26px);
  line-height: 1.3;
  color: #201d1a;
}
/* центр: ситуация + решение */
.case-study__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-study__subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #2b2825;
  margin-bottom: 8px;
}
.case-study__text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
/* правая колонка: результат, линия на всю высоту плашки */
.case-study__result {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.case-study__num {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 8px, 32px);
  line-height: 1.1;
  color: var(--accent);
}
.case-study__num--small {
  font-size: clamp(20px, 1.6vw + 8px, 26px);
}
.case-study__caption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  margin-top: 6px;
}
.case-study__divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
/* ============================================
   PRICES (страница «Земля и градостроительство»)
============================================ */
.prices {
  padding: 0 var(--side-pad) 80px;
}
.prices__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 32px;
}
.prices__title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.prices__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 48px;
  border: 1px solid var(--line);
  background: #fdfbf9;
  padding: 28px 40px 28px 32px;
}
/* строки прайса */
.prices__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
}
.prices__row + .prices__row {
  border-top: 1px solid var(--line);
}
.prices__name {
  font-size: 13px;
  color: #3c3833;
}
.prices__value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}
/* заметка справа, линия на всю высоту плашки */
.prices__note {
  border-left: 1px solid var(--line);
  padding-left: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.prices__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent);
}
.prices__note-text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
/* ============================================
   CTA LAND (страница «Земля и градостроительство»)
============================================ */
.cta-land {
  padding: 0 var(--side-pad) 80px;
}
.cta-land__panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 40px 48px;
  display: grid;
  /* 1-я колонка — «воздух» под картинку, 2-я — текст, 3-я — кнопки */
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
/* колонны слева — один в один как .contact__media на главной */
.cta-land__media {
  position: absolute;
  top: 0;
  bottom: -35px;
  left: -140px;
  width: 44%;
  background: url("/assets/img/form.png") left bottom / cover no-repeat;
  pointer-events: none;
}
.cta-land__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(242, 237, 230, 0) 30%,
    rgba(242, 237, 230, .7) 45%,
    var(--bg) 90%);
}
.cta-land__info {
  grid-column: 2;
  position: relative;
  z-index: 1;
}
.cta-land__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw + 10px, 30px);
  line-height: 1.3;
  color: #201d1a;
  margin-bottom: 14px;
}
.cta-land__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 380px;
}
.cta-land__actions {
  grid-column: 3;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-land__actions .btn {
  width: 280px;
  height: auto;
  min-height: var(--btn-h);
  padding: 10px 24px;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
}
/* ============================================
HERO (arbitration.php)
============================================ */
.hero--arbitration {
  --pad-t: 72px;
  --pad-b: 72px; /* запас внизу под абсолютный список фич */
}
.hero--arbitration .hero__title {
  max-width: 620px;
}
.hero--arbitration .hero__media {
  background: url("/assets/img/arbitrage.png") center / cover no-repeat;
}
.hero--arbitration .hero__features {
  position: absolute;
  left: 0px;
  top:  -13px;
  z-index: 2;
  width: 720px;
}
.hero--arbitration :where(.hero__feature) {
  max-width: 228px;
}
.hero--arbitration :where(.hero__feature) + .hero__feature {
  padding-left: 10px;
}
/* ============================================
    QUESTIONS
   ============================================ */
.problems .card__text:last-child {
  margin-bottom: 0;
}
/* ============================================
PRACTICE — «Что важно в этой практике» (arbitration.php)
============================================ */
.practice {
  padding: 0 var(--side-pad) 80px;
}

.practice__cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1.2fr));
    gap: 10px;
    align-items: stretch;
}

.practice__intro { min-width: 0; }

/* заголовок: одна строка + линия, как в макете */
.practice__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 1.4vw + 12px, 27px);
  line-height: 1.2;
  color: #201d1a;
  margin-bottom: 24px;
}
.practice__title::after {
  content: "";
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.practice__intro p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}
.practice__intro p + p { margin-top: 16px; }

.practice__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.practice__num {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    line-height: 1;
    color: var(--accent-dk);
    margin-bottom: 25px;
}

/* акцентный подзаголовок, в одну строку */
.practice__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--accent);
  margin-bottom: 16px;
}

.practice__text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
/* ============================================
CASE (arbitration.php)
============================================ */
.case-arb {
  padding: 0 var(--side-pad) 80px;
}
.case-arb__panel {
  position: relative;
  overflow: hidden;
  padding: 40px 48px;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--bg) 45%, rgba(242, 237, 230, 0) 75%),
    url("/assets/img/case.png");
  background-position: left top, right center;
  background-size: auto, auto 100%;
  background-repeat: no-repeat;
}
.case-arb__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(248, 244, 239, .9)  0%,
    rgba(248, 244, 239, .65) 60%,
    rgba(248, 244, 239, .35) 100%);
  pointer-events: none;
}
.case-arb__content {
  position: relative;
  z-index: 1;
}

.case-arb__label {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 12px;
}

.case-arb__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 1.6vw + 8px, 26px);
  line-height: 1.3;
  color: #201d1a;
  max-width: 640px;
  margin-bottom: 16px;
}

.case-arb__text {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 32px;
}

/* показатели: 4 колонки, разделители одной высоты */
.case-arb__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 28px;
  align-items: stretch;
  max-width: 77%;
}

.case-arb__stat {
  min-width: 0;
}
.case-arb__stat + .case-arb__stat {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.case-arb__stat-label {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #6d675f;
  margin-bottom: 8px;
}

.case-arb__stat-value {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent);
}
.case-arb__stat-value--text {
  font-size: 15px;
  line-height: 1.35;
}
/* ============================================
PRICES (arbitration.php)
============================================ */
.prices-arb {
  padding: 0 var(--side-pad) 80px;
}

.prices-arb__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 32px;
}
.prices-arb__title::after {
  content: "";
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.prices-arb__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 48px;
  border: 1px solid var(--line);
  background: #fdfbf9;
  padding: 24px 40px 24px 32px;
}

/* таблица: колонка цены фиксированная — цены стоят ровным столбцом */
.prices-arb__table { min-width: 0; }

.prices-arb__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 160px);
  gap: 24px;
  padding: 9px 0;
}
.prices-arb__row + .prices-arb__row {
  border-top: 1px solid var(--line);
}

.prices-arb__row--head {
  padding: 0 0 10px;
  font-size: 12px;
  color: #6d675f;
}

.prices-arb__name,
.prices-arb__value {
  font-size: 13px;
  line-height: 1.5;
  color: #3c3833;
}
.prices-arb__value { white-space: nowrap; }

/* примечание справа, линия на всю высоту панели */
.prices-arb__note {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}

.prices-arb__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  color: var(--accent);
}

.prices-arb__note-text p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
.prices-arb__note-text p + p { margin-top: 12px; }
/* ============================================
CTA (arbitration.php)
============================================ */
.cta-arb {
  padding: 0 var(--side-pad) 80px;
}

.cta-arb__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  padding: 32px 48px;
}

.cta-arb__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw + 10px, 27px);
  line-height: 1.3;
  color: #201d1a;
  margin-bottom: 12px;
}
.cta-arb__title::after {
  content: "";
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.cta-arb__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 440px;
}

.cta-arb__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
/* ============================================
   HERO (medical.php) — механика как у hero на главной
============================================ */
.hero__media_med{
    background: url(/assets/img/hero_med.png) 84% center / cover no-repeat;
}
/* ============================================
   MED ORGS (medical.php)
============================================ */
.med-orgs {
  padding: 64px var(--side-pad) 80px;
}
.med-orgs__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 32px;
}
.med-orgs__title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.med-orgs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

/* ============================================
IMPORTANT (medical.php)
============================================ */
.important--med .important__title {
  margin-bottom: 28px;
}

.important__panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 44px 48px;
}

.important__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 46%;
  background: url("/assets/img/imp_med.png") right center / cover no-repeat;
  pointer-events: none;
}

/* растворение картинки в фон слева направо */
.important__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--bg) 0%,
    rgba(242, 237, 230, 0) 45%);
}

.important__inner {
  position: relative;
  z-index: 1;
}

.important__lead {
  font-size: 14px;
  line-height: 1.6;
  color: #2b2825;
  max-width: 660px;
  margin-bottom: 18px;
}

.important--med .important__text {
  max-width: 660px;
}
/* ============================================
   CASE (medical.php)
============================================ */
.med-case {
  padding: 0 var(--side-pad) 80px;
}
.med-case__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 32px;
}
.med-case__title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}

/* панель: картинка слева во всю высоту, контент справа */
.med-case__panel {
  display: grid;
  grid-template-columns: clamp(240px, 30%, 320px) minmax(0, 1fr);
  border: 1px solid var(--line);
  background: #fdfbf9;
  overflow: hidden;
}
.med-case__media {
  background: url("/assets/img/med_case.png") center / cover no-repeat;
}
.med-case__content {
  padding: 36px 40px;
}
.med-case__head {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(20px, 1.6vw + 8px, 26px);
  line-height: 1.3;
  color: #201d1a;
  margin-bottom: 16px;
}
.med-case__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 28px;
}

/* показатели с вертикальными разделителями */
.med-case__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.med-case__stat + .med-case__stat {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.med-case__value {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: #201d1a;
  margin-bottom: 8px;
}
.med-case__caption {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

/* ============================================
PRICES (medical.php)
============================================ */
.prices-med {
  padding: 0 var(--side-pad) 80px;
}

.prices-med__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 32px;
}

.prices-med__title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.prices-med__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.price-med {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fdfbf9;
  transition: border-color .25s;
  height: 100%;
}

.price-med:hover {
  border-color: var(--accent);
}

/* Ссылка растягивается на всю карточку */
.price-med a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.price-med__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  margin-bottom: 24px;
}

.price-med__icon {
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  color: var(--accent);
}

.price-med__name {
  font-size: 12.5px;
  line-height: 1.45;
  color: #2b2825;
  margin: 0;
}

.price-med__note {
  font-size: 11px;
  color: var(--text);
  margin-bottom: 6px;
  margin-top: auto;
}

.price-med__value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 22px;
}

.price-med__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.price-med__link svg {
  width: 16px;
  height: 16px;
  transition: transform .25s;
}

.price-med__link:hover svg {
  transform: translateX(4px);
}
/* ============================================
CTA (medical.php)
============================================ */
.cta-med {
  padding: 0 var(--side-pad) 80px;
}
.cta-med__panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 40px 48px;
  display: grid;
  /* 1-я колонка — воздух под картинку, 2-я — текст, 3-я — кнопки */
  grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.cta-med__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 32%;
  background: url("/assets/img/med_fos.png") left center / cover no-repeat;
  pointer-events: none;
}
.cta-med__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(242, 237, 230, 0) 45%,
    rgba(242, 237, 230, .7) 75%,
    var(--bg) 100%);
}
.cta-med__info {
  grid-column: 2;
  position: relative;
  z-index: 1;
  justify-self: center;
}
.cta-med__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw + 10px, 30px);
  line-height: 1.3;
  color: #201d1a;
  max-width: 480px;
  margin-bottom: 14px;
}
.cta-med__title::after {
  content: "";
  flex-shrink: 0;
  width: 48px;
  height: 1px;
  background: var(--accent);
}
.cta-med__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  max-width: 380px;
}
.cta-med__actions {
  grid-column: 2;
  position: relative;
  z-index: 1;}

.cta-med__actions {
    grid-column: 2;
    position: relative;
    z-index: 1;
    display: flex;
    gap: 25px;
    align-items: end;
}
.cta-med__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}
.cta-med__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text);
}
.cta-med__note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}
/* ============================================
HERO_BUS (business_support.php)
============================================ */
.hero__media_med {
    background: url(/assets/img/hero_bus.png) 84% center / cover no-repeat;
}
.hero__actions__bus {
    flex-wrap:nowrap;
}
/* ============================================
   HERO (prices.php)
   ============================================ */
/*.hero--prices {
  --pad-t: 156px;
  --pad-b: 250px;
}*/
.hero--prices {
    --pad-t: 156px;
    --pad-b: 250px;
    grid-template-areas:
        "crumbs   media"
        "head     media"
        "text     media"
        "actions  media"
        "features media";
}
/* крошки в первой строке слева, как на about.php */
.hero--prices .about-hero__breadcrumbs {
    grid-area: crumbs;
    align-self: start;
    margin-bottom: 44px;
}
.hero--prices .hero__title {
  max-width: 560px;
}
.hero--prices .hero__text {
  margin-bottom: 0;
}

/* ============================================
   PRICE BLOCKS (cost.php) — Консультации / Ведение дел
   ============================================ */
.price-block {
  padding: 0 var(--side-pad);
}
.top-p{
    padding-top:72px;
}

.price-block__head {
  margin-bottom: 24px;
}
.price-block__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 10px;
}
.price-block__subtitle {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.price-block__panel {
  border: 1px solid var(--line);
  background: #fdfbf9;
  padding: 6px 32px;
}
.price-block__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
  gap: 24px;
  align-items: center;
  padding: 15px 0;
}
.price-block__row + .price-block__row {
  border-top: 1px solid var(--line);
}
.price-block__name {
  font-size: 13.5px;
  color: #3c3833;
}
/* цена + вертикальный разделитель, как в макете */
.price-block__value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(17px, 1.2vw + 10px, 21px);
  color: var(--accent);
  text-align: right;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

/* ============================================
   PLANS (cost.php) — абонентское обслуживание
   ============================================ */
.plans {
  padding: 0 var(--side-pad) 64px;
  padding-top:72px;
}
.plans__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2vw + 12px, 32px);
  color: #201d1a;
  margin-bottom: 28px;
}

.plans__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: stretch;
    justify-self: center;
    width:70%;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: #fdfbf9;
  padding: 28px 24px 24px;
  transition: border-color .25s;
}
.plan:hover {
  border-color: var(--accent);
}
/* популярный тариф — акцентная рамка + бейдж в углу */
.plan--popular {
  border-color: var(--accent);
}
.plan__badge {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 6px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}
.plan__name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 20px;
  color: #201d1a;
  margin-bottom: 12px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}
.plan__value {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--accent);
}
.plan__period {
  font-size: 12px;
  color: var(--text);
}
.plan__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4b4741;
  margin-bottom: 28px;
}
/* кнопки прижимаем к низу — карточки одинаковой высоты */
.plan__btn {
  margin-top: auto;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  font-size: 12.5px;
}
.disclaimer{
  margin-top:25px;
}
.title-disclaimer{
  font-family: "Playfair Display", Georgia, serif;
  color:var(--accent-dk);
  font-size:clamp(24px, 2vw + 12px, 32px);
  display:flex;
  align-items:center;
  gap:15px;

}
.title-disclaimer::after {
    content: "";
    width: 48px;
    height: 1px;
    background: var(--accent);
}
/* ============================================
   FAQ (cost.php) — модификатор «панель со строками»
   ============================================ */
.faq--prices {
  padding: 0 var(--side-pad) 56px;
}
/* в макете у заголовка нет декоративной полоски */
.faq--prices .faq__title {
  margin-bottom: 24px;
}
.faq--prices .faq__title::after {
  display: none;
}
/* единая панель вместо отдельных карточек */
.faq--prices .faq__panel {
  border: 1px solid var(--line);
  background: #fdfbf9;
  padding: 4px 28px;
}
.faq--prices .faq__item {
  border: 0;
  background: transparent;
}
.faq--prices .faq__item + .faq__item {
  border-top: 1px solid var(--line);
}
.faq--prices .faq__btn {
  padding: 16px 0;
  font-weight: 400;
  font-size: 13px;
}
.faq--prices .faq__answer {
  padding: 0 48px 16px 0;
  max-width: 860px;
}

/* ============================================
   CTA (cost.php) — финальная секция с колоннами
   ============================================ */
.cta-cost {
  padding: 0 var(--side-pad) 80px;
}
.cta-cost__panel {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 40px calc(24% + 32px) 40px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
/* слой 0: картинка под всем контентом */
.cta-cost__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/img/price_fos.png") right 50% / auto 200% no-repeat;
  pointer-events: none;
}
.cta-cost__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right,
      var(--bg) 0%,
      rgba(242, 237, 230, .85) 45%,
      rgba(242, 237, 230, .55) 75%,
      rgba(242, 237, 230, .4) 100%),
    url("/assets/img/price_fos.png");
  background-position: left top, right 60%;
  background-size: auto, auto 200%;
  background-repeat: no-repeat;
  pointer-events: none;
}
/* слой 2: заголовок и кнопки поверх маски */
.cta-cost__title,
.cta-cost__actions {
  position: relative;
  z-index: 2;
}
.cta-cost__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(22px, 1.8vw + 10px, 30px);
  line-height: 1.35;
  color: #201d1a;
}
.cta-cost__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-cost__actions .btn {
  width: 300px;
  height: 48px;
  padding: 0 24px;
  font-size: 13px;
  white-space: nowrap;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 32px 0 28px;
    border-top: 1px solid rgba(221, 210, 196, 0.7);
    color: #6a6055;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 20px;
    align-items: start;
}
.footer .brandmark {
    font-size: 46px; /*34px*/
}
.footer .brandtext {
    font-size: 10px;
}
.muted {
    color: #73685c;
}
.footer .footer-links a {
    cursor: pointer;
    text-decoration: none;
    color: #73685c;
    transition: color 0.2s;
}
.footer .footer-links a:hover {
    color: #b08a5a;
}
.copy {
    margin-top: 24px;
    font-size: 12px;
    color: #a09589;
    border-top: 1px solid rgba(221, 210, 196, 0.5);
    padding-top: 18px;
    text-align: center;
}

.btn_dzen {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    padding-right: 20px;
}
.zen-official-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 230px;
    gap: 12px;
    padding: 8px 16px 8px 12px;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: "Inter", sans-serif;
    margin-top: 16px;
}
.zen-official-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(168, 134, 92, 0.15);
    transform: translateY(-1px);
}
.zen-btn__content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.zen-btn__logo {
    width: 20px;
    height: 20px;
    color: #000;
    flex-shrink: 0;
}
.zen-btn__text {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1;
}

.error {
    text-align: center;
    margin-top: 50px;
    font-size: 32px;
}
/* ============================================
404 PAGE
============================================ */
.notfound {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 72px var(--side-pad) 96px;
    background: var(--bg);
}

/* водяной знак § на фоне */
.notfound::before {
    content: "§";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(320px, 46vw, 620px);
    line-height: 1;
    color: rgba(168, 134, 92, .07);
    pointer-events: none;
    user-select: none;
}

.notfound__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 580px;
}

.notfound__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.notfound__code {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(84px, 11vw, 150px);
    line-height: 1;
    color: #201d1a;
    margin-bottom: 22px;
}

.notfound__par {
    color: var(--accent);
    padding: 0 6px;
}

.notfound__title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    font-size: clamp(24px, 2.2vw + 10px, 34px);
    color: #201d1a;
    margin-bottom: 16px;
}

.notfound__text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 34px;
}

.notfound__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.case a{
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.dzen-subscribe-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 24px;
        background: #000000;
        color: #FFFFFF;
        font-size: 18px;
        font-weight: 600;
        font-family: "Playfair Display", Georgia, serif;
        border: none;
        border-radius: 24px;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.2s ease, transform 0.1s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        line-height: 1;
    }

    .dzen-subscribe-btn:hover {
        background: #222222;
        transform: scale(1.02);
    }

    .dzen-subscribe-btn:active {
        transform: scale(0.97);
    }
