@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
    --bg: #f7f8fc;
    --card: #ffffff;
    --ink: #161a2b;
    --muted: #5e667f;
    --line: #d7dced;
    --accent: #ff6a3d;
    --accent-2: #2563eb;
    --radius: 16px;
    --radius-soft: 22px 10px 18px 12px;
    --radius-soft-alt: 10px 22px 12px 18px;
    --shadow: 0 10px 30px rgba(20, 28, 60, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 500px at -10% -15%, #dfe6ff 0%, transparent 60%),
        radial-gradient(900px 400px at 120% 20%, #ffe8df 0%, transparent 60%),
        var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1220px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(247, 248, 252, 0.9);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: grid;
    grid-template-columns: 140px 1fr 300px;
    gap: 14px;
    padding: 12px 0 8px;
    align-items: center;
}

.logo-box {
    border-radius: 14px;
    background: #fff;
    color: #fff;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    letter-spacing: .4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    border-radius: inherit;
}

.meta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.meta-box {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--muted);
    padding: 0 12px;
    text-align: center;
}

.meta-box.schedule {
    position: relative;
    cursor: pointer;
    user-select: none;
    justify-content: stretch;
    border: 1px solid #cfd7ef;
    box-shadow: inset 0 0 0 1px #f3f6ff;
}

.meta-box.schedule summary {
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    color: #2e375e;
    min-height: 44px;
    padding: 0 40px 0 38px;
    position: relative;
}

.meta-box.schedule summary::before {
    content: "⏱";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-52%);
    font-size: 16px;
    opacity: .82;
}

.schedule-title {
    font-size: 14px;
}

.schedule-value {
    color: #5f6c97;
    font-size: 13px;
    white-space: nowrap;
}

.meta-box.schedule summary::after {
    content: "▾";
    font-size: 13px;
    transition: transform .2s ease, color .2s ease;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-55%);
    color: #5f6c97;
}

.meta-box.schedule[open] summary::after {
    transform: translateY(-55%) rotate(180deg);
    color: #2f3f72;
}

.meta-box.schedule summary::-webkit-details-marker {
    display: none;
}

.schedule-card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(17, 28, 68, 0.2);
    padding: 12px;
    z-index: 40;
    animation: dropdownIn .2s ease;
}

.schedule-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 7px 0;
    border-bottom: 1px solid #edf1fb;
}

.schedule-card div:last-child {
    border-bottom: 0;
}

.schedule-card .off {
    color: #ff4c44;
}

.meta-box.schedule:hover,
.meta-box.schedule[open] {
    border-color: #b5c3eb;
    background: #fbfcff;
    box-shadow: 0 8px 20px rgba(37, 62, 142, 0.13);
}

.meta-box.schedule:focus-within {
    outline: 2px solid rgba(37, 99, 235, 0.24);
    outline-offset: 2px;
}

.right-group {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.messengers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease;
}

.social-vk {
    background: linear-gradient(135deg, #4c75a3, #3d6898);
}

.social-instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}

.social-telegram {
    background: linear-gradient(135deg, #2aabee, #1c91d0);
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(20, 38, 92, 0.22);
}

.phone-box {
    min-width: 225px;
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    text-align: center;
    font-weight: 600;
    color: #1f284f;
}

.callback-link {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    color: var(--accent-2);
}

.lead-modal {
    width: min(520px, 92vw);
    border: 1px solid #d5ddf4;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 20px 50px rgba(17, 28, 68, 0.25);
}

.lead-modal::backdrop {
    background: rgba(11, 17, 36, 0.45);
    backdrop-filter: blur(2px);
}

.lead-modal h3 {
    margin: 0 0 6px;
    font-family: "Manrope", sans-serif;
    font-size: 28px;
}

.lead-modal p {
    margin: 0 0 12px;
    color: #5b6584;
}

.lead-modal-close-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.lead-modal-close {
    border: 1px solid #dbe2f3;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    background: #fff;
    cursor: pointer;
}

.lead-inline-form {
    display: grid;
    gap: 10px;
}

.menu-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 10px;
    padding-bottom: 12px;
}

.menu-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 8px 12px;
    box-shadow: var(--shadow);
}

.menu-box a {
    font-size: 14px;
    color: #2a3355;
    position: relative;
    padding-bottom: 3px;
    transition: color .2s ease;
}

.menu-box a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #ff996b);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.menu-box a:hover {
    color: var(--accent);
}

.menu-box a:hover::after {
    transform: scaleX(1);
}

.search-icon {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    display: grid;
    place-items: center;
    font-size: 22px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    flex-shrink: 0;
}

.search-head {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-head input {
    width: 100%;
    height: 46px;
    border: 1px solid #d8e0f4;
    border-radius: 12px;
    background: #fff;
    padding: 0 12px;
    font: inherit;
}

.search-head input:focus {
    outline: 0;
    border-color: #9ab0ea;
    box-shadow: 0 0 0 3px rgba(62, 103, 220, 0.12);
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #d8e0f4;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: none;
    z-index: 50;
    overflow: hidden;
}

.search-suggest.open {
    display: block;
}

.search-suggest a {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1fb;
    font-size: 14px;
    color: #1f2a51;
}

.search-suggest a:last-child {
    border-bottom: 0;
}

.search-suggest a:hover {
    background: #f7faff;
}

.breadcrumbs-wrap {
    border-bottom: 1px solid #e5eaf8;
    background: rgba(255, 255, 255, 0.75);
}

.breadcrumbs {
    min-height: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #5f6b90;
}

.breadcrumbs a {
    color: #3f4f85;
}

.breadcrumbs .sep {
    color: #9ca6c8;
}

.section {
    padding: 18px 0;
}

h1, h2 {
    font-family: "Manrope", sans-serif;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(28px, 5vw, 44px);
    text-align: center;
}

h2 {
    font-size: clamp(22px, 3vw, 30px);
}

.block,
.block-title,
.icon-row,
.benefit-row,
.steps-row,
.callback-block,
.reviews-block,
.rating-box,
.footer-contacts,
.footer-legal {
    border: 0;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.block {
    padding: 24px;
    border-radius: var(--radius-soft);
}

.slider {
    min-height: 210px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(22, 26, 43, .9), rgba(37, 99, 235, .8)),
        radial-gradient(600px 220px at 80% 0%, rgba(255, 106, 61, .5), transparent 60%);
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 28px 10px 30px 12px;
}

.slider p {
    margin: 0 0 14px;
    font-size: 18px;
    max-width: 760px;
}

.primary {
    display: inline-block;
    border: 0;
    outline: none;
    cursor: pointer;
    appearance: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--accent), #ff8b64);
    transition: transform .2s ease, box-shadow .2s ease;
}

.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(255, 106, 61, 0.32);
}

.block-title {
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: var(--radius-soft-alt);
}

.icon-row {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    border-radius: var(--radius-soft);
}

.icon-box {
    min-height: 74px;
    border-radius: 14px 8px 16px 10px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 0;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 600;
    transition: .2s ease;
}

.icon-box:hover {
    transform: translateY(-2px);
}

.icon-box,
.benefit-box,
.review-card,
.phone-box,
.page-btn,
.page-number {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.benefit-box:hover,
.review-card:hover,
.phone-box:hover,
.page-btn:hover,
.page-number:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(19, 33, 87, 0.12);
}

.benefit-row {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: stretch;
    border-radius: var(--radius-soft-alt);
}

.benefit-box {
    min-height: 108px;
    border-radius: 10px 18px 10px 16px;
    border: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-weight: 600;
    padding: 12px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.benefit-row .benefit-box {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 108px !important;
}

.benefit-box > div {
    min-width: 0;
}

.benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.benefit-title {
    margin: 0 0 4px;
    color: #1f284d;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
}

.benefit-text {
    margin: 0;
    color: #5d6686;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.text {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 18px 12px 24px 10px;
}

.text h3 {
    margin: 0 0 8px;
    font-family: "Manrope", sans-serif;
    font-size: 24px;
}

.text p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
}

.steps-row {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border-radius: var(--radius-soft);
}

.step {
    min-height: 112px;
    border-radius: 18px 12px 18px 10px;
    border: 0;
    background: linear-gradient(180deg, #ffffff, #f5f8ff);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef3ff, #ffece5);
    display: grid;
    place-items: center;
    font-size: 19px;
    flex-shrink: 0;
}

.step-text {
    color: #2b3355;
    line-height: 1.35;
}

.callback-block {
    text-align: center;
    padding: 20px;
    border-radius: 14px 24px 12px 18px;
}

.callback-block h2 {
    margin-bottom: 4px;
}

.callback-block p {
    margin: 0 0 12px;
    color: var(--muted);
}

.contact-form-inline {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    text-align: left;
}

.services-grid {
    margin-bottom: 16px;
}

.service-request-card,
.review-form-card {
    margin-top: 28px;
}

.reviews-block {
    padding: 14px;
    border-radius: 18px 10px 22px 12px;
}

.reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviews-head h2 {
    margin: 0;
}

.reviews-head a {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    font-size: 14px;
}

.reviews-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.review-card {
    min-height: 120px;
    border-radius: 10px 18px 12px 20px;
    border: 0;
    background: linear-gradient(180deg, #fff, #f8faff);
    padding: 14px;
    color: #3a415c;
}

.review-card-full {
    min-height: 180px;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.review-author {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    color: #161f46;
}

.review-stars {
    margin: 0;
    color: #ff9d2d;
    letter-spacing: 1px;
    font-size: 16px;
}

.review-meta {
    margin: 4px 0 8px;
    color: #7680a3;
    font-size: 13px;
}

.review-text {
    margin: 0;
    color: #2f3758;
    font-size: 14px;
    line-height: 1.45;
}

.review-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.review-summary-score,
.review-summary-total {
    border: 0;
    border-radius: 16px 10px 16px 12px;
    background: #fff;
    padding: 14px;
    box-shadow: var(--shadow);
}

.review-summary-score strong,
.review-summary-total strong {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 34px;
    color: #141d45;
    line-height: 1;
}

.review-summary-score span {
    display: block;
    color: #ff9d2d;
    letter-spacing: 1px;
    margin: 6px 0 2px;
}

.review-summary-score p,
.review-summary-total p,
.review-summary-total small {
    margin: 0;
    color: #5f698c;
}

.review-summary-total p {
    margin-top: 6px;
}

.reviews-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.rating-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.card {
    border: 0;
    border-radius: 14px 22px 12px 18px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
}

.card h3 {
    margin: 0 0 8px;
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    color: #141d45;
}

.card p {
    margin: 0 0 8px;
    color: #4e5778;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 14px;
}

.contact-panel,
.contact-form-card {
    border: 0;
    border-radius: 18px 10px 22px 12px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px;
}

.contact-panel h2,
.contact-form-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.contact-list {
    display: grid;
    gap: 8px;
}

.contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 0;
    background: #f7f9ff;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}

.contact-label {
    margin: 0 0 2px;
    font-size: 12px;
    color: #7480a6;
}

.contact-value {
    margin: 0;
    color: #1e274f;
    line-height: 1.35;
}

.map-placeholder {
    margin-top: 12px;
    border: 0;
    border-radius: 14px;
    min-height: 160px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 106, 61, 0.17), transparent 45%),
        linear-gradient(180deg, #f8fbff, #eef4ff);
}

.map-placeholder p {
    margin: 0 0 4px;
    font-family: "Manrope", sans-serif;
    color: #14204b;
}

.map-placeholder small {
    color: #5f6b90;
}

.contact-form-subtitle {
    margin: 0 0 10px;
    color: #5c6688;
}

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

.field {
    display: grid;
    gap: 5px;
}

.field span {
    font-size: 13px;
    color: #4f5878;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #c8d2eb;
    border-radius: 12px;
    background: #fdfefe;
    min-height: 46px;
    padding: 0 12px;
    font: inherit;
    color: #1c2448;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.consent-field {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    align-items: center;
    align-self: start;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.consent-field input[type="checkbox"] {
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px;
    margin: 0;
    padding: 0 !important;
    border: 1.5px solid #a6b5df;
    border-radius: 5px;
    background: #fff;
    display: inline-block;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all .18s ease;
}

.consent-field input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -56%) rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform .14s ease;
}

.consent-field input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #ff6a3d, #ff8b64);
    border-color: #ff6a3d;
    box-shadow: 0 4px 12px rgba(255, 106, 61, 0.3);
}

.consent-field input[type="checkbox"]:checked::after {
    transform: translate(-50%, -56%) rotate(45deg) scale(1);
}

.consent-field input[type="checkbox"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(67, 97, 201, 0.2);
}

.consent-field span {
    font-size: 13px;
    color: #3d476b;
    line-height: 1.25;
}

.rating-picker {
    border: 1px solid #c8d2eb;
    border-radius: 12px;
    background: #fdfefe;
    padding: 12px 14px;
    text-align: center;
}

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.rating-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-stars label {
    font-size: 78px;
    color: #cfd6ea;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease;
}

.rating-stars label::before {
    content: "★";
}

.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffbe3d;
    transform: translateY(-1px) scale(1.08);
}

.rating-stars input:checked ~ label {
    color: #ff9d2d;
}

.rating-picker[data-rating="1"] .rating-stars label { font-size: 68px; }
.rating-picker[data-rating="2"] .rating-stars label { font-size: 72px; }
.rating-picker[data-rating="3"] .rating-stars label { font-size: 78px; }
.rating-picker[data-rating="4"] .rating-stars label { font-size: 86px; }
.rating-picker[data-rating="5"] .rating-stars label { font-size: 94px; }

.rating-note {
    margin-top: 8px;
    font-size: 13px;
    color: #6f7aa0;
}

.field textarea {
    min-height: 130px;
    padding: 10px 12px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #7f95d8;
    background: #fff;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(67, 97, 201, 0.18);
}

.field small {
    color: #d13434;
    font-size: 12px;
}

.form-alert {
    margin-bottom: 10px;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.form-alert.success {
    background: #ebfff2;
    color: #1f7041;
}

.form-alert.error {
    background: #fff0f0;
    color: #9a2626;
}

.rating-box {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    padding: 10px;
    border-radius: 20px 10px 20px 10px;
}

.site-footer {
    margin-top: 26px;
    border-top: 0;
    background: linear-gradient(180deg, #eef2fb, #e8edf8);
    padding: 24px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 180px 1fr 330px;
    gap: 16px;
}

.footer-logo {
    border-radius: 18px 8px 18px 8px;
    background: linear-gradient(145deg, #1a2040, #2e3b78);
    color: #fff;
    min-height: 140px;
    display: block;
    overflow: hidden;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.footer-col p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2b3355;
}

.footer-title {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    color: #111938;
}

.footer-contacts {
    padding: 14px;
    border-radius: 10px 22px 12px 18px;
}

.footer-contacts p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2b3355;
}

.footer-legal {
    margin-top: 12px;
    text-align: center;
    padding: 10px;
    color: #3c4462;
    font-size: 14px;
    border-radius: 12px 18px 12px 18px;
}

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

.table-wrap {
    border-radius: 16px 10px 16px 12px;
    border: 0;
    background: var(--card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: linear-gradient(180deg, #f9fbff, #eef3ff);
    color: #232c4d;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
}

th,
td {
    border-bottom: 0;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

tbody tr:hover {
    background: #f9fbff;
}

.filters {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(170px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.62);
    border: 0;
    border-radius: 14px;
    padding: 10px;
}

.mode-switch {
    display: inline-flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 6px;
    border-radius: 12px;
    background: #eef3ff;
}

.mode-chip {
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 14px;
    color: #304071;
    background: transparent;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.mode-chip.active {
    color: #fff;
    background: linear-gradient(120deg, #ff6a3d, #ff8b64);
    box-shadow: 0 8px 16px rgba(255, 106, 61, 0.24);
}

.mode-chip:hover {
    transform: translateY(-1px);
}

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

.device-card {
    border: 0;
    border-radius: 14px 20px 12px 18px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 14px;
}

.device-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.device-head h3 {
    margin: 0;
    font-size: 20px;
}

.device-head a {
    color: #2c4fb9;
    font-size: 14px;
}

.device-prices {
    display: grid;
    gap: 8px;
}

.device-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    padding: 10px 12px;
}

.device-price-row span {
    color: #2b355e;
}

.device-price-row b {
    color: #121d46;
    white-space: nowrap;
}

.article-card .primary {
    margin-top: 8px;
}

.article-thumb {
    width: 100%;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #edf2ff;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-single {
    padding: 22px;
}

.article-hero {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    margin: 4px 0 14px;
    background: #edf2ff;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-excerpt {
    margin: 0 0 12px;
    color: #5c6688;
    font-size: 18px;
}

.article-content {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #1f294d;
    white-space: normal;
}

.promo-badge {
    display: inline-block;
    margin: 0 0 8px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, #ff6a3d, #ff8b64);
}

.filters input,
.filters select {
    height: 44px;
    border: 0;
    background: #fff;
    border-radius: 12px;
    padding: 0 12px;
    font: inherit;
}

.filters .primary {
    height: 44px;
    min-width: 128px;
    border: 0;
    cursor: pointer;
    padding: 0 20px;
}

.reset-link {
    color: #3852a3;
    font-size: 14px;
    white-space: nowrap;
    justify-self: start;
}

.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.results-hint {
    color: var(--muted);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.page-btn,
.page-number {
    min-width: 38px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    background: #fff;
    color: #1d2750;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.page-number.active {
    background: linear-gradient(120deg, #ff6a3d, #ff8b64);
    color: #fff;
    box-shadow: 0 8px 16px rgba(255, 106, 61, 0.3);
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-dots {
    color: #7380a8;
    padding: 0 2px;
}

main .section {
    opacity: 0;
    transform: translateY(14px);
    animation: sectionReveal .48s ease forwards;
}

main .section:nth-of-type(2) { animation-delay: .05s; }
main .section:nth-of-type(3) { animation-delay: .10s; }
main .section:nth-of-type(4) { animation-delay: .15s; }
main .section:nth-of-type(5) { animation-delay: .20s; }
main .section:nth-of-type(6) { animation-delay: .25s; }
main .section:nth-of-type(7) { animation-delay: .30s; }
main .section:nth-of-type(8) { animation-delay: .35s; }

.block,
.block-title,
.table-wrap,
.filters,
.icon-row,
.benefit-row,
.steps-row,
.reviews-block,
.callback-block,
.rating-box,
.footer-contacts,
.footer-legal {
    animation: floatIn .55s ease both;
}

.table-wrap { animation-delay: .06s; }
.filters { animation-delay: .03s; }
.reviews-block { animation-delay: .08s; }
.callback-block { animation-delay: .05s; }

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    main .section {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 1040px) {
    .site-header {
        position: static;
        backdrop-filter: none;
        background: transparent;
    }

    .top-row {
        grid-template-columns: 1fr;
    }

    .right-group {
        justify-items: start;
    }

    .menu-row {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        right: auto;
        left: 0;
    }

    .icon-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefit-row,
    .steps-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-row,
    .rating-row,
    .reviews-page-grid,
    .review-summary {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }

    .cards,
    .contacts-layout {
        grid-template-columns: 1fr;
    }

    .devices-grid {
        grid-template-columns: 1fr;
    }

    .article-hero {
        height: 220px;
    }
}

@media (max-width: 720px) {
    .meta-group {
        grid-template-columns: 1fr;
    }

    .menu-box {
        justify-content: flex-start;
    }

    .search-head {
        width: 100%;
    }

    .logo-box {
        min-height: 96px;
    }

    .icon-row {
        grid-template-columns: 1fr 1fr;
    }

    .benefit-row,
    .steps-row,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        width: min(92vw, 320px);
    }

    .filters .primary {
        width: 100%;
    }

    .reset-link {
        padding: 4px 0;
    }
}
