/* ==========================================================================
   ТІНМЕД — сторінка прайсів
   H1 — назва, H2 — розділи/підрозділи, H3 — послуги.
   Ширина контейнера вивірена під контент сайту (~1160px).
   Акцент — брендовий зелений (--green).
   ========================================================================== */

.pricing { background: var(--white); }
.pricing__inner {
    max-width: var(--container);   /* як хедер/футер сайту */
    margin: 0 auto;
    padding: 72px var(--pad-x) 96px;
}

/* --- шапка --- */
.pricing__head { text-align: center; margin-bottom: 60px; }
.pricing__eyebrow {
    font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--green); font-weight: 700; margin-bottom: 14px;
}
.pricing__title {
    font-size: 42px; font-weight: 700; color: var(--text-strong);
    text-transform: uppercase; letter-spacing: .01em;
}
.pricing__lead { margin-top: 18px; font-size: 20px; color: #6f6f6f;  margin-inline: auto; text-align: center; }

/* --- великий розділ (H2), по центру з зеленим підкресленням (як на головній) --- */
.pricing__section-wrap { margin-top: 90px; }
.pricing__section-wrap:first-of-type { margin-top: 0; }
.pricing__section {
    font-size: 30px; font-weight: 700; color: var(--text-strong);
    text-transform: uppercase; letter-spacing: .01em;
    text-align: center; margin-bottom: 40px;
    padding-bottom: 18px; position: relative;
}


/* --- підрозділ (H2) --- */
.pricing__group { margin-bottom: 30px; }
.pricing__group + .pricing__group { margin-top: 6px; }
.pricing__group-title {
    font-size: 20px; font-weight: 700; color: #ffffff;
    padding: 10px 14px 10px;
    border-left: 4px solid #4c4441;
    line-height: 1.2;
    background-color: #4c4441;
}

/* --- рядок послуги (H3 name + ціна) --- */
.price-list { margin: 0; }
.price-list__item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    padding: 13px 12px;
    transition: background .15s ease;
}
/* зебра: легкий сірий фон через рядок */
.price-list__item:nth-child(even) { background: #f6f6f6; }
.price-list__item:hover { background: #c7c2bc; }
.price-list__name { font-size: 17px; font-weight: 400; line-height: 1.4; color: var(--text); margin: 0; }
.price-list__price { font-size: 17px; font-weight: 700; color: var(--text-strong); }

/* --- футноти + CTA --- */
.pricing__notes {
    margin-top: 44px; padding: 18px 22px;
    background: #f6f6f6; border-left: 4px solid var(--green); border-radius: 2px;
    font-size: 15px; color: #6f6f6f;
}
.pricing__notes p { margin: 0; }
.pricing__notes p + p { margin-top: 8px; }
.pricing__cta { text-align: center; margin-top: 52px; }

@media (max-width: 960px) {
    .pricing__inner { padding: 60px var(--pad-x) 72px; }
}
@media (max-width: 600px) {
    .pricing__inner { padding: 44px var(--pad-x) 60px; }
    .pricing__title { font-size: 30px; }
    .pricing__section { font-size: 22px; margin-bottom: 28px; }
    .pricing__group-title { font-size: 18px; }
    .price-list__item { gap: 8px; }
    .price-list__name{ font-size: 14px; } 
    .price-list__price { font-size: 14px; text-align: right; } 
	.pricing__head { margin-bottom: 0; }
	.pricing-nav {
		padding-top: 30px;
		padding-bottom: 30px;
	}
}

/* ==========================================================================
   САЙДБАР-НАВІГАЦІЯ ПО РОЗДІЛАХ
   ========================================================================== */
.pricing__layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 48px;
    align-items: start;
}
.pricing__content { min-width: 0; }

/* якір: невеликий відступ зверху при переході */
.pricing__section-wrap { scroll-margin-top: 24px; }

.pricing__sidebar { position: sticky; top: 0; }

.pricing-nav {
	padding-top: 64px;
}

.pricing-nav__toggle {
    display: none;   /* лише мобільний */
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: var(--dark);
    color: var(--white);
    font: inherit; font-size: 16px; font-weight: 700;
    border: 0; border-radius: 2px; cursor: pointer;
}
.pricing-nav__toggle svg { transition: transform .25s ease; flex: none; }
.pricing-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.pricing-nav__list {
    margin: 0; padding: 0; list-style: none;
    border-left: 2px solid #4b4441;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.pricing-nav__link {
    display: block;
    padding: 10px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 17px;
    line-height: 1.35;
    color: #6f6f6f;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.pricing-nav__link:hover { color: var(--text-strong); }
.pricing-nav__link.is-active {
    color: #000;
    font-weight: 700;
    border-left-color: #c7c2bc;
    background: #c7c2bc;
}

/* ---------- планшет/мобільний ---------- */
@media (max-width: 960px) {
    .pricing__layout { grid-template-columns: 1fr; gap: 20px; }
    .pricing__sidebar { position: static; top: auto; z-index: 20; }
    .pricing-nav__toggle { display: flex; }
    .pricing-nav__list {
        border-left: 0;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 2px 2px;
        transition: max-height .28s ease;
    }
    .pricing-nav.is-open .pricing-nav__list {
        max-height: 60vh;
        overflow-y: auto;
    }
    .pricing-nav__link { padding: 12px 16px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); }
    .pricing-nav__link:last-child { border-bottom: 0; }
    .pricing-nav__link.is-active { border-left-color: var(--green); }
}
