:root {
  --navy: #071b31;
  --navy-2: #0c2948;
  --red: #e01022;
  --red-dark: #b50717;
  --ink: #102033;
  --muted: #647184;
  --line: rgba(7, 27, 49, 0.13);
  --soft: #f3f6fa;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(7, 27, 49, 0.12);
  --radius: 8px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(224, 16, 34, 0.08), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(7, 27, 49, 0.08), transparent 24%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 12px;
  color: var(--white);
  background: var(--red);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(90deg, #061526, var(--navy), #081f38);
  font-size: 13px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224, 16, 34, 0.9), transparent);
  opacity: 0.55;
}

.header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: clamp(198px, 18vw, 246px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.brand span {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(0 0 0 0);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-left: auto;
  color: #26374c;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  padding-block: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 24px rgba(224, 16, 34, 0.22);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 16px 34px rgba(224, 16, 34, 0.32);
}

.btn--ghost {
  color: var(--navy);
  border-color: var(--line);
  background: var(--white);
}

.btn--light {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--large {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 84px) 0 48px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 27, 49, 0.98) 0%, rgba(9, 34, 60, 0.94) 48%, rgba(7, 27, 49, 0.78) 100%),
    url("assets/img/06-uydudan-internet-telefon.jpg") center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(224, 16, 34, 0.16), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
}

.hero > .container {
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
}

.hero__content {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section--dark .eyebrow {
  color: #ff5261;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 58px);
}

h2 {
  font-size: clamp(26px, 3.1vw, 40px);
}

h3 {
  font-size: clamp(18px, 1.5vw, 21px);
}

.hero__lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__media {
  position: relative;
  min-width: 0;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1.16 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32), 0 0 0 8px rgba(255, 255, 255, 0.045);
}

.hero__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: min(260px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(7, 27, 49, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero__badge strong,
.hero__badge span {
  display: block;
}

.hero__badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.stats {
  padding: 18px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 28px rgba(7, 27, 49, 0.05);
}

.stats strong {
  display: block;
  color: var(--navy);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.section,
.section--soft,
.section--dark {
  padding: clamp(58px, 7vw, 92px) 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 27, 49, 0.98), rgba(12, 41, 72, 0.96)),
    url("assets/img/03-yangin-alarm-sistemi.jpg") center/cover;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head--left {
  margin: 0;
  text-align: left;
}

.section-head p:not(.eyebrow),
.why p,
.about p,
.contact p {
  color: var(--muted);
  margin: 16px 0 0;
}

.section--dark p {
  color: rgba(255, 255, 255, 0.78);
}

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

.service-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(7, 27, 49, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 16, 34, 0.28);
  box-shadow: 0 22px 52px rgba(7, 27, 49, 0.14);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card div {
  padding: 18px;
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  margin-bottom: 12px;
  padding-inline: 8px;
  border-radius: 6px;
  color: var(--red);
  background: rgba(224, 16, 34, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.service-card p,
.reason-grid p,
.footer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}

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

.reason-grid article {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.reason-grid h3 {
  font-size: 18px;
}

.solutions__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
}

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

.solution-list span {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 27, 49, 0.06);
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

.solution-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}

.about__image img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about .btn {
  margin-top: 22px;
}

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.44 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(7, 27, 49, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(7, 27, 49, 0.14);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
}

.contact-card strong {
  font-size: 20px;
}

.contact-card a {
  color: var(--white);
  font-weight: 800;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.78);
}

.map-link {
  width: fit-content;
  margin-top: 4px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
}

.footer {
  padding: 38px 0 86px;
  color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(135deg, rgba(6, 21, 38, 0.98), rgba(7, 27, 49, 0.98)),
    url("assets/img/05-bariyer-gecis-sistemi.jpg") center/cover;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 236px;
  min-height: 64px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.footer-logo img {
  width: 210px;
  height: auto;
  filter: none;
}

.footer nav {
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--white);
  font-weight: 700;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer__bottom a {
  color: var(--white);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: #168a43;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

@media (max-width: 1060px) {
  .header-actions {
    display: none;
  }

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

  .hero__grid,
  .why__grid,
  .solutions__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .topbar__inner {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-block: 8px;
    text-align: center;
  }

  .header__inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 2px;
    padding: 12px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px;
    border-radius: 6px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--soft);
  }

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

  .footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .topbar {
    font-size: 12px;
  }

  .topbar__inner span:last-child {
    width: 100%;
  }

  .brand img {
    width: 178px;
    max-height: 46px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(30px, 7.8vw, 33px);
    line-height: 1.16;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    padding-inline: 14px;
  }

  .hero__media img {
    aspect-ratio: 1.05 / 1;
  }

  .hero__badge {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .stats__grid,
  .service-grid,
  .reason-grid,
  .solution-list,
  .gallery-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .stats article,
  .service-card div,
  .reason-grid article,
  .contact-card {
    padding: 16px;
  }

  .solution-list span {
    min-height: 58px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding-inline: 15px;
    font-size: 14px;
  }
}
