:root {
  --bg: #ffffff;
  --soft: #f4f4f4;
  --ink: #1f1f1f;
  --muted: #545454;
  --line: #e6e6e6;
  --header: #2b2b2b;
  --bar: #3a3a3a;
  --accent: #c4161c;
  --wa: #4dc247;
  --tel: #337ab7;
  --radius: 28px;
  --pill: 999px;
  --font: "Titillium Web", Arial, sans-serif;
  --container: 1240px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
button, .btn, .btn-pill { cursor: pointer; font-family: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 0.7rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul { padding: 0; list-style: none; margin: 0; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 80; background: #000; color: #fff; padding: 0.5rem 1rem; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.mt-2 { margin-top: 0.7rem; }

.eyebrow-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.eyebrow-pill.center { display: table; margin: 0 auto 0.9rem; }

.btn-pill, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: var(--pill); border: 0;
  background: #fff; color: var(--ink); font-weight: 700;
}
.btn-pill:hover, .btn:hover { color: var(--ink); filter: brightness(0.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-ghost, .btn-outline-dark { background: #fff; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; }

.site-header {
  position: absolute; left: 0; right: 0; top: 18px; z-index: 40;
  padding: 0 24px;
}
.page-home .site-header { position: absolute; }
body:not(.page-home) .site-header {
  position: sticky; top: 0; background: #fff; padding-top: 14px; padding-bottom: 14px;
}
.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  min-height: 72px;
  padding: 0.45rem 0.7rem 0.45rem 0.7rem;
  background: var(--header);
  color: #fff;
  border-radius: var(--pill);
}
.logo { display: flex; align-items: center; gap: 0.7rem; color: #fff; }
.logo:hover { color: #fff; }
.logo-mark {
  height: 52px; border-radius: var(--pill); background: #fff;
  display: grid; place-items: center; overflow: hidden; padding: 4px 12px;
}
.logo-mark img { width: auto; height: 40px; object-fit: contain; }
.main-nav ul { display: flex; justify-content: center; gap: 1.15rem; flex-wrap: wrap; }
.main-nav a { color: #fff; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; opacity: 0.75; }
.header-cta {
  background: #fff; color: var(--ink); border-radius: var(--pill);
  padding: 0.7rem 1.1rem; font-weight: 700; font-size: 0.92rem;
}
.header-cta:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: #fff; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: #fff; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero-slider { position: relative; min-height: 86vh; overflow: hidden; background: #cfcfcf; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 86vh; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(20 20 20 / 0.55), rgb(20 20 20 / 0.15));
  display: grid; align-items: center;
  color: #fff;
}
.hero-overlay h1, .hero-overlay .slide-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; margin: 0 0 0.7rem; font-weight: 700; }
.hero-overlay p { color: #fff; max-width: 46ch; font-size: 1.15rem; }
.slider-btn {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 1.6rem;
}
.slider-prev { right: 84px; bottom: 36px; top: auto; transform: none; }
.slider-next { right: 28px; bottom: 36px; top: auto; transform: none; }
.slider-dots { position: absolute; right: 148px; bottom: 50px; z-index: 3; display: flex; gap: 0.4rem; }
.slider-dots button {
  width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.5);
}
.slider-dots button.is-active { background: #fff; }

.info-bar { margin-top: -42px; position: relative; z-index: 5; }
.info-bar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--bar); color: #fff; border-radius: 22px; overflow: hidden;
}
.info-bar article { padding: 1.5rem 1.6rem; }
.info-bar article + article { border-left: 1px solid rgb(255 255 255 / 0.12); }
.info-bar span { display: block; opacity: 0.7; font-size: 0.85rem; margin-bottom: 0.25rem; }
.info-bar strong, .info-bar a { color: #fff; font-size: 1.15rem; }
.info-bar p { margin: 0.25rem 0 0; color: #ddd; font-size: 0.92rem; }

.about-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center;
}
.round-photo img { width: 100%; height: 460px; object-fit: cover; border-radius: 36px; }

.service-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; margin-top: 2.2rem;
}
.service-feature-img img { width: 100%; height: 170px; object-fit: cover; border-radius: 22px; }
.service-feature .num { display: block; margin: 0.8rem 0 0.3rem; color: var(--ink); font-weight: 700; }
.service-feature h3 { font-size: 1.15rem; }
.service-feature .more, .news-card .more { font-weight: 700; color: var(--ink); }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.6rem;
}
.product-card {
  background: var(--soft); border-radius: 24px; overflow: hidden; color: inherit;
}
.product-card img { width: 100%; height: 190px; object-fit: cover; }
.product-card div { padding: 1rem 1.1rem 1.2rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.product-card span { font-size: 0.9rem; font-weight: 700; }

.stats-band { background: var(--ink); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1.2rem; align-items: end; }
.stats-lead { color: #fff; font-size: 1.8rem; font-weight: 700; margin: 0; }
.stats-grid strong { display: block; color: #fff; font-size: 2.6rem; line-height: 1; }
.stats-grid span { color: #cfcfcf; }

.process-grid, .gallery-home, .news-home {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1.6rem;
}
.gallery-home { grid-template-columns: repeat(4, 1fr); }
.process-grid img, .gallery-home img, .news-card img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 22px;
}
.gallery-thumb { border: 0; padding: 0; background: none; width: 100%; display: block; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

.region-home {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 1.4rem;
}
.region-home a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 1.1rem; background: var(--soft); border-radius: 16px; color: inherit;
}
.region-home strong { color: var(--ink); }

.news-card { color: inherit; }
.news-card .num { display: block; margin: 0.7rem 0 0.3rem; font-weight: 700; color: var(--ink); }

.faq-wrap { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq-list summary { cursor: pointer; font-size: 1.15rem; color: var(--ink); font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; }
.faq-list details[open] summary::after { content: "–"; }

.cta-band { background: var(--header); color: #fff; padding: 72px 0; }
.cta-band .container { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ddd; margin: 0; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.site-footer { background: #111; color: #c9c9c9; padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #c9c9c9; }
.site-footer a:hover { color: #fff; }
.footer-links li { margin: 0.35rem 0; }
.keyword-tags { display: flex; flex-wrap: wrap; gap: 0.45rem 0.8rem; padding: 1rem 0 2rem; }
.keyword-tag { color: #9a9a9a; font-size: 0.82rem; }
.footer-bottom { border-top: 1px solid #2a2a2a; padding: 1rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom ul { display: flex; gap: 1rem; }

.api { position: fixed; left: 12px; bottom: 16px; z-index: 30; }
.api a {
  display: grid; place-items: center; width: 50px; height: 50px; margin-top: 10px;
  border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700;
}
.api .telefon a { background: var(--tel); }
.api .whatsapp a { background: var(--wa); }

.page-hero {
  background:
    linear-gradient(90deg, rgb(20 20 20 / 0.72), rgb(20 20 20 / 0.4)),
    url("../../images/gallery/bina-yikimi-hidrolik-kirici.jpg") center/cover no-repeat;
  color: #fff; padding: 150px 0 70px;
}
.page-hero h1, .page-hero p { color: #fff; }
.breadcrumb { color: #ddd; font-size: 0.92rem; margin-bottom: 0.8rem; }
.breadcrumb a { color: #fff; }
.breadcrumb span { margin: 0 0.3rem; }

.card-grid, .news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
.service-card, .news-card {
  background: #fff; border-radius: 22px; overflow: hidden; color: inherit;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.04);
}
.service-card img, .news-card img, .service-card-img img, .news-card-img img {
  width: 100%; height: 200px; object-fit: cover;
}
.service-card-body, .news-card-body { padding: 1.1rem 1.15rem 1.3rem; }
.read-more { font-weight: 700; color: var(--ink); }

.about-layout, .detail-layout, .contact-layout {
  display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 2.4rem;
}
.about-aside img, .contact-photo img, .detail-hero-img img, .region-photo img, .contact-band-photo img {
  width: 100%; object-fit: cover; border-radius: 22px;
}
.about-aside img, .contact-photo img { height: 280px; margin-bottom: 1rem; }
.detail-hero-img img, .region-photo img { height: 360px; }
.prose h2 { margin-top: 1.8rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1rem; }
.sidebar-card, .contact-card, .contact-form-wrap {
  background: var(--soft); border-radius: 20px; padding: 1.3rem 1.4rem; margin-bottom: 1rem;
}
.sidebar-links a { display: block; padding: 0.35rem 0; }
.phone-big { font-size: 1.4rem; font-weight: 700; color: var(--ink); }

.region-search {
  width: 100%; max-width: 460px; min-height: 50px; border: 1px solid var(--line);
  border-radius: var(--pill); padding: 0.6rem 1rem; font: inherit;
}
.region-group { margin: 2rem 0; }
.region-grid-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.region-chip {
  display: inline-block; padding: 0.5rem 0.85rem; background: var(--soft);
  border-radius: var(--pill); color: inherit;
}
.region-chip:hover { background: var(--ink); color: #fff; }

.masonry-gallery-full {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.masonry-gallery-full img { width: 100%; height: 240px; object-fit: cover; border-radius: 18px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.contact-form { display: grid; gap: 0.85rem; }
.form-row { display: grid; gap: 0.3rem; }
.form-row input, .form-row select, .form-row textarea {
  min-height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit; padding: 0.6rem 0.8rem;
}
.form-row textarea { min-height: 140px; }
.captcha-group { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.form-alert { padding: 0.7rem; border-radius: 10px; background: #fff; }
.form-alert.is-ok, .form-alert.is-success { color: #146c2e; }
.form-alert.is-err, .form-alert.is-error { color: var(--accent); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; border-radius: 20px; }

.lightbox {
  position: fixed; inset: 0; background: rgb(20 20 20 / 0.92);
  display: none; place-items: center; z-index: 80; padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: #fff; border: 0; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.4rem;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; }
.lightbox-next { right: 1rem; top: 50%; }
body.lightbox-open { overflow: hidden; }

.error-page { padding: 160px 0 100px; text-align: center; }
.error-code { font-size: 5rem; font-weight: 700; color: var(--ink); margin: 0; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }

@media (max-width: 1100px) {
  .service-row, .product-grid, .stats-grid, .gallery-home { grid-template-columns: repeat(2, 1fr); }
  .stats-lead { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .header-bar { grid-template-columns: auto auto 1fr; }
  .header-cta { justify-self: end; }
  .nav-toggle { display: grid; place-items: center; justify-self: end; }
  .main-nav {
    display: none; position: absolute; left: 24px; right: 24px; top: 92px;
    background: var(--header); border-radius: 20px; padding: 1rem 1.2rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .about-grid, .about-layout, .detail-layout, .contact-layout, .cta-band .container,
  .info-bar-grid, .process-grid, .news-home, .region-home, .card-grid, .news-grid {
    grid-template-columns: 1fr;
  }
  .info-bar article + article { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.12); }
  .hero-slider, .hero-slide img { min-height: 72vh; height: 72vh; }
  .page-hero { padding: 130px 0 56px; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .product-grid, .gallery-home, .masonry-gallery-full, .stats-grid, .footer-top { grid-template-columns: 1fr; }
  .api { display: none; }
  .logo-text small { display: none; }
}
