@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --header-height: 80px;
    --marquee-height: 64px;
    --bg: #faf9f8;
    --surface: #ffffff;
    --section-white: #ffffff;
    --section-gray: #f3f3f2;
    --line: #dfe3e8;
    --text: #1b1718;
    --muted: #737373;
    --gray: #5E5E5E;
    --gray-soft: #909090;
    --dark: #111111;
    --dark-gray: #353535;
    --display: 'Cormorant Garamond', Georgia, serif;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.55;
}

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

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: var(--header-height);
    background: rgba(250, 249, 248, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-wrapper {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon,
.footer-logo {
    width: 58px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-text {
    display: grid;
    line-height: 1.05;
}

.logo-title {
    font: 700 20px/1 var(--display);
    letter-spacing: 0.015em;
}

.logo-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.37em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #494545;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 2px;
    left: 50%;
    height: 1px;
    background: currentColor;
    transition: right 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    right: 0;
    left: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.header-phone:hover {
    color: var(--gray);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gray);
    font-size: 16px;
    font-weight: 700;
}

.header-phone svg,
.contact-list svg,
.service-content svg,
.calc-badge svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
}

.text-accent {
    color: var(--gray);
}

.text-italic {
    font-style: italic;
    font-weight: 500;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--gray);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.34em;
    line-height: 1;
}

.section-label::before {
    content: "";
    width: 40px;
    height: 1px;
    background: currentColor;
}

.section-label.light {
    color: #d7d0cf;
}

.btn {
    position: relative;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--button-fill, #e7e7e7);
    transform: translateX(-102%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::before,
.btn:focus-visible::before {
    transform: translateX(0);
}

.btn-primary {
    --button-fill: #8b8b8b;
    min-width: 244px;
    padding: 0 38px;
    background: linear-gradient(90deg, #4a4a4a, #777777);
    color: #fff;
}


.btn-white {
    --button-fill: #e7e7e7;
    min-width: 278px;
    padding: 0 38px;
    background: #fff;
    color: var(--text);
}

.btn-outline {
    --button-fill: #e7e7e7;
    min-width: 170px;
    min-height: 48px;
    padding: 0 31px;
    border-color: var(--gray);
    color: var(--gray);
    background: transparent;
}

.link-button {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 0;
    color: #494545;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition-duration: 0.3s;
}
.link-button:hover {
    scale: 1.06;
}

.hero {
    min-height: calc(100svh - var(--marquee-height));
    padding-top: var(--header-height);
    background:
        linear-gradient(90deg, rgba(250, 249, 248, 0.98) 0%, rgba(250, 249, 248, 0.83) 34%, rgba(250, 249, 248, 0.42) 61%, rgba(250, 249, 248, 0.18) 100%),
        url('images/hero-bg.jpg') center center / cover no-repeat;
}

.hero-inner {
    min-height: calc(100svh - var(--header-height) - var(--marquee-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 42px;
    padding-bottom: clamp(44px, 7svh, 88px);
}

.hero-content {
    width: 760px;
}

.hero h1 {
    margin-bottom: 38px;
    font-size: 126px;
}

.hero p {
    width: 680px;
    margin-bottom: 44px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.62;
}

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

.marquee {
    height: var(--marquee-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-block: 1px solid #d9d9d9;
    background: #f1f1f1;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 38px;
    padding-right: 38px;
}

.marquee span {
    color: var(--gray);
    font: italic 600 25px/1 var(--display);
    white-space: nowrap;
}

.marquee i {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 50%;
    background: var(--gray);
}

@keyframes marquee {
    to {
        transform: translateX(-33.333%);
    }
}

.section-pad {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 800px) 1fr;
    align-items: end;
    gap: 32px;
    margin-bottom: 72px;
}

.section-heading h2 {
    font-size: 56px;
}

.heading-line,
.top-line {
    height: 1px;
    background: var(--line);
}

.about {
    background: var(--section-white);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 506px;
    gap: 86px;
    align-items: start;
}

.about-copy {
    width: 680px;
}

.lead-quote {
    margin-bottom: 26px;
    color: var(--text);
    font: italic 600 31px/1.42 var(--serif);
}

.about-copy p:not(.lead-quote) {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.58;
}

.about-copy strong {
    color: var(--text);
    font-weight: 700;
}

.about-button {
    margin-top: 10px;
}

.about-media {
    position: relative;
    padding-top: 0;
}

.about-media .top-line {
    display: none;
}

.about-media img {
    width: 506px;
    height: 380px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 30px 70px rgba(70, 70, 70, 0.16);
}

.experience-badge {
    position: absolute;
    left: -24px;
    bottom: -23px;
    width: 188px;
    min-height: 100px;
    display: grid;
    align-content: center;
    padding: 22px;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(29, 21, 21, 0.09);
}

.experience-badge strong {
    color: var(--gray);
    font: 500 37px/1 var(--serif);
}

.experience-badge span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.books {
    background: var(--section-gray);
}

.books-heading {
    margin-bottom: 64px;
}

.books-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.books-arrow {
    position: relative;
    width: 52px;
    height: 52px;
    border: 1px solid #c8c8c8;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.books-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #e7e7e7;
    transform: translateX(-102%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.books-arrow:hover,
.books-arrow:focus-visible {
    border-color: var(--gray);
}

.books-arrow:hover::before,
.books-arrow:focus-visible::before {
    transform: translateX(0);
}

.books-slider {
    --books-gap: 32px;
    --books-per-view: 4;
    overflow: hidden;
    outline: none;
}

.books-slider:focus-visible {
    outline: 2px solid var(--gray);
    outline-offset: 8px;
}

.books-track {
    display: flex;
    gap: var(--books-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.books-track::-webkit-scrollbar {
    display: none;
}

.book-card {
    flex: 0 0 calc((100% - 96px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.book-cover {
    height: 390px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #e8e8e8;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: transform 0.35s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.025);
}

.book-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.book-card p {
    color: #76706f;
    font-size: 15px;
    line-height: 1.62;
}

.books-pagination {
    min-height: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.books-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c7c7c7;
    cursor: pointer;
    transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}

.books-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--gray);
}

.books-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.books-footer p {
    max-width: 680px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dce3e8;
    border-radius: 12px;
    background: #fff;
}

.service-img {
    height: 276px;
    overflow: hidden;
    background: #eee;
}

.service-img::after {
    content: "";
    position: absolute;
    top: 156px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 82%);
    pointer-events: none;
}

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

.service-content {
    padding: 36px 29px 31px;
}

.service-content svg {
    width: 27px;
    height: 27px;
    margin-bottom: 21px;
    color: var(--gray);
}

.service-content h3 {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 500;
}

.service-content p {
    color: var(--muted);
    font-size: 15px;
}

.services-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 41px;
    border-top: 1px solid var(--line);
}

.services-footer p {
    width: 600px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

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

.services-hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 76px) 0 92px;
    background: var(--section-gray);
}

.services-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 76px;
    align-items: center;
}

.services-hero h1 {
    max-width: 840px;
    margin-bottom: 32px;
    font-size: clamp(68px, 7.4vw, 126px);
}

.services-hero p {
    max-width: 690px;
    margin-bottom: 42px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.services-hero-media {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(70, 70, 70, 0.16);
}

.services-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(20,20,20,0.16));
}

.services-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

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

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

.service-detail-card {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: transparent;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-detail-card:hover {
    transform: scale(1.018);
    border-color: #d0d0d0;
    box-shadow: 0 22px 60px rgba(20, 20, 20, 0.08);
}

.service-detail-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.service-detail-card div {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px 28px 32px;
}

.service-detail-card span {
    margin-bottom: 18px;
    color: var(--gray);
    font: 600 34px/1 var(--display);
}

.service-detail-card h3 {
    margin-bottom: 16px;
    font-size: 34px;
}

.service-detail-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.services-workflow {
    padding: 120px 0;
    background: var(--section-gray);
}

.services-workflow-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.services-workflow h2 {
    margin-top: 22px;
    font-size: clamp(54px, 5.8vw, 86px);
}

.workflow-steps {
    display: grid;
    gap: 18px;
}

.workflow-steps article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 26px;
    padding: 30px 0;
    border-bottom: 1px solid #d7d7d5;
}

.workflow-steps article:first-child {
    border-top: 1px solid #d7d7d5;
}

.workflow-steps span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--gray);
    font: 600 24px/1 var(--display);
}

.workflow-steps h3 {
    grid-column: 2;
    margin-bottom: 8px;
    font-size: 30px;
}

.workflow-steps p {
    grid-column: 2;
    max-width: 690px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.services-note {
    background: var(--dark);
    color: #fff;
}

.services-note-card {
    display: grid;
    grid-template-columns: minmax(0, 430px) minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
}

.services-note h2 {
    margin-top: 20px;
    font-size: clamp(44px, 5vw, 76px);
}

.services-note p {
    color: #c9c4c2;
    font-size: 18px;
    line-height: 1.7;
}

.calculator {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 145px 0;
    background: radial-gradient(circle at 73% 2%, var(--dark-gray) 0, #242424 34%, var(--dark) 76%);
    color: #fff;
}

.calculator-page {
    background: var(--section-gray);
}

.calculator-placeholder {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 80px) 0 90px;
}

.calculator-placeholder-inner {
    max-width: 900px;
    text-align: center;
}

.calculator-placeholder .section-label {
    justify-content: center;
}

.calculator-placeholder h1 {
    margin: 26px auto 28px;
    font-size: clamp(58px, 8vw, 118px);
}

.calculator-placeholder p {
    max-width: 640px;
    margin: 0 auto 38px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
}

.calc-grid {
    display: grid;
    grid-template-columns: 548px minmax(0, 1fr);
    gap: 58px;
    align-items: center;
}

.calc-image {
    position: relative;
    justify-self: end;
    width: 548px;
}

.calc-image img {
    width: 548px;
    height: 548px;
    object-fit: cover;
    border-radius: 11px;
}

.calc-badge {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 137px;
    height: 142px;
    display: grid;
    align-content: center;
    gap: 9px;
    padding: 21px 24px;
    border-radius: 13px;
    background: rgba(66, 66, 66, 0.9);
    color: #fff;
}

.calc-badge svg {
    width: 27px;
    height: 27px;
}

.calc-badge strong {
    font: italic 500 26px/1 var(--serif);
    white-space: nowrap;
}

.calc-badge span {
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.calc-content {
    padding-left: 7px;
}

.calc-content h2 {
    margin-bottom: 28px;
    color: #fff;
    font-size: 60px;
}

.calc-content p {
    width: 540px;
    margin-bottom: 42px;
    color: #b7aeae;
    font-size: 19px;
    line-height: 1.55;
}

.contacts {
    background: var(--section-gray);
}

.contacts-page .contacts {
    padding-top: calc(var(--header-height) + 70px);
}

.contacts-page h1 {
    font-size: clamp(58px, 7vw, 104px);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    min-height: 466px;
    padding: 33px 32px;
    border: 1px solid #dce3e8;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(30, 22, 22, 0.05);
}

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

.contact-methods {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    margin-top: 34px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(30, 22, 22, 0.05);
}

.contact-methods h3 {
    margin-top: 16px;
    font-size: 42px;
}

.contact-method-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.contact-method-links a {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--section-gray);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-method-links a:hover,
.contact-method-links a:focus-visible {
    transform: scale(1.02);
    border-color: #d0d0d0;
    background: #ececec;
}

.contact-method-links span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.about-page {
    background: var(--section-white);
}

.about-hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 80px) 0 90px;
    background: var(--section-gray);
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 76px;
    align-items: center;
}

.about-hero h1 {
    max-width: 820px;
    margin-bottom: 34px;
    font-size: clamp(64px, 7vw, 112px);
}

.about-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.65;
}

.about-hero img,
.about-photo-stack img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.about-hero img {
    height: 620px;
    box-shadow: 0 30px 70px rgba(70, 70, 70, 0.16);
}

.about-story {
    background: var(--section-white);
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 80px;
    align-items: center;
}

.about-story-copy h2 {
    max-width: 760px;
    margin-bottom: 34px;
    font-size: 64px;
}

.about-story-copy p {
    max-width: 780px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.about-photo-stack {
    display: grid;
    gap: 26px;
}

.about-photo-stack img {
    height: 270px;
}

.about-photo-stack figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.about-values {
    padding: 120px 0;
    background: var(--section-gray);
}

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

.about-values article {
    min-height: 270px;
    padding: 34px 30px;
    border: 1px solid #dce3e8;
    border-radius: 14px;
    background: #fff;
}

.about-values span {
    color: var(--gray);
    font: 600 38px/1 var(--display);
}

.about-values h3 {
    margin: 30px 0 12px;
    font-size: 28px;
}

.about-values p,
.about-locations p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.about-locations {
    padding: 120px 0;
    background: var(--section-white);
}

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

.location-card {
    overflow: hidden;
    border: 1px solid #dce3e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(30, 22, 22, 0.05);
}

.location-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.location-content {
    padding: 32px;
}

.location-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.location-card h3 {
    margin-bottom: 14px;
    font-size: 32px;
}

.location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.location-meta span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--section-gray);
}

.location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.location-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gray);
    font-size: 14px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.location-links a:hover,
.location-links a:focus-visible {
    border-color: #d0d0d0;
    background: #f1f1f1;
}

.catalog-page {
    background: var(--section-white);
}

.catalog-hero {
    padding: calc(var(--header-height) + 58px) 0 36px;
}

.catalog-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 40px;
    align-items: center;
}

.catalog-hero h1 {
    margin-bottom: 0;
    font-size: clamp(72px, 8vw, 132px);
}

.catalog-search {
    position: relative;
    width: 100%;
}

.catalog-search label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.catalog-search input {
    width: 100%;
    height: 46px;
    border: 0;
    border-bottom: 1px solid #cfcfcd;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.25s ease;
}

.catalog-search input::placeholder {
    color: #9a9a9a;
}

.catalog-search input:focus {
    border-color: var(--gray);
}

.catalog-results {
    min-height: 18px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-access-note {
    max-width: 720px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.catalog-body {
    padding: 18px 0 140px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 44px;
    align-items: start;
}

.catalog-letter-section {
    scroll-margin-top: calc(var(--header-height) + 28px);
}

.catalog-letter-section + .catalog-letter-section {
    margin-top: 84px;
}

.catalog-letter-section.is-hidden {
    display: none;
}

.catalog-letter-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

.catalog-letter-heading span {
    width: 82px;
    height: 1px;
    background: var(--text);
}

.catalog-letter-heading h2 {
    font-size: 72px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 32px;
}

.catalog-card {
    min-width: 0;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
    transform-origin: center top;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    transform: scale(1.035);
}

.catalog-card:focus-visible .catalog-cover {
    border-color: var(--gray);
    box-shadow: 0 18px 50px rgba(20, 20, 20, 0.14);
}

.catalog-card.is-hidden {
    display: none;
}

.catalog-cover {
    height: 346px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e0e0de;
    border-radius: 26px;
    background: transparent;
    box-shadow: 0 14px 38px rgba(20, 20, 20, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.catalog-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.catalog-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.2;
}

.catalog-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.catalog-letter-empty {
    color: var(--muted);
    font-size: 16px;
}

.catalog-alphabet {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    display: grid;
    justify-items: center;
    align-items: stretch;
    gap: 0;
    height: calc(100svh - var(--header-height) - 20px);
    max-height: calc(100svh - var(--header-height) - 20px);
    padding: 8px 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(20, 20, 20, 0.05);
    backdrop-filter: blur(10px);
}

.catalog-alphabet a {
    width: 18px;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-alphabet a:hover,
.catalog-alphabet a:focus-visible,
.catalog-alphabet a.is-active {
    background: var(--gray);
    color: #fff;
}

.catalog-empty {
    display: none;
    margin-top: 46px;
    color: var(--muted);
    font-size: 18px;
}

.catalog-empty.is-visible {
    display: block;
}

.extended-catalog-link {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.extended-catalog-link:hover,
.extended-catalog-link:focus-visible {
    border-color: #d0d0d0;
    background: #f1f1f1;
    color: var(--text);
}

.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 17, 17, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.catalog-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.catalog-modal-card {
    position: relative;
    width: min(920px, 100%);
    max-height: min(680px, calc(100svh - 48px));
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    overflow: auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #faf9f8;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.24);
    transform: scale(0.97);
    transition: transform 0.25s ease;
}

.catalog-modal.is-open .catalog-modal-card {
    transform: scale(1);
}

.catalog-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.catalog-modal-close:hover,
.catalog-modal-close:focus-visible {
    border-color: #d0d0d0;
    background: #ececec;
}

.catalog-modal-cover {
    min-height: 430px;
    overflow: hidden;
    border: 1px solid #e0e0de;
    border-radius: 28px;
    background: #fff;
}

.catalog-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
}

.catalog-modal-content {
    align-self: center;
    padding-right: 26px;
}

.catalog-modal-content h2 {
    margin: 18px 0 20px;
    font-size: clamp(40px, 5vw, 72px);
}

.catalog-modal-content p {
    max-width: 460px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.catalog-modal-content .btn {
    width: fit-content;
}

.catalog-modal-content svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-page,
.admin-page {
    background: var(--section-gray);
}

.auth-screen,
.admin-screen {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 70px) 0 90px;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 72px;
    align-items: center;
}

.auth-grid h1,
.admin-heading h1 {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: clamp(58px, 7vw, 104px);
}

.auth-grid p,
.admin-heading p {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.admin-heading p {
    max-width: 760px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 34px rgba(20, 20, 20, 0.04);
}

.auth-card,
.admin-create-card,
.admin-accounts-card,
.admin-confirm-card {
    display: grid;
    gap: 18px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 20, 20, 0.07);
}

.admin-create-card,
.admin-accounts-card {
    align-self: start;
}

.auth-card label,
.admin-create-card label,
.admin-confirm-card label {
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-card input,
.admin-create-card input,
.admin-confirm-card input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #faf9f8;
    color: var(--text);
    padding: 0 20px;
    outline: none;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
}

.auth-card input:focus,
.admin-create-card input:focus,
.admin-confirm-card input:focus {
    border-color: var(--gray);
    background: #fff;
}

.auth-message {
    color: #8a2d2d;
    font-size: 14px;
}

.admin-screen {
    align-items: flex-start;
}

.admin-heading {
    display: grid;
    grid-template-columns: minmax(0, 920px);
    gap: 24px;
    align-items: start;
    margin-bottom: 42px;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.admin-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-message {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
}

.admin-message-error {
    color: #8a2d2d;
}

.admin-message-success {
    color: #315f3d;
}

.admin-create-card h2,
.admin-accounts-card h2,
.admin-confirm-card h2 {
    font-size: 34px;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.admin-card-head span {
    color: var(--muted);
    font-size: 14px;
}

.admin-account-list {
    display: grid;
    gap: 12px;
}

.admin-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #faf9f8;
}

.admin-account-row.is-frozen {
    background: #eeeeec;
}

.admin-account-row strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.admin-account-row span {
    color: var(--muted);
    font-size: 14px;
}

.admin-account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-account-actions form {
    margin: 0;
}

.admin-account-actions .btn {
    min-width: 136px;
}

.admin-danger-button {
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid #c9c9c7;
    border-radius: 999px;
    background: transparent;
    color: #8a2d2d;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.admin-danger-button:hover,
.admin-danger-button:focus-visible {
    border-color: #b8b8b6;
    background: #efefed;
}

.admin-empty {
    color: var(--muted);
    font-size: 16px;
}

.admin-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 17, 17, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.admin-confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.admin-confirm-card {
    position: relative;
    width: min(520px, 100%);
}

.admin-confirm-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.contact-list {
    display: grid;
    align-content: start;
    gap: 16px;
    padding-top: 35px;
}

.contact-address {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.contact-list svg {
    color: var(--gray);
}

.contact-address h3,
.contact-card h3 {
    margin-bottom: 7px;
    font-size: 22px;
}

.contact-address p,
.contact-card > p {
    color: var(--muted);
    font-size: 16px;
}

.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    font-size: 17px;
}

.contact-list a:hover {
    color: var(--gray);
}

.contact-card form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    border: 1px solid #dce3e8;
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    outline: none;
    font-size: 16px;
}

.contact-card input {
    height: 48px;
    padding: 0 16px;
}

.contact-card textarea {
    min-height: 122px;
    resize: vertical;
    padding: 14px 16px;
}

.contact-card input:focus,
.contact-card textarea:focus {
    border-color: var(--gray);
}

.contact-card button {
    width: 100%;
    margin-top: 6px;
    border: 0;
    border-radius: 5px;
}

.site-footer {
    padding: 34px 0;
    background: #111111;
    color: #aaa2a1;
    font-size: 13px;
}

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

.footer-inner > div {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.footer-logo {
    width: 44px;
    height: 38px;
}

@media (max-width: 1100px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(100% - 32px, 860px);
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: calc(100svh - var(--marquee-height));
        padding-top: var(--header-height);
    }

    .hero-inner {
        min-height: calc(100svh - var(--header-height) - var(--marquee-height));
        padding-top: 24px;
        padding-bottom: clamp(48px, 8svh, 72px);
    }

    .hero-content,
    .hero p,
    .about-copy,
    .calc-content p {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(64px, 13vw, 100px);
    }

    .section-heading,
    .about-grid,
    .about-hero-grid,
    .about-story-grid,
    .services-hero-grid,
    .services-workflow-grid,
    .services-note-card,
    .auth-grid,
    .admin-heading,
    .admin-layout,
    .calc-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        gap: 28px;
    }

    .heading-line {
        width: 100%;
    }

    .about-media {
        padding-top: 0;
    }

    .about-media .top-line {
        display: none;
    }

    .about-media,
    .about-media img,
    .about-hero img,
    .calc-image,
    .calc-image img {
        width: 100%;
    }

    .about-hero img {
        height: 460px;
    }

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

    .services-hero-media,
    .services-hero-media img {
        min-height: 460px;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .contact-offices-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

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

    .catalog-hero-row {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .catalog-search-panel {
        width: min(100%, 520px);
    }

    .catalog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .catalog-alphabet {
        top: var(--header-height);
        z-index: 5;
        grid-row: 1;
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 2px;
        height: auto;
        margin: 0 -16px 28px;
        padding: 10px 16px;
        max-height: none;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
    }

    .catalog-alphabet a {
        flex: 0 0 auto;
        width: 28px;
        height: 26px;
        font-size: 16px;
    }

    .catalog-modal-card {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 28px;
        padding: 34px;
    }

    .catalog-modal-cover {
        min-height: 340px;
    }

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

    .admin-account-actions {
        flex-wrap: wrap;
    }

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

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

    .services-note-card {
        justify-items: start;
    }

    .books-slider {
        --books-per-view: 2;
    }

    .book-card {
        flex-basis: calc((100% - 32px) / 2);
    }

    .calc-image {
        justify-self: stretch;
    }
}

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

    .logo-title {
        font-size: 16px;
    }

    .logo-icon {
        width: 50px;
        height: 44px;
    }

    .header-phone {
        font-size: 0;
        gap: 0;
    }

    .header-phone svg {
        width: 22px;
        height: 22px;
    }

    .hero {
        min-height: calc(100svh - var(--marquee-height));
        background-position: 58% center;
    }

    .hero-inner {
        padding-bottom: 44px;
    }

    .hero h1,
    .about-hero h1,
    .catalog-hero h1,
    .section-heading h2,
    .about-story-copy h2,
    .calc-content h2 {
        font-size: clamp(44px, 14vw, 62px);
    }

    .hero p,
    .about-hero p,
    .about-copy p:not(.lead-quote),
    .about-story-copy p,
    .calc-content p {
        font-size: 16px;
    }

    .hero-actions,
    .books-footer,
    .services-footer,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .books-footer .btn {
        width: 100%;
    }

    .section-pad,
    .about-hero,
    .about-values,
    .about-locations,
    .books,
    .services,
    .services-catalog,
    .services-note {
        padding: 100px 0;
    }

    .services-hero {
        padding: calc(var(--header-height) + 52px) 0 80px;
    }

    .services-hero h1 {
        font-size: clamp(48px, 14vw, 72px);
    }

    .services-hero p {
        font-size: 17px;
    }

    .services-hero-media,
    .services-hero-media img {
        min-height: 340px;
    }

    .catalog-hero {
        padding: calc(var(--header-height) + 34px) 0 24px;
    }

    .catalog-body {
        padding: 36px 0 100px;
    }

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

    .contact-methods {
        padding: 26px 22px;
    }

    .contact-methods h3 {
        font-size: 34px;
    }

    .contact-method-links {
        grid-template-columns: 1fr;
    }

    .auth-screen,
    .admin-screen {
        padding: calc(var(--header-height) + 52px) 0 80px;
    }

    .auth-card,
    .admin-create-card,
    .admin-accounts-card,
    .admin-confirm-card {
        padding: 26px 22px;
    }

    .auth-grid h1,
    .admin-heading h1 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .admin-account-actions,
    .admin-account-actions .btn,
    .admin-danger-button {
        width: 100%;
    }

    .services-list-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        min-height: 0;
    }

    .service-detail-card img {
        height: 220px;
    }

    .service-detail-card h3 {
        font-size: 28px;
    }

    .services-workflow {
        padding: 100px 0;
    }

    .workflow-steps article {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 0;
    }

    .workflow-steps span,
    .workflow-steps h3,
    .workflow-steps p {
        grid-column: auto;
        grid-row: auto;
    }

    .services-note-card {
        gap: 28px;
    }

    .catalog-search input {
        height: 46px;
        padding: 0 0 8px;
        font-size: 16px;
    }

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

    .catalog-letter-heading h2 {
        font-size: 58px;
    }

    .catalog-cover {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .catalog-card:hover,
    .catalog-card:focus-visible {
        transform: scale(1.018);
    }

    .catalog-modal {
        padding: 14px;
    }

    .catalog-modal-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 20px 24px;
        border-radius: 24px;
    }

    .catalog-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }

    .catalog-modal-cover {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }

    .catalog-modal-content {
        padding-right: 0;
    }

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

    .books-slider {
        --books-gap: 20px;
        --books-per-view: 1;
    }

    .book-card {
        flex-basis: 100%;
    }

    .book-cover {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .service-img,
    .about-hero img,
    .about-photo-stack img,
    .location-card img,
    .calc-image img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .location-content {
        padding: 26px 22px;
    }

    .calculator {
        padding: 100px 0;
    }

    .calc-badge {
        right: 14px;
        bottom: 14px;
    }

    .contact-card {
        padding: 28px 22px;
    }
}
