/* Reference coordinates: references/approved/homepage-2026-09-13.png, 853 × 1844.
 * All text is live HTML. Atlas regions contain only photography / decoration.
 * Desktop geometry scales from reference units; mobile reflows below 768px.
 */
@font-face { font-family: "Kosar Vazirmatn"; src: url("../fonts/vazirmatn/vazirmatn-arabic-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Kosar Vazirmatn"; src: url("../fonts/vazirmatn/vazirmatn-arabic-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Kosar Vazirmatn"; src: url("../fonts/vazirmatn/vazirmatn-arabic-800-normal.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }

body.kosar-home {
  --u: calc(100vw / 853);
  --k4-ink: #302014;
  --k4-paper: #f7f4ec;
  --k4-olive: #65633c;
  --k4-muted: #77736b;
  color: var(--k4-ink);
  background-color: var(--k4-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.64' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%236e5435' opacity='.04' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
  font-family: "Kosar Vazirmatn", Tahoma, sans-serif;
  font-size: calc(11 * var(--u));
  line-height: 1.65;
  overflow-x: clip;
}
/* Root inline-size excludes classic scrollbars, unlike vw. */
@supports (width: 1cqw) {
  html:has(body.kosar-home) { container-type: inline-size; }
  body.kosar-home { --u: calc(100cqw / 853); }
}
body.kosar-home h1, body.kosar-home h2, body.kosar-home h3, body.kosar-home strong, body.kosar-home .kosar-button { font-family: inherit; }
.k4-home, .k4-footer { direction: rtl; }
.k4-home :where(h1,h2,h3,p), .k4-footer :where(h2,p) { margin: 0; }
.k4-home :where(a), .k4-footer :where(a) { color: inherit; text-decoration: none; }
.k4-home svg, .k4-footer svg { display: block; width: 100%; height: 100%; }
.k4-home *, .k4-footer * { box-sizing: border-box; }
.k4-home { padding-bottom: calc(6 * var(--u)); }
.k4-shell { width: calc(769 * var(--u)); max-width: calc(100% - 32px); margin-inline: auto; }
.k4-wide { width: calc(773 * var(--u)); max-width: calc(100% - 32px); margin-inline: auto; }

/* Shared header overrides are scoped to the homepage. */
body.kosar-home .site-header { background: transparent; }
body.kosar-home .site-header__inner {
  width: calc(715 * var(--u)); max-width: none; min-height: calc(52 * var(--u));
  margin: 0 calc(42 * var(--u)) 0 auto; padding: 0;
  grid-template-columns: calc(151 * var(--u)) minmax(0, 1fr) calc(179 * var(--u)); gap: calc(22 * var(--u));
}
body.kosar-home .site-header .kosar-brand { gap: calc(7 * var(--u)); min-width: 0; }
body.kosar-home .site-header .kosar-brand__mark { width: calc(40 * var(--u)); height: calc(46 * var(--u)); }
body.kosar-home .site-header .kosar-brand__copy strong { font-size: calc(13.1 * var(--u)); font-weight: 800; line-height: 1.4; }
body.kosar-home .site-header .primary-nav { display: block; min-width: 0; }
body.kosar-home .site-header .primary-nav ul { display: flex; justify-content: space-between; gap: calc(12 * var(--u)); margin: 0; padding: 0; list-style: none; }
body.kosar-home .site-header .primary-nav a { min-height: calc(38 * var(--u)); display: inline-flex; align-items: center; padding: 0; font-size: calc(9.4 * var(--u)); font-weight: 400; white-space: nowrap; }
body.kosar-home .site-header__action {
  display: inline-flex; grid-column: 1; grid-row: 1; width: 100%; min-width: 0;
  height: calc(31 * var(--u)); min-height: 0; padding: 0 calc(9 * var(--u));
  border: calc(.65 * var(--u)) solid #c29452; border-radius: calc(3 * var(--u));
  background: linear-gradient(105deg,#c79850,#bd8c42); color: #332211;
  gap: calc(9 * var(--u)); justify-content: center; font-size: calc(9.5 * var(--u)); font-weight: 700; box-shadow: inset 0 1px 0 #e5c590;
}
body.kosar-home .site-header__action svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
body.kosar-home .menu-toggle, body.kosar-home .mobile-nav { display: none; }

/* An atlas is used as a CSS crop, so the reference pixels are not resynthesized. */
.k4-art { display: block; position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.k4-art .k4-art__atlas { position: absolute; width: var(--art-width); height: var(--art-height); max-width: none; max-height: none; left: var(--art-left); top: var(--art-top); margin: 0; border: 0; object-fit: fill; }
.k4-art .k4-art__custom { width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; }
.k4-art__preserved { position: absolute; inset: 0; display: block; mask-repeat: no-repeat; }
.k4-art__preserved--service { mask-image: linear-gradient(#000 0 65%,transparent 70%); }
.k4-art__preserved--feature { mask-image: linear-gradient(#000 0 60%,transparent 66%),linear-gradient(to left,#000 0 43%,transparent 47%); }
.k4-art__preserved--quality { mask-image: linear-gradient(#000 0 72%,transparent 78%); }
.k4-art__preserved--project { mask-image: linear-gradient(#000 0 65%,transparent 71%); }
.k4-art__preserved--export { clip-path: polygon(34% 0,100% 0,100% 100%,56% 100%,56% 74%,34% 74%); }
.k4-art__preserved--cta { mask-image: linear-gradient(to right,#000 0 26%,transparent 29%); }
.k4-hero { min-height: calc(264 * var(--u)); position: relative; }
.k4-hero__paper { position: absolute; left: 0; top: 0; width: calc(377 * var(--u)); height: calc(264 * var(--u)); }
.k4-hero__image--desktop { position: absolute; top: 0; right: 0; width: calc(476 * var(--u)); height: calc(264 * var(--u)); }
.k4-hero__image--mobile { display: none; }
.k4-hero__copy { position: relative; width: calc(280 * var(--u)); margin-right: auto; margin-left: calc(85 * var(--u)); padding-top: calc(34 * var(--u)); padding-bottom: calc(56 * var(--u)); text-align: right; }
.k4-hero h1 { font-size: calc(39 * var(--u)); font-weight: 800; line-height: 1.27; letter-spacing: calc(-.7 * var(--u)); }
.k4-hero h1 span { display: block; }
.k4-hero__copy > p { font-size: calc(15.5 * var(--u)); margin: calc(6 * var(--u)) 0 calc(10 * var(--u)); line-height: calc(24 * var(--u)); }
.k4-button { display: inline-flex; align-items: center; justify-content: center; gap: calc(12 * var(--u)); min-height: calc(31 * var(--u)); min-width: calc(172 * var(--u)); padding: calc(5 * var(--u)) calc(11 * var(--u)); border-radius: calc(3 * var(--u)); background: linear-gradient(110deg,#c79a53,#bf8e46); border: 1px solid #c49a60; box-shadow: inset 0 1px 0 #ead0a2; font-size: calc(10.5 * var(--u)); font-weight: 700; }
.k4-button svg, .k4-outline svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); flex: none; }
.k4-stats { position: relative; z-index: 2; width: calc(680 * var(--u)); max-width: calc(100% - 32px); min-height: calc(68 * var(--u)); margin: calc(-34 * var(--u)) auto 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-radius: calc(10 * var(--u)); background: linear-gradient(110deg,#fcfaf5,#f6f4ef); box-shadow: 0 calc(5 * var(--u)) calc(10 * var(--u)) #3f2a1624; }
.k4-stat { display: flex; align-items: center; justify-content: center; gap: calc(21 * var(--u)); margin-block: calc(11 * var(--u)); position: relative; }
.k4-stat + .k4-stat { border-right: calc(.7 * var(--u)) solid #caae83; }
.k4-stat__icon { width: calc(38 * var(--u)); height: calc(38 * var(--u)); color: #656036; flex: none; }
.k4-stat > div { display: flex; flex-direction: column; text-align: center; }
.k4-stat strong { font-size: calc(28 * var(--u)); line-height: calc(28 * var(--u)); font-weight: 800; }
.k4-stat strong bdi { unicode-bidi: isolate; }
.k4-stat > div > span { font-size: calc(11 * var(--u)); line-height: calc(18 * var(--u)); white-space: nowrap; }

.k4-heading { display: flex; align-items: center; gap: calc(27 * var(--u)); min-height: calc(30 * var(--u)); }
.k4-heading h2 { font-size: calc(20 * var(--u)); font-weight: 800; line-height: calc(30 * var(--u)); text-align: center; flex-shrink: 0; }
.k4-heading > span { flex: 1; height: calc(.65 * var(--u)); background: #c7ab8280; position: relative; }
.k4-heading > span:first-child::after, .k4-heading > span:last-child::after { content: ""; position: absolute; top: 50%; width: calc(3 * var(--u)); height: calc(3 * var(--u)); border-radius: 50%; background: #a47733; transform: translateY(-50%); }
.k4-heading > span:first-child::after { left: 0; }
.k4-heading > span:last-child::after { right: 0; }
.k4-services { margin-top: calc(23 * var(--u)); }
.k4-services__grid { display: grid; grid-template-columns: 248fr 245fr 248fr; gap: calc(12 * var(--u)); margin-top: calc(10 * var(--u)); margin-left: calc(3 * var(--u)); margin-right: calc(1 * var(--u)); }
.k4-service { position: relative; display: block; min-height: calc(171 * var(--u)); border: 0; border-radius: calc(11 * var(--u)); box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) #442f2020; }
.k4-service:has(.k4-art__custom) { border: calc(2 * var(--u)) solid #fffdf8; }
.k4-service__caption { position: absolute; inset: auto calc(8 * var(--u)) calc(7 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); color: #fffdf5; text-shadow: 0 1px 3px #20190e88; }
.k4-service h3 { font-size: calc(14.5 * var(--u)); font-weight: 700; line-height: 1.5; flex: 1; }
.k4-service__icon { width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; background: #757241e6; padding: calc(8 * var(--u)); flex: none; }
.k4-round-arrow { width: calc(31 * var(--u)); height: calc(31 * var(--u)); display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #6b6b3ee8; color: white; padding: calc(7 * var(--u)); flex: none; }

.k4-products { margin-top: calc(17 * var(--u)); }
.k4-products .k4-heading h2 { font-size: calc(18.2 * var(--u)); }
.k4-products__layout { display: grid; grid-template-columns: 312fr 446fr; gap: calc(11 * var(--u)); direction: ltr; margin-top: calc(5 * var(--u)); }
.k4-feature { position: relative; min-height: calc(185 * var(--u)); display: block; border-radius: calc(10 * var(--u)); overflow: hidden; direction: rtl; }
.k4-feature > div { position: absolute; bottom: calc(7 * var(--u)); left: calc(13 * var(--u)); width: calc(150 * var(--u)); color: #fffaf0; text-align: left; }
.k4-feature h3 { font-size: calc(15 * var(--u)); line-height: calc(21 * var(--u)); font-weight: 700; }
.k4-feature p { font-size: calc(9.5 * var(--u)); line-height: calc(15 * var(--u)); }
.k4-products__catalogue { direction: rtl; min-width: 0; padding-top: calc(2 * var(--u)); }
.k4-products__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: calc(8 * var(--u)); }
.k4-product { display: block; min-width: 0; border-radius: calc(7 * var(--u)); border: calc(2 * var(--u)) solid #fcfaf5; background: #faf8f3; box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) #513b2514; overflow: hidden; }
.k4-product__image { display: block; position: relative; height: calc(93 * var(--u)); }
.k4-product > div { min-height: calc(44 * var(--u)); text-align: center; padding: calc(4 * var(--u)) calc(2 * var(--u)); }
.k4-product h3 { font-size: calc(11.8 * var(--u)); font-weight: 800; line-height: calc(19 * var(--u)); }
.k4-product p { font-size: calc(9.2 * var(--u)); line-height: calc(16 * var(--u)); color: var(--k4-muted); }
@media (min-width: 768px) {
  .k4-product p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.k4-outline { display: inline-flex; align-items: center; justify-content: center; gap: calc(17 * var(--u)); min-height: calc(30 * var(--u)); padding: calc(4 * var(--u)) calc(12 * var(--u)); border: calc(.8 * var(--u)) solid #8f896f; border-radius: calc(4 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1.4; font-weight: 700; background: #f8f6ee; }
.k4-products__catalogue > .k4-outline { float: right; margin-top: calc(11 * var(--u)); min-width: calc(165 * var(--u)); }

.k4-why { margin-top: calc(16 * var(--u)); }
.k4-why__layout { display: grid; grid-template-columns: 377fr 384fr; direction: ltr; gap: calc(8 * var(--u)); margin-top: calc(3 * var(--u)); }
.k4-quality { position: relative; border-radius: calc(8 * var(--u)); min-height: calc(176 * var(--u)); overflow: hidden; direction: rtl; }
.k4-quality > div { position: absolute; bottom: calc(4 * var(--u)); left: calc(13 * var(--u)); right: calc(13 * var(--u)); text-align: left; color: #fffaf1; text-shadow: 0 1px 3px #0008; }
.k4-quality h3 { font-size: calc(15 * var(--u)); font-weight: 700; line-height: calc(20 * var(--u)); }
.k4-quality p { font-size: calc(10 * var(--u)); line-height: calc(17 * var(--u)); }
.k4-benefits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(9 * var(--u)); direction: rtl; padding-block: calc(2 * var(--u)) calc(5 * var(--u)); }
.k4-benefits article { display: flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(6 * var(--u)); background: #fbf9f3d9; box-shadow: 0 calc(3 * var(--u)) calc(7 * var(--u)) #4e381916; min-width: 0; }
.k4-benefits article > span { width: calc(36 * var(--u)); height: calc(42 * var(--u)); flex: none; color: #514f2b; }
.k4-benefits h3 { font-size: calc(11.3 * var(--u)); font-weight: 800; line-height: calc(20 * var(--u)); }
.k4-benefits p { font-size: calc(9.3 * var(--u)); line-height: calc(17 * var(--u)); color: var(--k4-muted); margin-top: calc(3 * var(--u)); }

.k4-process { margin-top: calc(11 * var(--u)); }
.k4-process__body { position: relative; margin-top: calc(7 * var(--u)); }
.k4-process__track { position: absolute; width: calc(670 * var(--u)); height: calc(28 * var(--u)); top: calc(16 * var(--u)); left: calc(49 * var(--u)); }
.k4-steps { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: calc(2 * var(--u)); list-style: none; padding: 0; margin: 0; min-height: calc(85 * var(--u)); text-align: center; }
.k4-step__symbol { height: calc(43 * var(--u)); display: flex; align-items: flex-start; justify-content: center; position: relative; }
.k4-step__symbol > span { display: block; width: calc(32 * var(--u)); height: calc(32 * var(--u)); color: #514d2b; background: #f7f4ec; }
.k4-step__symbol > b { position: absolute; left: calc(30 * var(--u)); top: calc(15 * var(--u)); display: grid; place-items: center; width: calc(30 * var(--u)); height: calc(30 * var(--u)); border: calc(2 * var(--u)) solid #f8f1db; outline: calc(.7 * var(--u)) solid #c19c63; background: linear-gradient(115deg,#ad833f,#9f6e2d); border-radius: 50%; color: #fff3d6; font-size: calc(18 * var(--u)); font-weight: 400; line-height: 1; }
.k4-steps h3 { font-size: calc(13 * var(--u)); line-height: calc(20 * var(--u)); font-weight: 800; }
.k4-steps p { color: var(--k4-muted); font-size: calc(9.5 * var(--u)); line-height: calc(17 * var(--u)); }

.k4-projects { margin-top: calc(9 * var(--u)); }
.k4-projects__heading { position: relative; }
.k4-projects__heading .k4-heading { gap: calc(22 * var(--u)); }
.k4-projects__heading .k4-heading h2 { font-size: calc(19 * var(--u)); }
.k4-projects__heading .k4-outline { position: absolute; left: 0; top: calc(1 * var(--u)); min-height: calc(27 * var(--u)); font-size: calc(9.5 * var(--u)); min-width: calc(158 * var(--u)); box-shadow: calc(15 * var(--u)) 0 0 var(--k4-paper); }
.k4-projects__grid { display: grid; grid-template-columns: 318fr 135fr 136fr 152fr; gap: calc(8 * var(--u)); direction: ltr; margin-top: calc(9 * var(--u)); margin-left: calc(3 * var(--u)); margin-right: calc(1 * var(--u)); }
.k4-project { display: block; position: relative; min-height: calc(139 * var(--u)); min-width: 0; border: 0; border-radius: calc(9 * var(--u)); direction: rtl; box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) #42280e20; }
.k4-project:has(.k4-art__custom) { border: calc(2 * var(--u)) solid #fffdf6; }
.k4-project__caption { position: absolute; inset: auto calc(8 * var(--u)) calc(6 * var(--u)); display: flex; align-items: center; gap: calc(5 * var(--u)); color: #fff; text-shadow: 0 1px 3px #0009; }
.k4-project__caption > div { flex: 1; min-width: 0; }
.k4-project h3 { font-size: calc(12 * var(--u)); font-weight: 700; line-height: calc(19 * var(--u)); }
.k4-project p { font-size: calc(8.4 * var(--u)); line-height: calc(12 * var(--u)); }
.k4-project .k4-round-arrow { border: calc(.8 * var(--u)) solid #f4eed3; width: calc(29 * var(--u)); height: calc(29 * var(--u)); padding: calc(6 * var(--u)); }

.k4-export { position: relative; min-height: calc(157 * var(--u)); margin-top: calc(17 * var(--u)); border-radius: calc(11 * var(--u)); overflow: hidden; }
.k4-export__art { position: absolute; inset: 0; }
.k4-export__photo { display: none; }
.k4-export__copy { position: relative; margin-right: auto; margin-left: calc(27 * var(--u)); width: calc(220 * var(--u)); padding-top: calc(12 * var(--u)); }
.k4-export h2 { font-size: calc(26 * var(--u)); font-weight: 800; line-height: calc(29 * var(--u)); letter-spacing: calc(-.8 * var(--u)); }
.k4-export p { font-size: calc(9.8 * var(--u)); line-height: calc(14 * var(--u)); margin-top: calc(10 * var(--u)); }
.k4-countries { position: relative; display: flex; justify-content: space-between; gap: calc(9 * var(--u)); margin-left: calc(44 * var(--u)); margin-right: auto; margin-top: calc(8 * var(--u)); width: calc(375 * var(--u)); }
.k4-countries span { display: block; text-align: center; min-width: calc(75 * var(--u)); padding: calc(2 * var(--u)) calc(8 * var(--u)); border: calc(.7 * var(--u)) solid #cdaa7980; border-radius: calc(4 * var(--u)); background: #ede0cbaa; font-size: calc(9.5 * var(--u)); line-height: calc(19 * var(--u)); white-space: nowrap; }
.k4-countries span:last-child { min-width: calc(125 * var(--u)); }
.k4-export__link { position: absolute; inset: 0; border-radius: inherit; }
.k4-cta { position: relative; min-height: calc(118 * var(--u)); margin-top: calc(4 * var(--u)); border-radius: calc(10 * var(--u)); overflow: hidden; }
.k4-cta__copy { position: relative; width: calc(420 * var(--u)); max-width: 100%; margin-inline: auto; text-align: center; padding-top: calc(17 * var(--u)); padding-bottom: calc(12 * var(--u)); }
.k4-cta h2 { font-size: calc(23 * var(--u)); font-weight: 800; line-height: calc(30 * var(--u)); }
.k4-cta p { font-size: calc(9.6 * var(--u)); line-height: calc(18 * var(--u)); margin-bottom: calc(4 * var(--u)); }
.k4-button--light { min-width: calc(182 * var(--u)); min-height: calc(30 * var(--u)); background: #fffdf6; border-color: #fff7e5; box-shadow: none; font-size: calc(10 * var(--u)); }
.k4-cta__motto { position: absolute; right: calc(23 * var(--u)); bottom: calc(26 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; line-height: calc(18 * var(--u)); text-align: right; }

.k4-footer { position: relative; min-height: calc(176 * var(--u)); color: #fff9ed; background: #302011; }
.k4-footer__art { position: absolute; inset: 0; }
.k4-footer__grid { position: relative; display: grid; grid-template-columns: 263fr 128fr 168fr 212fr; padding-top: calc(13 * var(--u)); min-height: calc(138 * var(--u)); }
.k4-footer__grid > div { padding-inline: calc(17 * var(--u)); }
.k4-footer h2 { font-size: calc(10 * var(--u)); font-weight: 700; line-height: calc(17 * var(--u)); }
.k4-footer .kosar-brand { direction: rtl; display: flex; align-items: flex-end; gap: calc(6 * var(--u)); color: #fff; }
.k4-footer .kosar-brand__mark { filter: brightness(0) invert(1); width: calc(46 * var(--u)); height: calc(56 * var(--u)); }
.k4-footer .kosar-brand__copy strong { font-size: calc(11 * var(--u)); font-weight: 700; line-height: calc(20 * var(--u)); white-space: nowrap; }
.k4-footer .kosar-brand__copy small { display: none; }
.k4-footer__grid .k4-footer__brand { padding-right: calc(19 * var(--u)); padding-top: calc(6 * var(--u)); }
.k4-footer__brand p { font-size: calc(9 * var(--u)); line-height: calc(17 * var(--u)); margin-top: calc(7 * var(--u)); }
.k4-footer__links ul { list-style: none; margin: 0; padding: 0; }
.k4-footer__links a { display: inline-block; font-size: calc(9 * var(--u)); line-height: calc(17 * var(--u)); }
.k4-contact-line { display: flex; direction: ltr; align-items: center; gap: calc(9 * var(--u)); font-size: calc(10 * var(--u)); line-height: calc(18 * var(--u)); }
.k4-contact-line svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.k4-footer__email { font-size: calc(9 * var(--u)); overflow-wrap: anywhere; }
.k4-location { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); direction: ltr; border: calc(.7 * var(--u)) solid #e2d6bf; border-radius: calc(4 * var(--u)); padding: calc(3 * var(--u)) calc(6 * var(--u)); font-size: calc(8.5 * var(--u)); margin-top: calc(7 * var(--u)); }
.k4-location svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); flex: none; }
.k4-social { display: block; width: calc(16 * var(--u)); height: calc(16 * var(--u)); margin-top: calc(11 * var(--u)); margin-right: auto; }
.k4-footer__bottom { position: relative; direction: ltr; display: flex; justify-content: space-between; align-items: center; font-size: calc(7.4 * var(--u)); line-height: 1.7; min-height: calc(31 * var(--u)); padding-inline: calc(9 * var(--u)); }
.k4-footer__bottom > * { direction: rtl; }

/* Keyboard focus is always visible; motion is optional. */
.kosar-home a:focus-visible, .kosar-home button:focus-visible { outline: 3px solid #856022; outline-offset: 4px; }
.k4-footer a:focus-visible { outline-color: #f5d8a0; }
.k4-home a:hover h3, .k4-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.k4-button:hover, .k4-outline:hover { filter: brightness(.97); }

@media (max-width: 767px) {
  body.kosar-home { font-size: 16px; --u: 1px; }
  body.kosar-home .site-header { background: #faf7eff5; }
  body.kosar-home .site-header__inner { width: auto; max-width: none; margin: 0 16px; min-height: 72px; grid-template-columns: 44px minmax(0,1fr); gap: 12px; }
  body.kosar-home .site-header .kosar-brand { grid-column: 2; gap: 7px; }
  body.kosar-home .site-header .kosar-brand__mark { width: 37px; height: 46px; }
  body.kosar-home .site-header .kosar-brand__copy strong { font-size: clamp(12px,3.4vw,19px); white-space: normal; }
  body.kosar-home .site-header .primary-nav, body.kosar-home .site-header__action { display: none; }
  body.kosar-home .menu-toggle { display: inline-flex; grid-column: 1; grid-row: 1; align-items: center; justify-content: center; padding: 10px; width: 44px; height: 44px; }
  body.kosar-home .mobile-nav.is-open { display: block; position: absolute; top: 100%; right: 0; left: 0; background: #faf7ef; padding: 12px 20px 22px; max-height: calc(100dvh - 72px); overflow-y: auto; box-shadow: 0 12px 16px #32200f22; }
  body.kosar-home .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  body.kosar-home .mobile-nav a { display: flex; min-height: 44px; align-items: center; font-size: 16px; }
  body.kosar-home .mobile-nav .kosar-button { margin-top: 10px; justify-content: center; }
  .no-js body.kosar-home .menu-toggle { display: none; }
  .no-js body.kosar-home .mobile-nav { display: block; position: static; padding: 12px 20px; }
  .k4-shell, .k4-wide { width: calc(100% - 32px); max-width: 600px; }
  .k4-home { padding-bottom: 22px; }
  .k4-hero { display: flex; flex-direction: column; min-height: 0; }
  .k4-hero__paper { width: 100%; height: 300px; }
  .k4-hero__copy { width: calc(100% - 40px); max-width: 560px; margin-inline: auto; padding: 28px 0 25px; text-align: center; }
  .k4-hero h1 { font-size: clamp(28px,7.4vw,48px); line-height: 1.48; letter-spacing: -.6px; }
  .k4-hero__copy > p { font-size: clamp(15px,3.6vw,20px); line-height: 1.8; margin: 10px 0 18px; }
  .k4-button { min-width: 210px; min-height: 46px; max-width: 100%; font-size: 13px; gap: 16px; padding: 9px 14px; }
  .k4-button svg, .k4-outline svg { width: 19px; height: 19px; }
  .k4-hero__image--desktop { display: none; }
  .k4-hero__image--mobile { display: block; position: relative; width: 100%; aspect-ratio: 476/230; }
  .k4-stats { width: calc(100% - 40px); max-width: 560px; margin-top: -6px; min-height: 100px; border-radius: 9px; }
  .k4-stat { flex-direction: column; gap: 4px; margin-block: 12px; }
  .k4-stat__icon { width: 27px; height: 27px; }
  .k4-stat strong { font-size: 24px; line-height: 30px; }
  .k4-stat > div > span { font-size: 10px; line-height: 18px; white-space: normal; padding-inline: 3px; }
  .k4-heading { gap: 12px; min-height: 38px; }
  .k4-heading h2, .k4-products .k4-heading h2, .k4-projects__heading .k4-heading h2 { font-size: clamp(18px,4.3vw,25px); line-height: 1.6; flex-shrink: 1; }
  .k4-heading > span { min-width: 14px; }
  .k4-services, .k4-products, .k4-why, .k4-process, .k4-projects { margin-top: 32px; }
  .k4-services__grid { grid-template-columns: 1fr; gap: 17px; margin-top: 17px; margin-inline: 0; }
  .k4-service { min-height: 0; aspect-ratio: 248/170; border: 2px solid #fffdf8; border-radius: 13px; }
  .k4-service__caption { inset: auto 14px 13px; gap: 12px; }
  .k4-service h3 { font-size: 22px; }
  .k4-service__icon { width: 50px; height: 50px; padding: 10px; }
  .k4-round-arrow { width: 39px; height: 39px; padding: 9px; }
  .k4-products__layout { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
  .k4-feature { aspect-ratio: 312/185; min-height: 0; }
  .k4-feature > div { bottom: 13px; left: 16px; width: 52%; }
  .k4-feature h3 { font-size: clamp(16px,4.6vw,25px); line-height: 1.5; }
  .k4-feature p { font-size: 12px; line-height: 1.8; }
  .k4-products__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .k4-product__image { height: auto; aspect-ratio: 100/93; }
  .k4-product > div { min-height: 67px; padding: 8px 4px; }
  .k4-product h3 { font-size: clamp(13px,3.2vw,18px); line-height: 1.6; }
  .k4-product p { font-size: 11px; line-height: 1.8; }
  .k4-outline { min-height: 44px; padding: 9px 15px; font-size: 13px; gap: 20px; }
  .k4-products__catalogue > .k4-outline { float: none; display: flex; width: fit-content; margin-top: 18px; margin-right: auto; }
  .k4-why__layout { grid-template-columns: 1fr; gap: 16px; margin-top: 17px; }
  .k4-quality { min-height: 0; aspect-ratio: 377/176; }
  .k4-quality > div { bottom: 8px; left: 12px; right: 12px; }
  .k4-quality h3 { font-size: 17px; line-height: 1.5; }
  .k4-quality p { font-size: 11px; line-height: 1.8; }
  .k4-benefits { gap: 12px; padding: 0; }
  .k4-benefits article { flex-direction: column; align-items: flex-start; padding: 16px 12px; gap: 10px; }
  .k4-benefits article > span { width: 37px; height: 40px; }
  .k4-benefits h3 { font-size: 14px; line-height: 1.7; }
  .k4-benefits p { font-size: 12px; line-height: 1.8; }
  .k4-process__body { margin-top: 20px; }
  .k4-process__track { display: none; }
  .k4-steps { grid-template-columns: 1fr; gap: 13px; text-align: right; counter-reset: steps; }
  .k4-steps li { display: grid; grid-template-columns: 72px minmax(0,1fr); column-gap: 16px; align-items: center; min-height: 77px; padding: 12px; border: 1px solid #dfd0b6; border-radius: 9px; }
  .k4-step__symbol { grid-row: span 2; height: 52px; justify-content: flex-start; }
  .k4-step__symbol > span { width: 36px; height: 36px; background: transparent; }
  .k4-step__symbol > b { left: 0; top: 23px; width: 28px; height: 28px; font-size: 16px; }
  .k4-steps h3 { font-size: 17px; line-height: 1.6; }
  .k4-steps p { font-size: 12px; line-height: 1.8; }
  .k4-projects__heading .k4-outline { position: static; display: flex; margin-top: 12px; width: fit-content; min-height: 44px; font-size: 12px; box-shadow: none; }
  .k4-projects__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 17px; margin-inline: 0; }
  .k4-project { min-height: 0; aspect-ratio: 135/139; }
  .k4-project:first-child { grid-column: 1/-1; aspect-ratio: 318/139; min-height: 0; }
  .k4-project:last-child { grid-column: 1/-1; min-height: 0; aspect-ratio: 152/139; }
  .k4-project__caption { inset: auto 9px 10px; gap: 6px; }
  .k4-project h3 { font-size: 14px; line-height: 1.7; }
  .k4-project p { font-size: 10px; line-height: 1.6; }
  .k4-project .k4-round-arrow { width: 30px; height: 30px; padding: 6px; }
  .k4-export { min-height: 390px; margin-top: 30px; background: #efe5d3; }
  .k4-export__art { display: none; }
  .k4-export__photo { display: block; position: relative; width: 100%; aspect-ratio: 270/157; }
  .k4-export__copy { width: auto; margin: 0; padding: 26px 22px 0; }
  .k4-export h2 { font-size: clamp(25px,6.8vw,37px); line-height: 1.35; letter-spacing: -.7px; }
  .k4-export p { font-size: 13px; line-height: 1.9; margin-top: 13px; max-width: 390px; }
  .k4-countries { width: auto; margin: 17px 22px 18px; justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
  .k4-countries span { font-size: 11px; line-height: 1.8; padding: 4px 8px; }
  .k4-cta { margin-top: 15px; min-height: 300px; background: #c99b62; }
  .k4-cta > .k4-art { top: auto; aspect-ratio: 773/118; height: auto; }
  .k4-cta__copy { width: auto; max-width: none; margin: 0; padding: 31px 20px 65px; }
  .k4-cta h2 { font-size: clamp(22px,5.7vw,32px); line-height: 1.6; }
  .k4-cta p { font-size: 12px; line-height: 1.9; margin: 8px 0 16px; }
  .k4-cta__motto { right: 20px; bottom: 16px; font-size: 11px; line-height: 1.6; }
  .k4-footer { min-height: 0; padding: 28px 0 16px; }
  .k4-footer__art { display: none; }
  .k4-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 18px; padding: 0; }
  .k4-footer__grid > div { padding: 0; }
  .k4-footer__grid .k4-footer__brand { padding: 0; grid-column: 1/-1; }
  .k4-footer .kosar-brand { justify-content: flex-start; align-items: center; }
  .k4-footer .kosar-brand__mark { width: 45px; height: 56px; }
  .k4-footer .kosar-brand__copy strong { font-size: 17px; line-height: 1.7; white-space: normal; }
  .k4-footer__brand p { font-size: 13px; line-height: 1.9; margin-top: 10px; }
  .k4-footer h2 { font-size: 15px; line-height: 1.8; margin-bottom: 7px; }
  .k4-footer__links a { font-size: 13px; line-height: 1.7; min-height: 44px; display: flex; align-items: center; }
  .k4-footer__contact { grid-column: 1/-1; max-width: 300px; }
  .k4-contact-line { font-size: 14px; min-height: 39px; gap: 12px; }
  .k4-contact-line svg { width: 17px; height: 17px; }
  .k4-location { min-height: 44px; font-size: 12px; margin-top: 9px; }
  .k4-location svg { width: 19px; height: 19px; }
  .k4-social { width: 44px; height: 44px; padding: 10px; margin-top: 7px; }
  .k4-footer__email { font-size: 13px; }
  .k4-footer__bottom { flex-wrap: wrap; gap: 12px; font-size: 10px; padding: 19px 0 0; margin-top: 24px; border-top: 1px solid #765733; }
}
@media (min-width: 520px) and (max-width: 767px) {
  .k4-services__grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .k4-service { min-height: 0; }
  .k4-service__caption { inset: auto 7px 7px; flex-wrap: wrap; gap: 6px; }
  .k4-service h3 { font-size: 15px; order: 3; flex-basis: 100%; }
  .k4-service__icon { width: 34px; height: 34px; padding: 7px; }
  .k4-service .k4-round-arrow { width: 28px; height: 28px; padding: 5px; margin-right: auto; }
}
@media (max-width: 300px) {
  .k4-stats { grid-template-columns: 1fr; }
  .k4-stat { flex-direction: row; gap: 18px; margin: 0; padding: 12px; }
  .k4-stat + .k4-stat { border-right: 0; border-top: 1px solid #dfcaa8; }
  .k4-benefits, .k4-projects__grid, .k4-footer__grid { grid-template-columns: 1fr; }
  .k4-project:first-child, .k4-project:last-child { grid-column: auto; }
  .k4-project { min-height: 0; }
  .k4-button { min-width: 0; font-size: 12px; }
  .k4-hero h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .kosar-home *, .kosar-home *::before, .kosar-home *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
