:root {
  color-scheme: light;
  --background: #f6f8fc;
  --ink: #14243d;
  --muted: #55657d;
  --blue: #1a51b1;
  --line: #dce4ef;
  --surface: #fff;
  --navy: #10223f;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.5;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("./assets/open-sans-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4280ec; outline-offset: 4px; }
::selection { background: #d7e7ff; color: var(--navy); }

.container { width: min(100% - 72px, 1216px); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 2; left: 12px; top: 10px; background: var(--surface); padding: 9px 13px; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-content { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand-mark { display: grid; place-items: center; min-width: 49px; height: 38px; padding-inline: 6px; border-radius: 8px; font: 800 1rem/1 system-ui, sans-serif; letter-spacing: -.06em; color: white; background: var(--blue); }
.brand-name { font-size: 1rem; font-weight: 700; letter-spacing: -.04em; }
.brand-name strong { font-weight: 400; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 36px); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .91rem; text-decoration: none; font-weight: 700; color: var(--muted); }
.main-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.main-nav .nav-contact { padding-inline: 15px; border: 1px solid #c7d7ee; border-radius: 9px; color: var(--blue); }
.main-nav .nav-contact:hover, .main-nav .nav-contact[aria-current="page"] { background: #eef4ff; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: stretch;
  min-height: 405px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 21px;
  color: #fff;
  background: var(--navy);
}
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 43px clamp(29px, 4.15vw, 64px); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 14ch; margin-bottom: 16px; font-family: system-ui, sans-serif; font-size: clamp(2.8rem, 4.6vw, 4.05rem); font-weight: 720; letter-spacing: -.07em; line-height: 1.04; }
.hero-copy p { max-width: 35ch; margin-bottom: 24px; color: #cedeef; line-height: 1.65; }
.hero-visual { position: relative; }
.hero-visual img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; }
.hero-visual::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, var(--navy), transparent 24%); }
.hero-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.hero-button { background: #bcd6ff; color: #142948; }
.hero-button:hover { background: #d0e3ff; }
.secondary-button { color: var(--blue); background: white; border-color: #c7d7ee; }
.secondary-button:hover { background: #eef4ff; }

.catalog { margin: 43px 0 65px; scroll-margin-top: 18px; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 17px; }
.catalog-actions { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.catalog-actions .gallery-link { min-height: 50px; white-space: nowrap; }
.catalog-heading h2, .detail-info h2 { margin-bottom: 4px; font-size: clamp(1.6rem, 3vw, 2.18rem); line-height: 1.17; letter-spacing: -.048em; }
.result-count { margin: 0; color: var(--muted); font-size: .91rem; }
.product-search { position: relative; width: min(100%, 350px); display: flex; align-items: center; min-height: 50px; border: 1px solid #ced9e9; border-radius: 10px; background: var(--surface); }
.product-search:focus-within { border-color: #608ee0; box-shadow: 0 0 0 3px #dce9ff; }
.product-search svg { position: absolute; left: 14px; height: 21px; width: 21px; fill: none; stroke: #506684; stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.product-search input { width: 100%; min-height: 48px; padding: 0 48px 0 43px; border: 0; border-radius: inherit; outline: none; background: transparent; }
.product-search input::placeholder { color: #60708a; opacity: 1; }
.product-search input::-webkit-search-cancel-button { display: none; }
.icon-button { display: grid; place-items: center; width: 41px; height: 41px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: white; line-height: 1; font-size: 1.56rem; }
.icon-button:hover { background: #edf3fc; }
.clear-search { position: absolute; right: 3px; }

.catalog-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 22px; margin-top: 19px; }
.catalog-filters { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 5px 8px; }
.filter-heading h3 { margin: 0; font-size: 1rem; }
.filter-reset { padding: 4px 0; border: 0; color: var(--blue); background: transparent; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.filter-reset:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.filter-row { display: grid; gap: 4px; }
.filter-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: .89rem; font-weight: 700; text-align: left; transition: background-color 160ms ease, border-color 160ms ease; }
.filter-button:hover { color: var(--blue); background: #eff5ff; }
.filter-button[aria-pressed="true"] { color: #163b78; background: #e2edff; border-color: #b0c8ef; }
.filter-count { font-weight: 400; font-variant-numeric: tabular-nums; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 53px; margin-bottom: 12px; padding: 5px 10px 5px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.catalog-sort { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .875rem; }
.catalog-sort select { min-height: 36px; padding: 4px 31px 4px 9px; appearance: none; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 14px center / 5px 5px no-repeat, linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 9px center / 5px 5px no-repeat, var(--surface); color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-button { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; transition: border-color 160ms ease, box-shadow 160ms ease; }
.product-button:hover { border-color: #a9bfe4; box-shadow: 0 6px 20px #14295110; }
.product-visual { display: block; width: 100%; aspect-ratio: 1.43; overflow: hidden; background: white; }
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.product-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; width: 100%; min-height: 121px; padding: 13px 14px 15px; border-top: 1px solid #ebeff6; }
.product-model { display: block; color: #4a6082; font-size: .76rem; font-weight: 700; letter-spacing: .055em; }
.product-name { display: block; margin: 3px 0 10px; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.product-more { display: block; margin-top: auto; color: var(--blue); font-size: .84rem; font-weight: 700; }
.product-button:hover .product-more { text-decoration: underline; text-underline-offset: 3px; }

.empty-state { display: grid; justify-items: center; gap: 8px; padding: 40px 18px; border: 1px dashed #b6c9e5; border-radius: 14px; background: white; text-align: center; }
.empty-state h3, .empty-state p { margin-bottom: 0; }
.empty-state p { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 20px; padding-block: 21px; font-size: .88rem; color: var(--muted); }
.footer-content > :first-child { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 21px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: 3px; }

.company-page { display: flex; flex-direction: column; min-height: 100vh; }
.company-page .site-footer { margin-top: auto; }
.company-content { padding-block: 28px 64px; }
.company-intro { padding: clamp(25px, 6vw, 72px); border-radius: 21px; color: white; background: linear-gradient(120deg, var(--navy), #1b3c67); }
.company-intro h1 { margin-bottom: 14px; font: 750 clamp(2.5rem, 6vw, 4.25rem)/1.04 system-ui, sans-serif; letter-spacing: -.055em; }
.company-intro p { max-width: 60ch; margin: 0; color: #e2edff; font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.65; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 20px 26px; }
.company-card, .company-summary { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 14px; background: white; }
.company-card h2, .company-summary h2 { margin-bottom: 8px; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.2; letter-spacing: -.035em; }
.company-card p, .company-summary p { margin: 0; color: var(--muted); }
.company-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.contact-details a { color: var(--blue); text-underline-offset: 4px; }
#hakkimizda, #misyon, #vizyon, #iletisim { scroll-margin-top: 18px; }

.gallery-categories { display: flex; flex-wrap: wrap; gap: 7px 20px; margin-block: 19px 24px; }
.gallery-categories a { display: inline-flex; align-items: center; min-height: 42px; color: var(--blue); font-size: .93rem; font-weight: 700; text-underline-offset: 4px; }
.gallery-section + .gallery-section { margin-top: 36px; }
.gallery-section h2 { margin-bottom: 13px; scroll-margin-top: 18px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.gallery-card { display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.gallery-photo { display: block; }
.gallery-photo:focus-visible { outline-offset: -4px; }
.gallery-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.gallery-card figcaption { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: .875rem; }
.gallery-card figcaption a { align-self: flex-start; color: var(--blue); font-weight: 700; text-underline-offset: 3px; }

.product-dialog { width: min(720px, 100% - 28px); max-height: calc(100% - 28px); padding: 0; overflow: auto; border: 0; border-radius: 15px; color: var(--ink); background: white; box-shadow: 0 22px 80px #09182e39; }
.product-dialog::backdrop { background: #081a32ae; }
.dialog-layout { position: relative; display: grid; grid-template-columns: 46% 54%; }
.dialog-close { position: absolute; right: 9px; top: 9px; z-index: 1; box-shadow: 0 1px 10px #10284a16; }
.detail-gallery { padding: 14px; border-right: 1px solid var(--line); }
.detail-image { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: white; }
.image-options { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.image-option { width: 51px; height: 47px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.image-option img { width: 100%; height: 100%; object-fit: contain; }
.image-option[aria-pressed="true"] { border-color: #245ec0; }
.detail-info { align-self: center; padding: 35px 26px 25px; }
.detail-model { margin-bottom: 8px; }
.detail-info h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.detail-features { padding-left: 22px; margin: 13px 0 20px; color: var(--muted); }
.detail-features li + li { margin-top: 5px; }
.copy-status { margin: 10px 0 0; color: var(--muted); font-size: .87rem; }
.copy-status:empty { margin: 0; }

@media (max-width: 940px) {
  .container { width: calc(100% - 48px); }
  .hero { min-height: 347px; }
  .hero-copy { padding: 32px; }
  .catalog-layout { grid-template-columns: 188px minmax(0, 1fr); gap: 15px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .filter-button { border-color: var(--line); }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 30px); }
  .topbar-content { min-height: 61px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { min-width: 41px; height: 33px; font-size: .9rem; }
  .brand-name, .main-nav a { font-size: .83rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 15px; border-radius: 15px; }
  .hero-copy { padding: 25px 21px 17px; }
  .hero h1 { font-size: clamp(2.45rem, 8.4vw, 3.4rem); margin-bottom: 12px; }
  .hero-copy p { margin-bottom: 17px; }
  .hero-visual { aspect-ratio: 1.78; }
  .hero-visual::after { background: linear-gradient(var(--navy), transparent 34%); }
  .catalog { margin-top: 29px; margin-bottom: 40px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .catalog-actions { flex-wrap: wrap; justify-content: flex-start; }
  .product-search { width: 100%; }
  .catalog-layout { gap: 10px; margin-top: 12px; }
  .filter-button { min-height: 41px; padding-inline: 10px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-button { border-radius: 10px; }
  .product-visual { aspect-ratio: 1.15; }
  .product-copy { min-height: 105px; padding: 9px 9px 11px; }
  .product-name { font-size: .91rem; }
  .product-more { font-size: .8rem; }
}

@media (max-width: 480px) {
  .topbar-content { flex-wrap: wrap; gap: 3px; padding-block: 9px 5px; }
  .main-nav { flex-basis: 100%; gap: 18px; }
  .main-nav .nav-contact { padding-inline: 12px; }
  .company-grid { grid-template-columns: 1fr; }
  .company-content { padding-block: 16px 40px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .detail-gallery { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
  .detail-image { aspect-ratio: 1.6; }
  .detail-info { padding: 17px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
