:root {
    --tt-red: #a92b2a;
    --tt-red-dark: #84201f;
    --tt-red-soft: #b93a34;
    --tt-blue: #0879a3;
    --tt-blue-dark: #045d7c;
    --tt-gold: #f4b614;
    --tt-gold-dark: #d89c00;
    --tt-text: #202225;
    --tt-muted: #687078;
    --tt-surface: #f2f3f4;
    --tt-surface-dark: #e7e9eb;
    --tt-border: #dfe2e4;
    --tt-white: #fff;
    --tt-radius: 18px;
    --tt-shadow: 0 18px 44px rgba(25, 32, 38, .08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--tt-text);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--tt-white);
    overflow-x: hidden;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-container {
    max-width: 1180px;
}

.container-narrow {
    max-width: 900px;
}

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 1100;
    padding: .7rem 1rem;
    color: #fff;
    background: #111;
    transform: translateY(-160%);
}

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

.btn {
    min-height: 46px;
    border-radius: 0;
    padding: .65rem 1.25rem;
    font-weight: 700;
}

.btn-sm {
    min-height: 40px;
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background-color: var(--tt-red);
    border-color: var(--tt-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tt-red-dark);
    border-color: var(--tt-red-dark);
}

.btn-outline-primary {
    color: var(--tt-red);
    border-color: var(--tt-red);
}

.btn-warning {
    color: #1f2428;
    background: var(--tt-gold);
    border-color: var(--tt-gold);
}

.btn-warning:hover,
.btn-warning:focus {
    color: #111;
    background: #ffc52d;
    border-color: #ffc52d;
}

.site-header {
    position: relative;
    z-index: 10;
    background: #fff;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: min(260px, 42vw);
    height: auto;
}

.header-contact {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: .3rem;
}

.messenger-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .8rem;
    color: var(--tt-muted);
    font-size: .78rem;
}

.messenger-links a {
    text-decoration: none;
}

.messenger-links a:hover {
    color: var(--tt-red);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #202225;
    font-size: 1.04rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--tt-red);
}

.main-nav {
    padding: 0;
    background: linear-gradient(90deg, var(--tt-red), var(--tt-red-soft) 68%, var(--tt-red-dark));
}

.main-nav .nav-link {
    color: #fff;
    padding: .95rem 1rem;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.main-nav .navbar-toggler {
    min-height: 44px;
    color: #fff;
    border: 0;
}

.main-nav .navbar-toggler i {
    font-size: 1.85rem;
}

.main-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .25);
}

.home-hero {
    padding-bottom: 1.25rem;
}

.home-hero__media {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: #6d451d;
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 17, 14, .8) 0%, rgba(20, 17, 14, .48) 48%, rgba(20, 17, 14, .06) 78%);
}

.home-hero__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero__overlay {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: clamp(3rem, 8vw, 6.5rem) clamp(1.25rem, 6vw, 4.5rem);
    color: #fff;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.15rem;
    padding: .5rem .8rem;
    color: #fff;
    background: var(--tt-red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 720px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.home-hero__overlay p {
    max-width: 680px;
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero-grades {
    margin: 0;
    padding: 1rem 1.25rem;
    color: var(--tt-red-dark);
    background: var(--tt-surface);
    font-size: clamp(.85rem, 2vw, 1rem);
    font-weight: 800;
    letter-spacing: .025em;
    text-align: center;
}

.hero-grades span {
    margin: 0 .5rem;
    color: #aeb4b8;
}

.content-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.content-section--muted,
.grades-section,
.supply-section {
    background: var(--tt-surface);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 2.25rem;
}

.section-heading--split {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.section-heading--split > p {
    max-width: 430px;
    margin: 0 0 .4rem;
    color: var(--tt-muted);
}

.section-kicker {
    display: block;
    margin-bottom: .65rem;
    color: var(--tt-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.content-section h2,
.quote-band h2,
.compact-cta h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.section-lead {
    color: #373d42;
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.65;
}

.text-link,
.direction-card a,
.grade-card a {
    color: var(--tt-red);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.direction-card a:hover,
.grade-card a:hover {
    color: var(--tt-red-dark);
}

.direction-card {
    position: relative;
    min-height: 300px;
    padding: 2rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--tt-border);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.direction-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 140px;
    height: 140px;
    background: var(--tt-surface);
    transform: rotate(18deg);
}

.direction-card__number {
    display: block;
    margin-bottom: 2rem;
    color: #c8cccf;
    font-size: .8rem;
    font-weight: 800;
}

.direction-card h3 {
    margin-bottom: .85rem;
    color: var(--tt-red);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
}

.direction-card p {
    max-width: 340px;
    min-height: 92px;
    color: #444b50;
    line-height: 1.55;
}

.material-note {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--tt-red-dark), var(--tt-red-soft));
    box-shadow: var(--tt-shadow);
}

.material-note > span {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -.08em;
}

.material-note strong,
.material-note small {
    display: block;
}

.material-note strong {
    margin-bottom: .4rem;
    font-size: 1.1rem;
}

.material-note small {
    opacity: .88;
    line-height: 1.45;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--tt-border);
    border-left: 1px solid var(--tt-border);
}

.grade-card {
    position: relative;
    min-height: 260px;
    padding: 1.6rem;
    background: #fff;
    border-right: 1px solid var(--tt-border);
    border-bottom: 1px solid var(--tt-border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.grade-card:hover {
    z-index: 1;
    transform: translateY(-4px);
    box-shadow: var(--tt-shadow);
}

.grade-card__meta {
    display: flex;
    min-height: 42px;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1.4rem;
}

.grade-card__meta span {
    align-self: flex-start;
    padding: .35rem .5rem;
    color: var(--tt-muted);
    background: var(--tt-surface);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.grade-card h3 {
    margin-bottom: .6rem;
    color: var(--tt-red);
    font-size: 1.75rem;
    font-weight: 800;
}

.grade-card p {
    min-height: 68px;
    color: #50575c;
    font-size: .92rem;
    line-height: 1.5;
}

.grade-card a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
    font-size: .85rem;
}

.selection-section {
    background: #fff;
}

.form-card {
    padding: clamp(1.4rem, 4vw, 2.25rem);
    background: var(--tt-surface);
    border-top: 4px solid var(--tt-red);
}

.form-label {
    margin-bottom: .4rem;
    color: #394047;
    font-size: .83rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid #cfd4d8;
    border-radius: 0;
}

textarea.form-control {
    min-height: 118px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--tt-red);
    box-shadow: 0 0 0 .2rem rgba(169, 43, 42, .14);
}

.form-submit {
    width: 100%;
    margin-top: 1.25rem;
}

.form-consent,
.form-text {
    color: var(--tt-muted);
    font-size: .74rem;
    line-height: 1.45;
}

.form-consent {
    margin: .75rem 0 0;
}

.form-consent a {
    color: inherit;
}

.form-result {
    margin-top: .8rem;
}

.form-result:empty {
    display: none;
}

.form-result-message {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem 1rem;
    font-size: .88rem;
}

.form-result-message--success {
    color: #185e34;
    background: #e2f6e9;
}

.form-result-message--error {
    color: #7b2020;
    background: #f9e4e4;
}

.check-list {
    display: grid;
    gap: .75rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tt-red);
    font-weight: 800;
}

.supply-card {
    height: 100%;
    padding: 1.6rem;
    background: #fff;
    border: 1px solid var(--tt-border);
}

.supply-card > i {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
    place-items: center;
    color: #fff;
    background: var(--tt-red);
    font-size: 1.3rem;
}

.supply-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
}

.supply-card p {
    margin: 0;
    color: var(--tt-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.quote-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(105deg, var(--tt-blue), var(--tt-blue-dark));
}

.quote-band::before,
.quote-band::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.quote-band::before {
    top: -180px;
    right: -80px;
    width: 520px;
    height: 520px;
}

.quote-band::after {
    top: -90px;
    right: 10px;
    width: 340px;
    height: 340px;
}

.quote-content {
    position: relative;
    z-index: 1;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.quote-content > p {
    max-width: 660px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    opacity: .94;
}

.quote-form .form-control,
.quote-form .form-select {
    border: 0;
}

.quote-form .form-consent {
    color: rgba(255, 255, 255, .78);
}

.faq-section .accordion {
    border-top: 1px solid var(--tt-border);
}

.faq-section .accordion-item {
    border-color: var(--tt-border);
}

.faq-section .accordion-button {
    padding: 1.4rem 0;
    color: var(--tt-text);
    background: #fff;
    box-shadow: none;
    font-size: 1.05rem;
    font-weight: 800;
}

.faq-section .accordion-button:not(.collapsed) {
    color: var(--tt-red);
}

.faq-section .accordion-body {
    max-width: 850px;
    padding: 0 0 1.5rem;
    color: #50575c;
    line-height: 1.65;
}

.page-hero {
    color: #fff;
    background: linear-gradient(105deg, #25292d, #3f454a);
}

.page-hero .container {
    padding-top: clamp(3.2rem, 7vw, 5.6rem);
    padding-bottom: clamp(3.2rem, 7vw, 5.6rem);
}

.breadcrumb {
    margin-bottom: 1.2rem;
    font-size: .8rem;
}

.breadcrumb-item,
.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .65);
}

.breadcrumb a {
    color: #fff;
}

.page-hero h1 {
    max-width: 940px;
    margin-bottom: .9rem;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
    text-transform: uppercase;
}

.page-hero p {
    max-width: 800px;
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.55;
    opacity: .9;
}

.info-panel {
    padding: 2rem;
    background: var(--tt-surface);
    border-left: 4px solid var(--tt-red);
}

.info-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.info-panel p:last-child {
    margin-bottom: 0;
}

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

.document-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--tt-border);
}

.document-card > i {
    color: var(--tt-red);
    font-size: 2rem;
}

.document-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.document-card p {
    margin: .3rem 0 0;
    color: var(--tt-muted);
    font-size: .85rem;
}

.document-card a {
    color: var(--tt-red);
    font-size: .82rem;
    font-weight: 800;
}

.empty-documents {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--tt-surface);
    border: 1px solid var(--tt-border);
}

.empty-documents > i {
    color: var(--tt-red);
    font-size: 2.2rem;
}

.empty-documents > div {
    flex: 1;
}

.empty-documents h3 {
    margin: 0 0 .25rem;
    font-size: 1.08rem;
    font-weight: 800;
}

.empty-documents p {
    margin: 0;
    color: var(--tt-muted);
}

.product-symbol {
    display: grid;
    min-height: 360px;
    place-content: center;
    color: #fff;
    background: linear-gradient(145deg, var(--tt-red-dark), var(--tt-red-soft));
    text-align: center;
}

.product-symbol span {
    font-size: clamp(5rem, 13vw, 8rem);
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: 1;
}

.product-symbol small {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.product-image,
.section-image,
.page-cover a {
    display: block;
    overflow: hidden;
}

.product-image img,
.section-image img,
.page-cover img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.characteristics-table {
    margin: 1.6rem 0 0;
    border-top: 1px solid var(--tt-border);
}

.characteristics-table th,
.characteristics-table td {
    padding: 1rem .75rem;
    border-color: var(--tt-border);
}

.characteristics-table th {
    width: 42%;
    color: var(--tt-muted);
    font-weight: 600;
}

.page-cover {
    margin-top: 3rem;
}

.rich-content {
    font-size: 1.03rem;
    line-height: 1.72;
}

.rich-content h2,
.rich-content h3 {
    margin-top: 1.8em;
    margin-bottom: .7em;
    font-weight: 800;
}

.rich-content h2:first-child,
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content a {
    color: var(--tt-red);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.contact-card {
    height: 100%;
    padding: 1.6rem;
    background: var(--tt-surface);
    border-top: 4px solid var(--tt-red);
}

.contact-card > i {
    color: var(--tt-red);
    font-size: 1.6rem;
}

.contact-card h2 {
    margin: 1rem 0 .65rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.contact-card a {
    color: var(--tt-red);
    font-weight: 800;
}

.contact-card p {
    margin: 0;
}

.compact-cta {
    color: #fff;
    background: var(--tt-blue-dark);
}

.compact-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.compact-cta h2 {
    margin: 0 0 .35rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.compact-cta p {
    margin: 0;
    opacity: .85;
}

.legal-page {
    padding-top: 3rem;
}

.legal-updated {
    color: var(--tt-muted);
    font-size: .85rem;
}

.system-page {
    display: grid;
    min-height: 58vh;
    place-items: center;
    padding: 4rem 0;
    text-align: center;
}

.system-page__icon {
    display: inline-grid;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    place-items: center;
    color: #fff;
    background: var(--tt-red);
    border-radius: 50%;
    font-size: 2rem;
}

.system-page__code {
    color: var(--tt-red);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: .9;
}

.site-footer__main {
    padding: 3.5rem 0;
    color: #fff;
    background: linear-gradient(90deg, var(--tt-red-dark), var(--tt-red-soft));
}

.footer-brand {
    display: inline-block;
}

.footer-brand img {
    width: min(250px, 70vw);
    height: auto;
}

.footer-description {
    max-width: 390px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, .83);
    line-height: 1.55;
}

.footer-title {
    margin-bottom: 1rem;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-contact {
    display: grid;
    gap: .55rem;
    margin: 0;
    font-style: normal;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.footer-contact .footer-phone {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer__bottom {
    padding: 1rem 0;
    color: #596168;
    background: #fff;
    font-size: .76rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    color: var(--tt-red);
}

.mobile-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: .45rem;
    padding: .55rem;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--tt-border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
}

.mobile-actions .btn {
    min-width: 0;
    padding-right: .45rem;
    padding-left: .45rem;
    font-size: .86rem;
    white-space: normal;
}

.request-modal {
    padding: 2rem;
    border: 0;
    border-radius: 0;
}

.request-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.request-modal__title {
    padding-right: 2rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.request-modal__lead {
    color: var(--tt-muted);
}

.form-stack {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}

.request-modal__fallback {
    margin: 1rem 0 0;
    color: var(--tt-muted);
    font-size: .8rem;
    text-align: center;
}

.request-modal__fallback a {
    color: var(--tt-red);
    font-weight: 800;
}

@media (max-width: 1199.98px) {
    .grades-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        padding: .25rem 0 .65rem;
    }

    .main-nav .nav-link {
        padding: .75rem .85rem;
    }

    .home-hero__media {
        min-height: 460px;
    }

    .home-hero__media::after {
        background: linear-gradient(90deg, rgba(20, 17, 14, .82), rgba(20, 17, 14, .42));
    }

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

    .direction-card p,
    .grade-card p {
        min-height: auto;
    }

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

@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px;
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-contact {
        gap: 0;
    }

    .messenger-links {
        display: none;
    }

    .home-hero .container {
        padding: 0;
    }

    .home-hero__media {
        min-height: 510px;
    }

    .home-hero__media > img {
        object-position: 64% center;
    }

    .home-hero__media::after {
        background: linear-gradient(180deg, rgba(20, 17, 14, .18) 0%, rgba(20, 17, 14, .85) 68%);
    }

    .home-hero__overlay {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 2rem 1.25rem;
        max-width: 100%;
        min-width: 0;
    }

    .home-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.15rem);
        hyphens: auto;
        overflow-wrap: normal;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .section-heading--split {
        display: block;
    }

    .section-heading--split > p {
        margin-top: 1rem;
    }

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

    .grade-card {
        min-height: 0;
    }

    .empty-documents,
    .compact-cta .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-card {
        grid-template-columns: auto 1fr;
    }

    .document-card a {
        grid-column: 2;
    }

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

    .gallery-grid img {
        height: 190px;
    }

    .site-footer__main {
        padding: 2.75rem 0;
    }
}

@media (max-width: 575.98px) {
    .brand__logo {
        width: 165px;
    }

    .header-phone {
        font-size: .82rem;
    }

    .hero-grades {
        line-height: 1.8;
    }

    .content-section {
        padding: 3.5rem 0;
    }

    .direction-card {
        min-height: 0;
        padding: 1.5rem;
    }

    .direction-card__number {
        margin-bottom: 1.2rem;
    }

    .material-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-card,
    .request-modal {
        padding: 1.25rem;
    }

    .page-hero h1 {
        word-break: break-word;
    }

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

    .gallery-grid img {
        height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
