/*
Theme Name: Karsar Landing
Description: Public website for Klowd and KarSar.
Version: 3.4.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: klowd-public
*/

@font-face {
    font-family: "Oswald";
    src: url("assets/css/oswald/Oswald.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
}

@font-face {
    font-family: "Bebas Neue Cyrillic";
    src: url("assets/css/bebas-neue/BebasNeueCyrillic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #0f0c09;
    --deep: #363636;
    --brand: #c0443b;
    --signal: #e8443b;
    --button-red: #d32625;
    --button-red-hover: #b91e1e;
    --paper: #fff;
    --fog: #f6f4f2;
    --line: #e7e3e1;
    --muted: #635e5b;
    --button-radius: 6px;
    --gutter: clamp(20px, 4vw, 72px);
    --type: "Oswald", "Arial Narrow", Arial, sans-serif;
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 2.25rem/1.55 var(--type); }
.klowd *, .klowd *::before, .klowd *::after { box-sizing: border-box; }
.klowd :where(a) { color: inherit; }
.klowd :where(a, summary, button):focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.klowd [hidden] { display: none !important; }
.klowd :where(h1, h2, h3, p, dl, dd, figure) { margin: 0; }
.klowd :is(h1, h2, h3) { font-weight: inherit; line-height: 1.12; text-wrap: balance; }
.klowd main h1 { font-family: "Bebas Neue Cyrillic", var(--type); font-weight: 400; }
.klowd h2 { font-size: clamp(4.3rem, 7.8vw, 7.3rem); letter-spacing: -.032em; }
.klowd h3 { font-size: clamp(2.8rem, 4.6vw, 4rem); letter-spacing: -.018em; }
.klowd main { overflow-wrap: anywhere; }
.klowd main p { text-wrap: pretty; }
.klowd img, .klowd video { max-width: 100%; }
.klowd button, .klowd summary { font: inherit; cursor: pointer; }
.klowd :is(button, summary, a[role="button"], input[type="submit"], input[type="button"], input[type="reset"],
    .login, .button-primary, .button-line, .catalog-download, .wp-element-button, .wp-block-button__link) {
    border-radius: var(--button-radius);
}
.wrap, .klowd main:not(.page-home) { width: min(calc(100% - 2 * var(--gutter)), 1440px); margin-inline: auto; }
.mast { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.mast-inner { min-height: 80px; display: flex; align-items: center; gap: clamp(18px, 3vw, 64px); }
.brand { display: inline-flex; flex: none; }
.brand img { width: clamp(138px, 12vw, 185px); height: auto; }
.brand img, .partner-note img { filter: grayscale(1); }
.top-nav, .actions, .languages { display: flex; align-items: center; }
.top-nav { gap: clamp(16px, 2vw, 36px); font-size: 2rem; }
.top-nav a, .actions a, .site-foot a { text-decoration: none; }
.top-nav a:hover, .top-nav summary:hover, .site-foot a:hover { color: var(--brand); }
.top-nav details { position: relative; }
.top-nav summary { list-style: none; }
.top-nav summary::-webkit-details-marker { display: none; }
.top-nav summary::after { content: '+'; margin-inline-start: .4em; color: var(--muted); }
.top-nav details[open] summary::after { content: '−'; }
.nav-panel { position: absolute; z-index: 4; inset: calc(100% + 12px) auto auto -18px; width: max-content; max-width: 85vw; padding: 9px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 32px #2117141c; }
.nav-panel a { display: block; padding: 9px 12px; }
.nav-panel a:hover { color: var(--brand); background: var(--fog); }
.actions { margin-inline-start: auto; gap: 18px; }
.languages { gap: 6px; font-size: 1.625rem; line-height: 1.2; letter-spacing: .05em; }
.languages a { padding: 6px 3px; color: var(--muted); }
.languages [aria-current] { color: var(--brand); border-bottom: 1px solid; }
.login, .hero-actions a { display: inline-flex; align-items: center; justify-content: center; gap: .85em; }
.login { background: var(--button-red); color: white; padding: 8px 16px; font-size: 28px; line-height: 1.24; }
.login:hover { background: var(--button-red-hover); }
.nav-toggle { display: none; }
.hero { background: var(--paper); }
.hero-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    justify-items: end;
    width: 100%;
    min-height: clamp(28rem, 40vw, 43rem);
    padding-block: clamp(40px, 5vw, 80px);
    padding-inline: max(var(--gutter), calc((100% - 1440px) / 2));
    background: var(--deep);
    color: white;
}
.hero-photos { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-photos::after, .catalog-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 20%, rgb(31 32 33 / .12) 39%, rgb(31 32 33 / .73) 66%, rgb(31 32 33 / .9));
}
.hero-copy { width: min(100%, 46%); text-align: right; }
.hero-company { display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: 1.625rem; line-height: 1.3; letter-spacing: .11em; text-transform: uppercase; }
.hero-company::before { content: ''; height: 2px; width: 30px; background: var(--signal); }
.hero h1 { font-size: clamp(3.65rem, 6.6vw, 6.6rem); line-height: .99; letter-spacing: .01em; margin: .24em 0 .28em; }
.hero h1 span { display: block; }
.hero-lead { max-width: 40ch; margin-inline-start: auto; font-size: clamp(2.25rem, 3vw, 2.8rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 24px; margin-top: 24px; }
.hero-actions a { text-decoration: none; font-size: 2rem; line-height: 1.25; min-height: 38px; }
.klowd :is(.button-primary, .catalog-download, .wp-block-button__link:where(:not(.has-background, .is-style-outline *))) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30.4px;
    max-width: 100%;
    padding: 5px 18px;
    background: var(--button-red);
    color: white;
    font: 300 2rem/1.25 var(--type);
    text-align: center;
    text-decoration: none;
}
.klowd :is(.button-primary, .catalog-download, .wp-block-button__link:where(:not(.has-background, .is-style-outline *))):hover { background: var(--button-red-hover); }
.button-line { color: white; }
.button-line:hover { text-decoration: underline; text-underline-offset: 5px; }
.metrics { background: var(--deep); color: white; padding-block: clamp(48px,6vw,90px); }
.metric-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(32px,6vw,120px); align-items: start; }
/* Keep the longest metric on one line as the number of columns changes. */
.stats { display: grid; font-size: clamp(4rem,7.2vw,7.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 8ch), 1fr)); gap: 26px 18px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: end; border-top: 1px solid #ffffff40; padding-top: 14px; }
.stats dd { margin: 0; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.035em; white-space: nowrap; }
.stats dt { color: #d4cfcc; font-size: 28px; margin-top: 7px; }
.stats-note { margin-top: 20px; max-width: 44ch; color: #d4cfcc; }
.work-section, .about-section, .customers { padding-block: clamp(52px,6vw,100px); }
.section-heading, .about-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px,5vw,86px); align-items: center; }
.section-heading p, .about-layout p { color: var(--muted); }
.service-layout { margin-top: clamp(24px, 3vw, 48px); }
.service-item {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
    padding-block: clamp(24px, 3vw, 44px);
    border-top: 1px solid var(--line);
}
.service-item:last-child { padding-bottom: 0; }
.service-item h3 { color: var(--brand); }
.service-item p { max-width: 58ch; margin-top: .8em; color: var(--muted); }
.service-item img { display: block; width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
@media (min-width: 641px) {
    .service-item:nth-child(even) img { grid-column: 1; grid-row: 1; }
    .service-item:nth-child(even) > div { grid-column: 2; grid-row: 1; }
}
.about-section { background: var(--fog); }
.about-layout h2 span { color: var(--brand); }
.about-layout video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--deep); }
.about-layout h2 { font-size: clamp(60px,6.7vw,108px); }
.about-layout p { margin-top: 20px; max-width: 58ch; }
.section-heading p { max-width: 55ch; }
#projects .section-heading { margin-bottom: clamp(24px, 3vw, 44px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 12px; margin-top: clamp(26px, 3vw, 46px); }
.cards a {
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    padding: clamp(9rem, 14vw, 15rem) clamp(20px, 2.3vw, 36px) clamp(22px, 2.4vw, 38px);
    background: var(--deep);
    color: white;
    text-decoration: none;
}
.company-photo, .cards a::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.company-photo { z-index: -2; object-fit: cover; }
.cards a::before { content: ''; z-index: -1; background: linear-gradient(180deg, transparent, rgb(34 35 36 / .78) 45%, rgb(34 35 36 / .97)); }
.cards a:hover, .cards a:focus-visible { box-shadow: inset 0 -3px var(--signal); }
/* The longest wordmark is just over 12 times its cap height. */
.company-logo { display: block; width: auto; height: min(1.5rem, 8cqi); margin-bottom: 14px; filter: brightness(0) invert(.95); }
.customers { background: var(--fog); }
.customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 88px); align-items: start; }
.customers .section-heading { display: block; }
.customers .section-heading p { margin-top: 1em; max-width: 34ch; }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.partners li { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 22px 8px; border-top: 1px solid #d8d5d2; text-align: center; }
.partners img { width: 100%; height: 56px; object-fit: contain; filter: grayscale(1) brightness(.74); }
.partners span { color: #504e4b; font-size: 1.875rem; line-height: 1.25; overflow-wrap: anywhere; }
.klowd-map { height: clamp(340px, 43vw, 560px); background: #eeeae7; isolation: isolate; }
.klowd-map.leaflet-container, .klowd-map.leaflet-container .leaflet-bar a, .klowd-map.leaflet-container a.leaflet-popup-close-button { font-family: var(--type); }
.klowd-map.leaflet-container { font-size: 1.5rem; }
.klowd-map .leaflet-control-zoom { border-radius: var(--button-radius); }
.klowd .klowd-map .leaflet-control-zoom a:first-child { border-radius: var(--button-radius) var(--button-radius) 0 0; }
.klowd .klowd-map .leaflet-control-zoom a:last-child { border-radius: 0 0 var(--button-radius) var(--button-radius); }
.crumb { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 28px; font-size: 28px; color: var(--muted); }
.klowd main:not(.page-home) { padding-block: clamp(32px,4vw,72px) clamp(60px,7vw,100px); }
main:not(.page-home) h1 { margin-bottom: .45em; max-width: 23ch; font-size: clamp(2.5rem,5.2vw,4.75rem); line-height: 1.02; letter-spacing: .01em; overflow-wrap: anywhere; }
main:not(.page-home) h2 { margin: 1.3em 0 .6em; font-size: clamp(52px,6vw,88px); }
.page-policy p, .page-policy h2 { max-width: 70ch; }
.page-policy p + p, .page-karsar p + p, .page-document p + p { margin-top: .85em; }
.page-policy p, .page-karsar li, .page-karsar p { overflow-wrap: anywhere; }
.klowd main.page-policy { max-width: 860px; margin-block: clamp(24px,3vw,44px); padding-inline: clamp(18px,4vw,56px); border-top: 3px solid var(--brand); background: var(--fog); }
.contact-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); background: var(--fog); }
.contact-info { align-content: center; padding: clamp(22px,3.4vw,54px); border-top: 3px solid var(--signal); background: var(--deep); color: white; }
.contact-info h2:first-child { margin-top: 0; }
.contact-info p { margin-bottom: 15px; }
.contact-info a { font-size: clamp(40px,4vw,60px); text-underline-offset: 5px; }
.contact-layout .klowd-map { min-height: 100%; }
button[data-copy] {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    vertical-align: middle;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}
button[data-copy]:is(:hover, :focus-visible) { background: rgb(120 120 120 / .18); }
button[data-copy] .copy-check, button.is-copied .copy-sheets { display: none; }
button.is-copied .copy-check { display: block; }
.copy-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.equipment-photo { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.catalog-group { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: .8fr 2fr; gap: 20px; }
.catalog-group h3 { font-size: clamp(40px,4vw,60px); }
.catalog-group ul, .sarmat-list { margin: 0; padding: 0; list-style: none; }
.catalog-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-group li { border: 1px solid var(--line); background: white; padding: 7px 12px; }
.page-karsar a { text-underline-offset: 3px; }
.sarmat-list { display: grid; grid-template-columns: repeat(3,1fr); margin: 20px 0; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sarmat-list li { padding: 18px; background: white; }
.site-foot { border-top: 3px solid var(--signal); background: var(--fog); color: var(--ink); padding: clamp(36px,5vw,74px) 0 24px; }
.foot-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.foot-layout strong { color: var(--ink); }
.foot-links a, .foot-contact p { display: block; margin-top: 8px; }
.partner-note, .foot-bottom { display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 32px; }
.partner-note img { width: 100px; }
.partner-note small { max-width: 92ch; color: var(--muted); }
.foot-bottom { justify-content: space-between; font-size: 28px; }
.catalog-intro { position: relative; isolation: isolate; display: grid; align-items: center; justify-items: end; min-height: clamp(19rem,31vw,29rem); padding: clamp(24px,4vw,64px); background: var(--deep); color: white; text-align: right; }
.catalog-intro::before { z-index: -1; }
.catalog-intro .equipment-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-height: none; object-position: 50% 45%; }
.catalog-intro > div { width: min(54%, 35rem); }
.page-karsar .catalog-intro h1 { margin-inline-start: auto; font-size: clamp(2.3rem,4.6vw,4.5rem); }
.catalog-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.catalog-action small { font-size: 1.6rem; }
/* Older catalogs saved in the WordPress editor include an icon inside the download link. */
.catalog-download > [aria-hidden="true"] { display: none; }
.catalog-download small { margin-inline-start: .5em; }
.catalog-group li:has(a) { padding: 0; border: 0; }
.page-karsar a[download]:not(.catalog-download), .catalog-group a {
    display: inline-flex; align-items: center; max-width: 100%; min-height: 30px; padding: 4px 12px;
    border: 1px solid #caa6a2; border-radius: var(--button-radius); background: #fcf7f6;
    color: var(--brand); font-size: 2rem; line-height: 1.25; text-decoration: none;
}
.page-karsar a[download]:not(.catalog-download):hover, .catalog-group a:hover { border-color: var(--brand); text-decoration: underline; }
.page-policy a, .page-document a:not(.button-primary, .wp-block-button__link) { color: var(--brand); text-underline-offset: 3px; }
.page-policy h2 { padding-top: .65em; border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
    .mast-inner { gap: 18px; }
    .top-nav, .actions { gap: 12px; font-size: 28px; }
    .metric-layout { grid-template-columns: .7fr 1.3fr; gap: 26px; }
}
@media (max-width: 1120px) {
    .mast-inner { display: grid; grid-template-columns: auto 1fr; min-height: 64px; gap: 0; padding-block: 12px; }
    .brand img { width: 120px; }
    .actions { grid-column: 2; grid-row: 1; gap: 12px; }
    .top-nav { grid-column: span 2; grid-row: 2; padding: 12px 0 0; flex-wrap: wrap; }
    .has-menu .top-nav { display: none; }
    .menu-open .top-nav { display: flex; align-items: stretch; flex-flow: column nowrap; gap: 0; }
    .menu-open .top-nav > a, .menu-open .top-nav summary { padding: 10px 0; border-top: 1px solid var(--line); }
    .menu-open .nav-panel { position: static; box-shadow: none; width: auto; max-width: 100%; border: none; padding: 0 12px; }
    .nav-toggle { width: 32px; height: 36px; padding: 6px; border: none; background: none; color: var(--ink); display: grid; align-content: center; gap: 4px; }
    .nav-toggle i, .nav-toggle::before, .nav-toggle::after { content: ''; display: block; height: 2px; background: currentColor; }
}
@media (max-width: 820px) {
    .hero-copy { width: 54%; }
    .hero h1 { font-size: clamp(3.25rem, 7.2vw, 3.75rem); }
    .hero-actions { gap: 12px 18px; }
    .customer-layout { grid-template-columns: 1fr; }
    .customers .section-heading p { max-width: 50ch; }
    .about-layout, .section-heading { gap: 24px; }
    .metric-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero-stage { min-height: 29rem; align-items: end; padding-block: 60px 30px; }
    .hero-photo { object-position: 28% center; }
    .hero-photos::after, .catalog-intro::before { background: linear-gradient(150deg, rgb(31 32 33 / .08), rgb(31 32 33 / .6) 46%, rgb(31 32 33 / .92) 88%); }
    .hero-copy { width: 100%; }
    .hero h1 { font-size: clamp(3.25rem, 12vw, 4.4rem); }
    .hero-lead { max-width: 34ch; }
    .hero-company { font-size: 1.5rem; }
    .hero-actions { gap: 8px 16px; margin-top: 22px; }
    .hero-actions a { gap: .45em; font-size: 1.875rem; min-height: 36px; }
    .klowd :is(.button-primary, .catalog-download, .wp-block-button__link:where(:not(.has-background, .is-style-outline *))) { min-height: 28.8px; padding-inline: 13px; font-size: 1.875rem; }
    .service-item, .about-layout, .section-heading, .cards, .contact-layout, .catalog-group { grid-template-columns: 1fr; }
    .partners li { padding: 18px 4px; gap: 9px; }
    .partners img { height: 42px; }
    .partners span { font-size: 1.625rem; }
    .catalog-intro { align-items: end; min-height: 19rem; }
    .catalog-intro > div { width: 100%; }
    main.page-policy h1 { font-size: clamp(1.625rem, 8.4vw, 2.5rem); }
    .contact-layout .klowd-map { min-height: 0; }
    .sarmat-list { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .mast-inner { column-gap: 7px; }
    .brand img { width: clamp(88px,25vw,114px); }
    .actions { gap: 6px; }
    .languages { font-size: 22px; gap: 2px; }
    .login { padding: 5.6px 9px; font-size: 24px; gap: 3px; }
    .foot-layout { grid-template-columns: 1fr; }
    .partner-note, .foot-bottom { align-items: start; flex-direction: column; gap: 12px; }
}
