/* =========================================================================
   Внутрішні сторінки (.ric-page) — напр. «Послуги». Єдиний стиль з магазином.
   Грузиться на шаблоні page-service.php. Токени (--ric-orange) — з chrome.css.
   ========================================================================= */

.ric-page { font-family: 'Open Sans', Helvetica, sans-serif; color: #333; }
.ric-page__container { max-width: 1200px; margin: 0 auto; padding: 0 20px 50px; }

/* ---- Темна шапка ---- */
.ric-page__head {
    position: relative;
    overflow: hidden;
    padding: 48px 0 44px;
    margin-bottom: 8px;
    text-align: center;
    background: radial-gradient(120% 150% at 50% 0%, #34363b 0%, #1f2024 72%);
}
.ric-page__head::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.ric-page__head::after {
    content: ""; position: absolute; top: -55%; left: 50%; transform: translateX(-50%);
    width: 680px; height: 420px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(243,124,34,.20), transparent 72%);
}
.ric-page__head > * { position: relative; z-index: 1; }
.ric-page__crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ric-page__crumbs a { color: rgba(255,255,255,.55); text-decoration: none; }
.ric-page__crumbs a:hover { color: var(--ric-orange); }
.ric-page__crumbs .ric-sep { color: rgba(255,255,255,.3); }
.ric-page__crumbs .ric-current { color: rgba(255,255,255,.85); }
.ric-page__title { margin: 0 0 14px; color: #fff; font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.ric-page__title::after { content: ""; display: block; width: 60px; height: 3px; margin: 16px auto 0; background: var(--ric-orange); border-radius: 2px; }
.ric-page__subtitle { max-width: 760px; margin: 0 auto; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; }

/* ---- Картки під-послуг ---- */
.ric-page__services { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 36px 0; }
.ric-svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e6e7; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.ric-svc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.ric-svc-card__media { aspect-ratio: 16 / 10; background: #f2f3f5; overflow: hidden; }
.ric-svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ric-svc-card:hover .ric-svc-card__media img { transform: scale(1.05); }
.ric-svc-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 38px; color: var(--ric-orange); background: #fff3e9; }
.ric-svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 22px; }
.ric-svc-card__name { margin-bottom: 14px; font-size: 19px; font-weight: 700; color: #1f2024; line-height: 1.3; }
.ric-svc-card__link { margin-top: auto; color: var(--ric-orange); font-weight: 700; font-size: 14px; }
.ric-svc-card__link i { font-size: 12px; transition: transform .2s ease; }
.ric-svc-card:hover .ric-svc-card__link i { transform: translateX(4px); }

/* ---- Контент сторінки ---- */
.ric-page__content { max-width: 900px; margin: 32px auto 0; color: #444; font-size: 16px; line-height: 1.75; }
.ric-page__content h2 { margin: 34px 0 14px; color: #1f2024; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.ric-page__content h3 { margin: 26px 0 12px; color: #1f2024; font-size: 21px; font-weight: 700; }
.ric-page__content p { margin: 0 0 16px; }
.ric-page__content ul, .ric-page__content ol { margin: 0 0 16px; padding-left: 24px; }
.ric-page__content li { margin-bottom: 8px; }
.ric-page__content img { max-width: 100%; height: auto; border-radius: 10px; }
.ric-page__content a { color: var(--ric-orange); }
.ric-page__content blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 4px solid var(--ric-orange); background: #faf9f7; }
.ric-page__content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.ric-page__content th, .ric-page__content td { padding: 10px 14px; border: 1px solid #ececec; text-align: left; font-size: 14px; }
.ric-page__content th { background: #f7f7f7; font-weight: 700; }

/* ---- Пігулки під-навігації в шапці ---- */
.ric-page__subnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.ric-page__pill { display: inline-flex; padding: 9px 18px; border-radius: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.82); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.ric-page__pill:hover { border-color: var(--ric-orange); color: #fff; }
.ric-page__pill.is-active { background: var(--ric-orange); border-color: var(--ric-orange); color: #fff; }

/* ---- Кнопки ---- */
.ric-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.ric-btn--primary { background: var(--ric-orange); color: #fff; }
.ric-btn--primary:hover { background: var(--ric-orange-dark); transform: translateY(-2px); }
.ric-btn--ghost-dark { background: #fff; color: #1f2024; border: 1px solid #d9dadc; }
.ric-btn--ghost-dark:hover { border-color: var(--ric-orange); color: var(--ric-orange); }

/* ---- Контакти: офіси + карта ---- */
.ric-offices { display: flex; flex-direction: column; gap: 24px; margin: 36px 0; }
.ric-office { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid #e6e6e7; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.ric-office__info { padding: 26px 28px; }
.ric-office__name { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--ric-orange); }
.ric-office__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ric-office__list li { display: flex; gap: 12px; font-size: 15px; color: #444; line-height: 1.5; }
.ric-office__list i { flex: 0 0 18px; margin-top: 3px; color: var(--ric-orange); text-align: center; }
.ric-office__list a { color: #444; text-decoration: none; }
.ric-office__list a:hover { color: var(--ric-orange); }
.ric-office__photo { margin-top: 18px; border-radius: 12px; overflow: hidden; }
.ric-office__photo img { width: 100%; height: auto; display: block; }
.ric-office__map { min-height: 280px; background: #eef0f2; }
.ric-office__map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* ---- Файли / інструкції (нативний accordion) ---- */
.ric-files { margin: 36px 0; display: flex; flex-direction: column; gap: 12px; }
.ric-files__group { background: #fff; border: 1px solid #e6e6e7; border-radius: 12px; overflow: hidden; }
.ric-files__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: #1f2024; }
.ric-files__summary::-webkit-details-marker { display: none; }
.ric-files__arrow { flex: 0 0 auto; color: var(--ric-orange); transition: transform .25s ease; }
.ric-files__group[open] .ric-files__arrow { transform: rotate(180deg); }
.ric-files__list { list-style: none; margin: 0; padding: 0 22px 14px; }
.ric-files__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #f0f0f0; }
.ric-files__name { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #333; }
.ric-files__name i { color: #b9bcc1; }
.ric-files__dl { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; background: #fff3e9; color: var(--ric-orange); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.ric-files__dl:hover { background: var(--ric-orange); color: #fff; }

/* ---- Сторінка з формою (CF7) ---- */
.ric-page__formcard { max-width: 720px; margin: 36px auto; padding: 30px; background: #fff; border: 1px solid #e6e6e7; border-radius: 16px; box-shadow: 0 8px 26px rgba(0,0,0,.05); }
.ric-page__formcard .ric-page__content { margin-top: 0; max-width: none; }
.ric-page--form .wpcf7-form p { margin: 0 0 16px; }
.ric-page--form label { display: block; font-weight: 600; color: #333; margin-bottom: 6px; font-size: 14px; }
.ric-page--form input[type="text"], .ric-page--form input[type="email"], .ric-page--form input[type="tel"], .ric-page--form input[type="url"], .ric-page--form input[type="number"], .ric-page--form input[type="date"], .ric-page--form select, .ric-page--form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d9dadc; border-radius: 9px; font-size: 15px; font-family: inherit; background: #fff; }
.ric-page--form input:focus, .ric-page--form select:focus, .ric-page--form textarea:focus { outline: none; border-color: var(--ric-orange); box-shadow: 0 0 0 3px rgba(243,124,34,.12); }
.ric-page--form textarea { min-height: 130px; resize: vertical; }
.ric-page--form .wpcf7-submit { width: auto; padding: 13px 30px; border: 0; border-radius: 9px; background: var(--ric-orange); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .2s ease; }
.ric-page--form .wpcf7-submit:hover { background: var(--ric-orange-dark); }

/* ---- Тарифи (page-start) ---- */
.ric-tariff { margin: 30px 0; }
.ric-page__content .tarifs-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e6e6e7; border-radius: 12px; overflow: hidden; margin: 0; }
.ric-page__content .tarifs-table th, .ric-page__content .tarifs-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; vertical-align: middle; }
.ric-page__content .tarifs-table thead th { background: #1f2024; color: #fff; font-weight: 700; }
.ric-page__content .tarifs-table thead th.label { background: #2a2c31; }
.ric-page__content .tarifs-table td.label { background: #f7f8fa; font-weight: 700; color: #333; }
.ric-page__content .tarifs-table .photo-cell img { max-width: 90px; height: auto; border-radius: 6px; }
.tarifs-mobile { display: flex; flex-direction: column; gap: 18px; }
.tarif-item { border: 1px solid #e6e6e7; border-radius: 12px; overflow: hidden; }
.tarif-title { background: var(--ric-orange); color: #fff; font-weight: 700; padding: 12px 16px; }
.tarif-item .tarif-cell { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid #f0f0f0; font-size: 14px; }
.tarif-item .cell-label { color: #888; }
.tarif-item .cell-inner { font-weight: 600; text-align: right; }
.tarif-item .cell-inner p { margin: 0; }
.tarif-item .photo-cell { justify-content: center; }
.tarif-item .photo-cell img { max-width: 140px; height: auto; border-radius: 6px; }
.ric-tariff__contains { margin: 30px 0; padding: 24px 26px; background: #f7f8fa; border-radius: 14px; }
.ric-tariff__contains h2 { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: #1f2024; }
.ric-tariff__contains ul { margin: 0; padding-left: 22px; }
.ric-tariff__contains li { margin-bottom: 8px; }
.ric-pdf-box { display: inline-flex; align-items: center; gap: 14px; margin: 10px 0 20px; padding: 16px 22px; background: #fff; border: 1px solid #e6e6e7; border-radius: 12px; text-decoration: none; color: #1f2024; transition: border-color .2s ease, box-shadow .2s ease; }
.ric-pdf-box:hover { border-color: var(--ric-orange); box-shadow: 0 10px 26px rgba(0,0,0,.07); }
.ric-pdf-box__icon { font-size: 28px; color: #e0382e; }
.ric-pdf-box__text { font-weight: 700; font-size: 15px; display: flex; flex-direction: column; }
.ric-pdf-box__text small { font-weight: 400; color: #999; font-size: 12px; }
.ric-pdf-box__dl { margin-left: 6px; color: var(--ric-orange); }

/* ---- 404 ---- */
.ric-page--404 .ric-page__container { padding-top: 50px; }
.ric-404 { max-width: 620px; margin: 30px auto 60px; text-align: center; }
.ric-404__code { font-size: clamp(90px, 22vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--ric-orange), #ffb274); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ric-404__title { margin: 6px 0 12px; font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: #1f2024; }
.ric-404__text { color: #666; font-size: 16px; margin: 0 0 26px; }
.ric-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.ric-404__search { max-width: 420px; margin: 0 auto; }
.ric-404__search .search-bar { display: flex; gap: 8px; }
.ric-404__search .input-group { order: 1; flex: 1 1 auto; }
.ric-404__search input[type="search"] { width: 100%; height: 46px; padding: 0 16px; border: 1px solid #d9dadc; border-radius: 8px; font-size: 15px; }
.ric-404__search input[type="search"]:focus { outline: none; border-color: var(--ric-orange); }
.ric-404__search .submit-search { order: 2; flex: 0 0 auto; width: 52px; height: 46px; border: 0; border-radius: 8px; background: var(--ric-orange); color: #fff; font-size: 16px; cursor: pointer; transition: background-color .2s ease; }
.ric-404__search .submit-search:hover { background: var(--ric-orange-dark); }

/* ---- Адаптив ---- */
@media (min-width: 600px) {
    .ric-page__head { padding: 64px 0 56px; }
    .ric-page__services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .ric-office { grid-template-columns: 1fr 1fr; }
    .ric-office__photo { margin-top: 20px; }
}
@media (min-width: 992px) {
    .ric-page__services { grid-template-columns: repeat(3, 1fr); }
}
