/*
Theme Name: ОмскСертификация — восстановление
Theme URI: https://omskcert.ru/
Description: Адаптивная тема восстановления на основе визуальных активов Carrera.
Version: 1.0.0
Text Domain: omskcert-recovery
*/

:root {
    --ink: #27434b;
    --ink-soft: #587178;
    --teal-900: #2f7777;
    --teal-700: #4f9b98;
    --teal-500: #77c5bd;
    --teal-100: #e7f5f4;
    --coral-700: #ca6258;
    --coral-500: #e67b70;
    --coral-100: #fff0ed;
    --paper: #ffffff;
    --mist: #f4f8f8;
    --line: #d4e4e4;
    --shadow: 0 18px 44px rgba(34, 74, 78, .12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --frame: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--mist);
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--teal-900);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--coral-700);
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-frame {
    width: min(calc(100% - 40px), var(--frame));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.utility-bar {
    background: var(--teal-700);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    gap: 16px;
}

.utility-bar a {
    color: #fff;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 0 24px;
}

.site-brand {
    display: block;
    width: 310px;
    max-width: 60%;
}

.site-brand img {
    width: 100%;
}

.office-summary {
    display: grid;
    justify-items: end;
    line-height: 1.2;
}

.office-summary__eyebrow,
.eyebrow {
    margin: 0 0 8px;
    color: var(--coral-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.office-summary__phone {
    color: var(--ink);
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
}

.office-summary__email {
    margin-top: 6px;
    color: var(--teal-900);
    font-size: 14px;
}

.navigation-shell {
    border-top: 1px solid var(--line);
    background: #fbfdfd;
}

.main-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.site-menu {
    display: flex;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu li {
    margin: 0;
}

.site-menu a {
    display: block;
    padding: 15px 22px;
    border-bottom: 3px solid transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.site-menu a:hover,
.site-menu a:focus,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a {
    border-bottom-color: var(--coral-500);
    background: var(--coral-100);
    color: var(--coral-700);
}

.hero-section {
    overflow: hidden;
    padding: 74px 0;
    background:
        radial-gradient(circle at 86% 12%, rgba(230, 123, 112, .45) 0 10%, transparent 10.2%),
        radial-gradient(circle at 76% 76%, rgba(119, 197, 189, .58) 0 18%, transparent 18.2%),
        linear-gradient(120deg, #25565c 0%, #3f8584 62%, #64a9a4 100%);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: clamp(36px, 7vw, 90px);
}

.hero-section .eyebrow,
.contact-band .eyebrow {
    color: #ffd1ca;
}

.hero-copy h1,
.page-header h1,
.single-article h1,
.archive-hero h1,
.not-found-card h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.hero-lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

.button--accent {
    background: var(--coral-500);
    color: #fff;
}

.button--accent:hover,
.button--accent:focus {
    background: var(--coral-700);
    color: #fff;
}

.button--ghost {
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
}

.button--ghost:hover,
.button--ghost:focus {
    background: #fff;
    color: var(--teal-900);
}

.button--dark {
    background: var(--ink);
    color: #fff;
}

.button--dark:hover,
.button--dark:focus {
    background: var(--teal-900);
    color: #fff;
}

.button--light {
    background: #fff;
    color: var(--teal-900);
}

.button--light:hover,
.button--light:focus {
    background: var(--coral-100);
    color: var(--coral-700);
}

.hero-note {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: var(--radius-lg);
    background: rgba(20, 60, 64, .34);
    box-shadow: 0 20px 50px rgba(15, 50, 52, .18);
    backdrop-filter: blur(8px);
}

.hero-note__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
}

.route-list {
    display: grid;
    gap: 16px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.route-list li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 15px;
    line-height: 1.35;
}

.route-list span {
    color: #ffd1ca;
    font-size: 12px;
    font-weight: 800;
}

.hero-note .text-link {
    color: #fff;
}

.section {
    padding: 80px 0;
}

.section--services {
    background: var(--paper);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
    gap: 34px;
    align-items: end;
    margin-bottom: 30px;
}

.section-heading h2,
.insights-copy h2,
.contact-band h2,
.page-contact-card h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.section-heading > p,
.insights-copy > p {
    max-width: 450px;
    margin: 0;
    color: var(--ink-soft);
}

.section-heading__aside .text-link {
    margin-top: 12px;
}

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

.service-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #fff 0%, #f7fbfb 100%);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.service-card::after {
    position: absolute;
    right: -22px;
    bottom: -38px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: var(--teal-100);
    content: '';
    transition: background-color .18s ease, transform .18s ease;
}

.service-card:hover,
.service-card:focus {
    border-color: var(--teal-500);
    box-shadow: var(--shadow);
    color: var(--ink);
    transform: translateY(-4px);
}

.service-card:hover::after,
.service-card:focus::after {
    background: var(--coral-100);
    transform: scale(1.15);
}

.service-card__mark,
.service-card__title,
.service-card__text {
    position: relative;
    z-index: 1;
}

.service-card__mark {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: auto;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-900);
    font-size: 19px;
    font-weight: 800;
}

.service-card__title {
    margin-top: 26px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.service-card__text {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.section--insights {
    background: var(--mist);
}

.insights-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(34px, 7vw, 100px);
    align-items: start;
}

.insights-copy {
    position: sticky;
    top: 24px;
}

.insights-copy > p {
    margin-top: 20px;
    margin-bottom: 28px;
}

.latest-articles,
.article-list {
    display: grid;
    gap: 14px;
}

.article-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    transition: box-shadow .18s ease, transform .18s ease;
}

.article-card:hover {
    box-shadow: 0 13px 30px rgba(35, 70, 74, .09);
    transform: translateY(-2px);
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.35;
}

.article-card__meta a {
    color: var(--teal-900);
}

.article-card__title {
    margin: 11px 0 0;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.18;
}

.article-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.article-card__title a:hover,
.article-card__title a:focus {
    color: var(--coral-700);
}

.article-card__excerpt {
    margin: 11px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
}

.text-link {
    display: inline-flex;
    gap: 5px;
    margin-top: 16px;
    color: var(--teal-900);
    font-weight: 800;
}

.empty-panel {
    padding: 28px;
    border: 1px dashed var(--teal-500);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .72);
}

.empty-panel p {
    margin: 0;
}

.contact-band {
    padding: 48px 0;
    background: var(--coral-500);
    color: #fff;
}

.contact-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-band__actions {
    display: grid;
    justify-items: end;
    gap: 9px;
}

.contact-email {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.services-hero,
.contact-hero {
    overflow: hidden;
    padding: 66px 0 60px;
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 240, 237, .62) 0 9%, transparent 9.2%),
        linear-gradient(120deg, #275960 0%, #3d8584 62%, #67aba3 100%);
    color: #fff;
}

.services-hero__grid,
.contact-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(275px, .8fr);
    gap: clamp(34px, 7vw, 100px);
    align-items: center;
}

.services-hero h1,
.contact-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(37px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.services-hero > .site-frame > div > p:not(.eyebrow),
.contact-hero > .site-frame > div > p:not(.eyebrow) {
    max-width: 690px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .9);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.52;
}

.services-hero .eyebrow,
.contact-hero .eyebrow {
    color: #ffd1ca;
}

.services-hero__note,
.contact-hero__aside {
    padding: 29px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: var(--radius-lg);
    background: rgba(19, 67, 71, .35);
    box-shadow: 0 20px 50px rgba(15, 50, 52, .15);
    backdrop-filter: blur(8px);
}

.services-hero__note > p {
    margin: 0 0 17px;
    font-size: 18px;
    font-weight: 800;
}

.services-hero__note ol {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-hero__note li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    align-items: start;
    font-size: 15px;
    line-height: 1.38;
}

.services-hero__note li span {
    color: #ffd1ca;
    font-size: 12px;
    font-weight: 800;
}

.services-catalog-section,
.contact-directory {
    padding: 80px 0 88px;
    background: var(--mist);
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, .56fr);
    gap: 32px;
    align-items: end;
    margin-bottom: 32px;
}

.catalog-toolbar h2,
.contact-directory h2,
.contact-guide h2 {
    margin: 0;
    font-size: clamp(29px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.catalog-search {
    position: relative;
}

.catalog-search label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.catalog-search input {
    width: 100%;
    min-height: 50px;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(39, 67, 75, .05);
}

.catalog-search input:focus {
    border-color: var(--teal-700);
    box-shadow: 0 0 0 4px rgba(79, 155, 152, .17);
}

.catalog-search::after {
    position: absolute;
    right: 15px;
    bottom: 14px;
    color: var(--teal-900);
    font-size: 18px;
    content: '⌕';
}

.catalog-search__status {
    min-height: 1.3em;
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.service-groups {
    display: grid;
    gap: 18px;
}

.service-group {
    display: grid;
    grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr);
    gap: clamp(26px, 5vw, 70px);
    padding: clamp(25px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 70, 74, .05);
}

.service-group__header {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    align-content: start;
}

.service-group__number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--coral-100);
    color: var(--coral-700);
    font-size: 12px;
    font-weight: 800;
}

.service-group__header h2 {
    margin: 3px 0 0;
    font-size: clamp(20px, 2.3vw, 27px);
    line-height: 1.16;
}

.service-group__header p {
    margin: 13px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.45;
}

.service-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.catalog-service-card {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: #f8fbfb;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.catalog-service-card:hover,
.catalog-service-card:focus-within {
    border-color: var(--teal-500);
    background: var(--teal-100);
    transform: translateY(-2px);
}

.catalog-service-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
}

.catalog-service-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.catalog-service-card h3 a:hover,
.catalog-service-card h3 a:focus {
    color: var(--coral-700);
}

.catalog-service-card__link {
    display: inline-flex;
    gap: 5px;
    margin-top: 16px;
    color: var(--teal-900);
    font-size: 13px;
    font-weight: 800;
}

.catalog-empty {
    margin-top: 22px;
    padding: 26px;
    border: 1px dashed var(--teal-500);
    border-radius: var(--radius-md);
    background: #fff;
}

.catalog-empty p {
    margin: 0 0 8px;
    font-weight: 800;
}

.contact-hero__aside {
    display: grid;
    gap: 10px;
}

.contact-hero__aside span {
    color: #ffd1ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-hero__aside a:first-of-type {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    text-decoration: none;
}

.contact-hero__aside a:last-of-type {
    color: rgba(255, 255, 255, .9);
}

.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 31px;
}

.contact-card {
    display: grid;
    gap: 8px;
    min-height: 165px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.contact-card__city {
    margin-bottom: auto;
    color: var(--coral-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-card a:first-of-type {
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.contact-card a:last-of-type {
    font-size: 14px;
}

.contact-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 42px;
    padding: clamp(25px, 4vw, 42px);
    border-radius: var(--radius-lg);
    background: var(--teal-100);
}

.contact-guide h2 {
    max-width: 620px;
    font-size: clamp(25px, 3vw, 37px);
}

.contact-guide > div > p:not(.eyebrow) {
    max-width: 660px;
    margin: 13px 0 0;
    color: var(--ink-soft);
}

.contact-extra {
    max-width: 790px;
    margin-top: 45px;
}

.page-shell,
.article-shell,
.archive-shell,
.not-found-shell {
    padding: 52px 0 86px;
}

.content-page,
.single-article {
    padding: clamp(26px, 5vw, 64px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: 0 16px 38px rgba(35, 70, 74, .07);
}

.page-header,
.single-article__header {
    max-width: 900px;
    margin-bottom: 35px;
}

.page-header h1,
.single-article h1 {
    font-size: clamp(33px, 4vw, 54px);
}

.entry-content {
    overflow-wrap: break-word;
}

.content-page__body,
.single-article__content {
    max-width: 790px;
    color: #354f55;
    font-size: 17px;
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.7em 0 .65em;
    color: var(--ink);
    line-height: 1.18;
}

.entry-content h2 {
    font-size: clamp(25px, 3vw, 34px);
}

.entry-content h3 {
    font-size: clamp(21px, 2.4vw, 27px);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table {
    margin: 0 0 1.15em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.entry-content li + li {
    margin-top: .35em;
}

.entry-content blockquote {
    padding: 18px 22px;
    border-left: 4px solid var(--coral-500);
    border-radius: 0 12px 12px 0;
    background: var(--coral-100);
    color: var(--ink);
    font-weight: 700;
}

.entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.entry-content th,
.entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.entry-content th {
    background: var(--teal-100);
}

.entry-content img {
    margin: 22px 0;
    border-radius: 12px;
}

.page-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 52px;
    padding: 26px;
    border-radius: var(--radius-md);
    background: var(--teal-100);
}

.page-contact-card .eyebrow {
    margin-bottom: 6px;
}

.page-contact-card h2 {
    font-size: clamp(22px, 2.5vw, 32px);
}

.single-article__lead {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1.5;
}

.single-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: clamp(30px, 6vw, 80px);
    align-items: start;
}

.article-aside {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 9px;
    padding: 20px;
    border-top: 3px solid var(--coral-500);
    background: var(--mist);
    font-size: 14px;
}

.article-aside__title {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.article-aside ul {
    display: grid;
    gap: 7px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.post-navigation span:last-child {
    margin-left: auto;
    text-align: right;
}

.back-link {
    display: inline-flex;
    margin-bottom: 19px;
    color: var(--teal-900);
    font-size: 14px;
    font-weight: 800;
}

.archive-hero {
    padding: 46px 0 42px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, var(--teal-100) 0%, #fff 70%);
}

.archive-hero h1 {
    max-width: 850px;
    font-size: clamp(33px, 4vw, 55px);
}

.archive-hero > .site-frame > p:not(.eyebrow) {
    max-width: 650px;
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.archive-description {
    max-width: 700px;
    margin-top: 14px;
    color: var(--ink-soft);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.category-pill {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.category-pill:hover,
.category-pill:focus,
.category-pill.is-active {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.archive-content {
    padding-top: 38px;
}

.pagination {
    margin-top: 30px;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination .current {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.pagination .current {
    border-color: var(--teal-700);
    background: var(--teal-700);
    color: #fff;
}

.not-found-card {
    max-width: 760px;
    padding: clamp(30px, 6vw, 70px);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.not-found-card > p:not(.eyebrow) {
    max-width: 530px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.site-footer {
    padding-top: 52px;
    background: #244c54;
    color: rgba(255, 255, 255, .8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .75fr .9fr;
    gap: 42px;
    padding-bottom: 38px;
}

.footer-brand__name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}

.footer-brand p {
    max-width: 400px;
    margin: 13px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

.footer-title {
    margin: 0 0 10px;
    color: #a7d8d4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-nav,
.footer-contact {
    display: grid;
    align-content: start;
    gap: 7px;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffd1ca;
}

.footer-contact span {
    margin-top: 3px;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.alignleft {
    float: left;
    margin: 0 22px 16px 0;
}

.alignright {
    float: right;
    margin: 0 0 16px 22px;
}

.aligncenter {
    margin-right: auto;
    margin-left: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 900px) {
    .hero-grid,
    .insights-grid,
    .single-article__layout,
    .services-hero__grid,
    .contact-hero__grid,
    .catalog-toolbar,
    .service-group {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insights-copy,
    .article-aside {
        position: static;
    }

    .article-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-aside ul {
        grid-column: 1 / -1;
    }

    .contact-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-frame {
        width: min(calc(100% - 28px), var(--frame));
    }

    .utility-bar__inner,
    .brand-row,
    .contact-band__inner,
    .page-contact-card,
    .footer-bottom,
    .contact-guide {
        align-items: flex-start;
        flex-direction: column;
    }

    .utility-bar__inner {
        justify-content: center;
        padding: 9px 0;
        text-align: center;
    }

    .brand-row {
        gap: 18px;
        padding: 20px 0;
    }

    .site-brand {
        width: 290px;
        max-width: 100%;
    }

    .office-summary {
        justify-items: start;
    }

    .office-summary__phone {
        font-size: 19px;
    }

    .site-menu a {
        padding: 13px 15px;
        font-size: 14px;
    }

    .hero-section,
    .section,
    .services-hero,
    .contact-hero,
    .services-catalog-section,
    .contact-directory {
        padding: 52px 0;
    }

    .hero-note {
        padding: 22px;
    }

    .section-heading,
    .service-grid,
    .footer-grid,
    .service-catalog-grid,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 14px;
    }

    .service-card {
        min-height: 180px;
    }

    .page-shell,
    .article-shell,
    .archive-shell,
    .not-found-shell {
        padding: 28px 0 54px;
    }

    .content-page,
    .single-article {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .single-article__lead,
    .content-page__body,
    .single-article__content {
        font-size: 16px;
    }

    .article-aside {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation span:last-child {
        margin-left: 0;
        text-align: left;
    }

    .footer-grid {
        gap: 28px;
    }

    .footer-legal {
        justify-content: flex-start;
    }

    .service-group {
        gap: 22px;
        padding: 24px 20px;
    }

    .catalog-toolbar {
        gap: 20px;
    }
}

@media (max-width: 420px) {
    .hero-actions,
    .hero-actions .button,
    .contact-band__actions,
    .contact-band__actions .button {
        width: 100%;
    }

    .article-card,
    .hero-note {
        padding: 20px;
    }
}
