:root {
    --color-primary: #69002d;
    --color-primary-dark: #44001d;
    --color-bg: #f7efe6;
    --color-card: #f4e8da;
    --color-text: #121619;
    --color-muted: #44505d;
    --container: 1490px;
    --font-body: "Manrope", Arial, Helvetica, sans-serif;
    --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    color: var(--color-text);
    background: #fbf5ee;
    font-family: var(--font-body);
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(105, 0, 45, 0.38);
    outline-offset: 3px;
}

.container {
    width: min(100% - 78px, var(--container));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    color: #fff;
    background:
        radial-gradient(circle at 16% 0%, rgba(126, 11, 61, 0.9), transparent 34%),
        linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
}

.header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.logo-mark {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
}

.logo-text small {
    margin-top: 4px;
    font-size: 16px;
    opacity: 0.9;
}

.main-nav {
    margin-left: auto;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 62px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.92;
    transition: opacity 0.18s ease;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: #fff;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    opacity: 1;
}

.main-menu a:hover::after,
.main-menu .current-menu-item > a::after,
.main-menu .current_page_item > a::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

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

/* Shared motion */

.reveal-item {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.58s ease,
        transform 0.58s ease,
        box-shadow 0.22s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.btn,
.document-download,
.contact-form button {
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.btn:hover,
.document-download:hover,
.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(105, 0, 45, 0.12);
}

/* Home hero */

.home-page {
    flex: 1 0 auto;
    background: #fff8f0;
}

.hero-section {
    position: relative;
    min-height: 448px;
    overflow: hidden;
    background: #fff8f0;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: clamp(780px, 62vw, 1180px);
    background-image: url("../img/hero-redmet.jpg");
    background-image: image-set(
        url("../img/hero-redmet.jpg") type("image/jpeg"),
        url("../img/hero-redmet.png") type("image/png")
    );
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 9%, #000 26%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 9%, #000 26%, #000 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 250, 244, 0.99) 0%, rgba(255, 250, 244, 0.95) 27%, rgba(255, 250, 244, 0.72) 43%, rgba(255, 250, 244, 0.1) 64%),
        linear-gradient(180deg, rgba(255, 250, 244, 0) 66%, rgba(255, 250, 244, 0.96) 100%);
    pointer-events: none;
}

.hero-bg {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 448px;
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(100%, 680px);
    padding: 50px 0 82px;
}

.hero-content h1 {
    margin: 0 0 28px;
    font-family: var(--font-heading);
    font-size: 62px;
    line-height: 1.08;
}

.hero-content h1 em {
    font-style: italic;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 26px;
    color: #202326;
    font-size: 20px;
    line-height: 1.52;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn {
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    min-width: 235px;
    color: #fff;
    background: var(--color-primary);
}

.btn-outline {
    min-width: 288px;
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(255, 250, 244, 0.72);
}

.btn span,
.card-link span {
    font-size: 34px;
    line-height: 0.75;
    font-weight: 400;
    transition: transform 0.18s ease;
}

.btn:hover span,
.card-link:hover span {
    transform: translateX(6px);
}

/* Home cards */

.info-section {
    position: relative;
    z-index: 3;
    margin-top: -4px;
    padding: 0 0 14px;
    background: #fff8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: 0.98fr 1.22fr 1fr;
    gap: 28px;
}

.info-card,
.about-card,
.document-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-card:hover,
.about-card:hover,
.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(64, 37, 18, 0.1);
}

.info-card {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 31px 34px 27px;
    border-radius: 8px;
    background: var(--color-card);
    box-shadow: 0 10px 28px rgba(64, 37, 18, 0.06);
}

.info-card h2 {
    margin: 0 0 26px;
    font-family: var(--font-heading);
    font-size: 31px;
    line-height: 1.15;
}

.info-card p {
    margin: 0;
    color: #202326;
    font-size: 18px;
    line-height: 1.52;
}

.card-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.documents-list {
    margin-top: 4px;
    margin-bottom: 16px;
}

.document-row {
    min-height: 55px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(44, 31, 20, 0.2);
    color: #202326;
    font-size: 17px;
}

.document-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.document-row a,
.contacts-list a,
.contacts-top-item a,
.about-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.18s ease;
}

.document-row a:hover,
.contacts-list a:hover,
.contacts-top-item a:hover,
.about-card a:hover {
    color: #43001d;
}

.documents-empty {
    margin: 10px 0 0;
    color: #202326;
    font-size: 17px;
    line-height: 1.45;
}

.document-unavailable {
    color: var(--color-primary);
    font-weight: 700;
}

.contact-mini-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.contact-mini-row + .contact-mini-row {
    margin-top: 17px;
}

.inline-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.52);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.contact-mini-row:hover .inline-icon,
.contacts-top-item:hover .contacts-top-icon {
    transform: translateY(-2px);
}

.inline-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacts-list strong {
    font-weight: 400;
}

/* Footer */

.site-main {
    min-height: 60vh;
    padding: 60px 0;
}

.site-footer {
    position: relative;
    z-index: 4;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    display: block;
    color: #121619;
    background: #f4e7d8;
    padding: 22px 0 24px;
}

.site-footer .reveal-item {
    opacity: 1;
    transform: none;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-logo .logo-mark {
    width: 58px;
    height: 58px;
}

.footer-logo .logo-text strong {
    font-size: 30px;
}

.footer-logo .logo-text small {
    font-size: 13px;
}

.footer-copy {
    color: #121619;
    text-align: left;
    font-size: 17px;
    line-height: 1.38;
}

.footer-copy p {
    margin: 0;
}

.footer-copy p + p {
    margin-top: 4px;
}

/* Documents page */

.documents-page,
.about-page,
.contacts-page {
    flex: 1 0 auto;
    background: #fff8f0;
}

.documents-intro,
.about-intro {
    padding: 66px 0 42px;
}

.documents-intro h1,
.about-intro h1 {
    margin: 0 0 24px;
    font-family: var(--font-heading);
    font-size: 62px;
    line-height: 1;
}

.documents-intro p,
.about-intro p {
    max-width: 760px;
    margin: 0;
    color: #202326;
    font-size: 20px;
    line-height: 1.55;
}

.documents-catalog,
.about-content {
    padding: 0 0 78px;
}

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

.documents-filter {
    display: flex;
    align-items: end;
    gap: 18px;
    margin: 0 0 28px;
    padding: 22px;
    border-radius: 8px;
    background: #f4e8da;
}

.documents-filter label {
    display: grid;
    gap: 8px;
    color: #26313a;
    font-size: 14px;
    font-weight: 700;
}

.documents-filter select {
    min-width: 210px;
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid rgba(105, 0, 45, 0.22);
    border-radius: 6px;
    color: #121619;
    background: #fff;
    font: inherit;
}

.documents-filter button {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.document-card {
    position: relative;
    min-height: 198px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 28px;
    overflow: hidden;
    padding: 40px 42px 34px 36px;
    border-radius: 8px;
    background: var(--color-card);
    box-shadow: 0 10px 28px rgba(64, 37, 18, 0.06);
}

.document-card::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -34px;
    width: 190px;
    height: 150px;
    border: 6px solid rgba(92, 64, 42, 0.08);
    border-radius: 18px;
    transform: rotate(-8deg);
}

.document-card-tone-1 {
    background: #ead9e3;
}

.document-card-tone-2 {
    background: #dfeaf5;
}

.document-card-icon {
    position: relative;
    z-index: 1;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    grid-row: 1 / 3;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
}

.document-card-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.document-card h2 {
    position: relative;
    z-index: 1;
    max-width: 380px;
    margin: 0 0 14px;
    color: #111518;
    font-family: var(--font-body);
    font-size: 24px;
    line-height: 1.24;
}

.document-meta,
.document-tags {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 2;
}

.document-meta {
    margin: 0 0 12px;
    color: #5f6972;
    font-size: 13px;
    font-weight: 700;
}

.document-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(95, 105, 114, 0.72);
}

.document-tags {
    margin: 0 0 24px;
}

.document-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    font-weight: 700;
}

.document-download {
    position: relative;
    z-index: 1;
    width: fit-content;
    min-width: 182px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-primary);
    background: rgba(255, 250, 244, 0.4);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.document-download svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.document-download:hover svg {
    transform: translateY(3px);
}

.document-download-disabled {
    opacity: 0.62;
}

.documents-empty-page {
    max-width: 680px;
    padding: 40px;
    border-radius: 8px;
    color: #202326;
    background: var(--color-card);
}

.documents-empty-page h2 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 34px;
}

.documents-empty-page p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
}

/* Documents page redesign */

.documents-page-new {
    background: #fff8f0;
}

.documents-intro-new {
    padding: 54px 0 28px;
}

.documents-intro-new h1 {
    margin-bottom: 0;
    font-size: 64px;
}

.license-section {
    padding: 0 0 24px;
}

.license-card {
    padding: 34px 38px 30px;
    border-radius: 30px;
    background: #f4ebdf;
}

.license-card h2 {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.08;
}

.license-lead {
    max-width: 1260px;
    margin: 0 0 34px;
    color: #111518;
    font-size: 24px;
    line-height: 1.35;
}

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

.license-column h3 {
    margin: 0 0 28px;
    color: #6d244f;
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
}

.license-column p {
    margin: 0;
    color: #111518;
    font-size: 21px;
    line-height: 1.28;
}

.license-column p + p {
    margin-top: 30px;
}

.license-column strong {
    font-weight: 800;
}

.documents-catalog-new {
    padding: 0 0 58px;
}

.documents-grid-new {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 34px;
}

.document-card-new {
    min-height: 188px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: 1fr auto;
    gap: 20px;
    padding: 27px 28px 23px;
    border-radius: 14px;
    box-shadow: none;
    cursor: pointer;
}

.document-card-view {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.document-card-view:focus-visible {
    outline: 3px solid rgba(105, 0, 45, 0.4);
    outline-offset: -6px;
}

.document-card-new::after {
    display: none;
}

.document-card-new.document-card-blue {
    background: #e3ebf8;
}

.document-card-new.document-card-green {
    background: #e2f3e5;
}

.document-card-new.document-card-purple {
    background: #e6e0ea;
}

.document-card-new h2 {
    z-index: 1;
    grid-column: 1;
    max-width: 260px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.18;
}

.document-card-new .document-card-icon {
    position: static;
    z-index: 1;
    width: 86px;
    height: 86px;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
    justify-self: end;
    border-radius: 0;
    background: transparent;
}

.document-card-new .document-card-icon svg {
    width: 86px;
    height: 86px;
    stroke: currentColor;
    stroke-width: 3;
}

.document-card-new .document-card-icon img {
    width: 86px;
    height: 86px;
    display: block;
    object-fit: contain;
}

.document-card-blue .document-card-icon,
.document-card-blue .document-download {
    color: #6d244f;
}

.document-card-green .document-card-icon,
.document-card-green .document-download {
    color: #236f3e;
}

.document-card-purple .document-card-icon,
.document-card-purple .document-download {
    color: #6d244f;
}

.document-card-new .document-download {
    z-index: 3;
    min-width: 0;
    min-height: auto;
    grid-column: 1 / 3;
    justify-self: end;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 18px;
    font-weight: 500;
}

.document-card-new .document-download:hover {
    box-shadow: none;
}

.document-card-new .document-download svg {
    width: 18px;
    height: 18px;
}

/* About page */

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
}

.about-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 36px 38px 34px;
    border-radius: 8px;
    background: var(--color-card);
    box-shadow: 0 10px 28px rgba(64, 37, 18, 0.06);
}

.about-card-main {
    min-height: 340px;
}

.about-card-documents {
    background: #ead9e3;
}

.about-card h2 {
    margin: 0 0 24px;
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.12;
}

.about-card p {
    margin: 0;
    color: #202326;
    font-size: 18px;
    line-height: 1.55;
}

.about-card p + p {
    margin-top: 18px;
}

.about-page-redesign {
    background: #fff8f0;
}

.about-redesign-intro {
    padding: 54px 0 30px;
}

.about-redesign-intro h1 {
    margin: 0 0 34px;
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 0.95;
}

.about-principles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 28px;
}

.about-principle-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 18px 20px 18px 18px;
    border-radius: 10px;
    color: #15191d;
}

.about-principle-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: currentColor;
}

.about-principle-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-principle-card h2 {
    margin: 0 0 4px;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.18;
    font-weight: 800;
    font-style: italic;
}

.about-principle-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    font-style: italic;
}

.about-principle-yellow {
    color: #6d4c00;
    background: #fff3bf;
}

.about-principle-green {
    color: #24633d;
    background: #dff3e4;
}

.about-principle-blue {
    color: #243f79;
    background: #e4ebf7;
}

.about-principle-rose {
    color: #6d244f;
    background: #f7e3df;
}

.about-principle-amber {
    color: #745312;
    background: #ffe8bd;
}

.about-principle-violet {
    color: #3b317d;
    background: #e9e5f5;
}

.about-history-section {
    padding: 28px 0 34px;
}

.about-text-container {
    max-width: 1420px;
}

.about-text-container h2 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.05;
}

.about-text-container p {
    margin: 0;
    color: #15191d;
    font-size: 20px;
    line-height: 1.45;
}

.about-text-container p + p {
    margin-top: 14px;
}

.about-history-media {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
    gap: 34px;
    align-items: start;
    margin: 24px 0 28px;
}

.about-history-media img,
.about-wide-image {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.about-history-media img {
    aspect-ratio: 1.39 / 1;
    min-height: 360px;
}

.about-wide-image {
    aspect-ratio: 2.75 / 1;
    margin-top: 30px;
    object-position: center 42%;
}

.about-social-section {
    padding: 22px 0 82px;
}

.about-social-section h2 {
    margin-top: 36px;
}

.about-social-section h2:first-child {
    margin-top: 0;
}

.about-closing {
    margin-top: 28px !important;
    font-style: italic;
}

/* Contacts page */

.contacts-top {
    padding: 68px 0 0;
}

.contacts-topline {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 52px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(44, 31, 20, 0.14);
}

.contacts-top-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.contacts-top-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--color-primary);
    transition: transform 0.18s ease;
}

.contacts-top-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacts-top-item h2 {
    margin: 0 0 8px;
    color: #26313a;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.25;
    text-transform: uppercase;
}

.contacts-top-item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.5;
}

.contacts-content {
    padding: 58px 0 78px;
}

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(460px, 1fr);
    gap: 70px;
    align-items: stretch;
}

.contacts-map {
    height: 100%;
    min-height: 650px;
    overflow: hidden;
    background: #e8efe8;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 650px;
    display: block;
    border: 0;
}

.contacts-form-panel h1 {
    margin: 24px 0 22px;
    font-family: var(--font-heading);
    font-size: 54px;
    line-height: 1.08;
}

.contacts-form-panel > p {
    max-width: 620px;
    margin: 0 0 34px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.6;
}

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

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

.contact-form label {
    display: grid;
    gap: 10px;
    color: #26313a;
    font-size: 15px;
    line-height: 1.2;
}

.field-label {
    width: fit-content;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #26313a;
}

.field-label span {
    color: var(--color-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(38, 49, 58, 0.15);
    border-radius: 3px;
    color: #121619;
    background: #fff;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input {
    min-height: 44px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(105, 0, 45, 0.62);
    box-shadow: 0 0 0 3px rgba(105, 0, 45, 0.08);
}

.contact-form button {
    width: fit-content;
    min-width: 190px;
    min-height: 54px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.contact-form-hidden {
    position: absolute;
    left: -9999px;
}

.contact-form-message {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.4;
}

.contact-form-message-success {
    color: #153d2a;
    background: #e7f3ec;
}

.contact-form-message-error {
    color: var(--color-primary);
    background: #f5e2e9;
}

/* Responsive */

@media (max-width: 1180px) {
    .main-menu {
        gap: 34px;
    }

    .main-menu a {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

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

    .info-card:last-child {
        grid-column: 1 / -1;
    }

    .contacts-topline {
        gap: 30px;
    }

    .contacts-layout {
        grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1fr);
        gap: 42px;
    }

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

    .license-grid {
        gap: 42px;
    }

    .license-lead {
        font-size: 21px;
    }

    .license-column p {
        font-size: 18px;
    }

    .about-principles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .about-text-container p {
        font-size: 18px;
    }

    .about-history-media {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
        gap: 28px;
    }
}

@media (max-width: 900px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .container {
        width: min(100% - 36px, var(--container));
    }

    .header-inner {
        position: relative;
        min-height: 104px;
        justify-content: flex-start;
        padding-right: 68px;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        padding: 18px 36px 24px;
        background: var(--color-primary);
        box-shadow: 0 18px 30px rgba(68, 0, 29, 0.18);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .main-menu a {
        min-height: 44px;
        justify-content: center;
        font-size: 18px;
    }

    .menu-toggle {
        position: absolute;
        right: 36px;
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 36px;
        display: grid;
        gap: 6px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span:not(.screen-reader-text) {
        height: 4px;
        display: block;
        border-radius: 99px;
        background: #fff;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .site-logo {
        flex-direction: row;
        gap: 14px;
        min-width: 0;
        text-align: left;
    }

    .logo-mark {
        width: 64px;
        height: 64px;
    }

    .logo-text strong {
        font-size: 29px;
        white-space: nowrap;
    }

    .logo-text small {
        display: block;
        max-width: none;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero-section {
        min-height: auto;
        background: #fff8f0;
    }

    .hero-section::before {
        display: none;
    }

    .hero-section::after {
        display: none;
    }

    .hero-bg {
        display: block;
        height: clamp(230px, 44vw, 360px);
        background-image: url("../img/hero-redmet.jpg");
        background-image: image-set(
            url("../img/hero-redmet.jpg") type("image/jpeg"),
            url("../img/hero-redmet.png") type("image/png")
        );
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-content {
        padding: 34px 0 44px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content p,
    .documents-intro p,
    .about-intro p,
    .contacts-form-panel > p {
        font-size: 17px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        font-size: 17px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-actions .btn {
        min-height: 88px;
        padding: 0 28px;
        border-radius: 10px;
        font-size: 22px;
    }

    .hero-actions .btn-outline {
        order: 1;
        background: rgba(244, 232, 218, 0.92);
    }

    .hero-actions .btn-primary {
        order: 2;
    }

    .info-section {
        margin-top: -24px;
    }

    .info-grid,
    .documents-grid-page,
    .about-grid,
    .contacts-topline,
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-card:last-child {
        grid-column: auto;
    }

    .info-card,
    .about-card,
    .about-card-main {
        min-height: auto;
        padding: 26px 22px;
    }

    .info-card h2,
    .about-card h2 {
        margin-bottom: 20px;
        font-size: 28px;
    }

    .info-card p,
    .document-row,
    .about-card p {
        font-size: 16px;
    }

    .card-link {
        margin-top: 28px;
    }

    .document-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 13px 0;
    }

    .documents-intro,
    .about-intro {
        padding: 44px 0 30px;
    }

    .documents-intro h1,
    .about-intro h1 {
        font-size: 46px;
    }

    .documents-intro-new h1 {
        font-size: 52px;
    }

    .documents-catalog,
    .about-content {
        padding-bottom: 46px;
    }

    .license-card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .license-card h2 {
        font-size: 28px;
    }

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

    .license-lead,
    .license-column p {
        font-size: 17px;
    }

    .license-column h3 {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .document-card {
        min-height: 220px;
        padding: 30px 24px 28px;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 18px;
    }

    .document-card-new {
        min-height: 170px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 78px;
        padding: 24px 24px 20px;
    }

    .document-card-new .document-card-icon,
    .document-card-new .document-card-icon svg,
    .document-card-new .document-card-icon img {
        width: 74px;
        height: 74px;
    }

    .documents-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .documents-filter select,
    .documents-filter button {
        width: 100%;
    }

    .document-card-icon {
        width: 64px;
        height: 64px;
    }

    .document-card h2 {
        max-width: none;
        font-size: 21px;
    }

    .contacts-top {
        padding-top: 34px;
    }

    .about-redesign-intro {
        padding: 44px 0 22px;
    }

    .about-redesign-intro h1 {
        margin-bottom: 26px;
        font-size: 52px;
    }

    .about-principles-grid,
    .about-history-media {
        grid-template-columns: 1fr;
    }

    .about-principle-card {
        min-height: auto;
    }

    .about-history-section {
        padding-top: 22px;
    }

    .about-text-container h2 {
        font-size: 32px;
    }

    .about-text-container p {
        font-size: 17px;
    }

    .about-history-media img {
        min-height: 0;
        aspect-ratio: 1.45 / 1;
    }

    .about-wide-image {
        aspect-ratio: 1.7 / 1;
    }

    .contacts-topline {
        padding-bottom: 34px;
    }

    .contacts-top-item p {
        font-size: 16px;
    }

    .contacts-content {
        padding: 38px 0 46px;
    }

    .contacts-map,
    .contacts-map iframe {
        min-height: 380px;
        height: 380px;
    }

    .contacts-form-panel h1 {
        margin-top: 0;
        font-size: 42px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .site-logo,
    .footer-logo {
        gap: 12px;
    }

    .logo-mark {
        width: 58px;
        height: 58px;
    }

    .logo-text strong {
        font-size: 24px;
    }

    .logo-text small {
        max-width: none;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .menu-toggle {
        right: 22px;
        width: 34px;
    }

    .hero-bg {
        height: 238px;
        background-position: center center;
    }

    .hero-actions .btn {
        min-height: 82px;
        font-size: 20px;
    }

    .info-card h2 {
        font-size: 26px;
    }

    .documents-intro h1,
    .about-intro h1 {
        font-size: 38px;
    }

    .documents-intro-new h1 {
        font-size: 46px;
    }

    .about-redesign-intro h1 {
        font-size: 44px;
    }

    .about-principles-grid {
        gap: 14px;
    }

    .about-principle-card {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .about-principle-icon,
    .about-principle-icon svg {
        width: 30px;
        height: 30px;
    }

    .about-principle-card h2 {
        font-size: 16px;
    }

    .about-principle-card p {
        font-size: 14px;
    }

    .about-text-container h2 {
        font-size: 29px;
    }

    .about-text-container p {
        font-size: 16px;
    }

    .about-history-media {
        margin: 20px 0 24px;
    }

    .about-wide-image {
        margin-top: 24px;
        aspect-ratio: 1.35 / 1;
    }

    .about-social-section {
        padding-bottom: 52px;
    }

    .contacts-form-panel h1 {
        font-size: 36px;
    }

    .document-card {
        display: flex;
        flex-direction: column;
        gap: 22px;
        min-height: auto;
    }

    .document-card h2 {
        margin: 0;
        font-size: 20px;
    }

    .document-card-new {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 16px;
    }

    .document-card-new h2 {
        font-size: 20px;
    }

    .document-card-new .document-download {
        width: fit-content;
        justify-self: end;
    }

    .document-meta,
    .document-tags {
        margin: 0;
    }

    .document-download,
    .contact-form button {
        width: 100%;
        justify-content: space-between;
    }

    .document-card-new .document-download {
        width: fit-content;
        justify-content: flex-end;
    }

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

    .footer-copy {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}
