:root {
  --color-primary: #102a43;
  --color-primary-dark: #071827;
  --color-secondary: #f2a23a;
  --color-secondary-dark: #d88119;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f6f8;
  --color-text: #17212b;
  --color-muted: #607080;
  --color-border: #dce3ea;
  --color-whatsapp: #25d366;
  --color-phone: #1f6feb;
  --shadow-soft: 0 14px 34px rgba(16, 42, 67, 0.12);
  --shadow-card: 0 18px 42px rgba(16, 42, 67, 0.1);
  --radius: 8px;
  --container: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

body,
h1,
h2,
h3,
p,
a,
span,
strong,
li {
  overflow-wrap: break-word;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  font: inherit;
}

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

.section {
  padding: 82px 0;
}

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

.section-kicker {
  margin: 0 0 10px;
  color: var(--color-secondary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.2;
}

.section-heading p:last-child {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 850;
}

.logo__image {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.logo__text,
.footer-logo__text {
  color: var(--color-primary);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  padding: 10px 9px;
  border-radius: var(--radius);
  color: #243447;
  font-size: 0.82rem;
  font-weight: 850;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: #eef3f8;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--color-secondary-dark);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(216, 129, 25, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-primary);
}

.hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: 76px 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 39, 0.93) 0%, rgba(16, 42, 67, 0.84) 52%, rgba(16, 42, 67, 0.44) 100%),
    url("img/generated/kornis-montaj-hero.png") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  line-height: 1.06;
  text-wrap: balance;
}

.hero__text {
  max-width: 650px;
  margin: 22px 0 0;
  color: #dce7ef;
  font-size: 1.1rem;
}

.hero .section-kicker {
  color: #ffd08a;
}

.hero__actions,
.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.btn--primary,
.btn--call {
  color: #ffffff;
  background: var(--color-secondary-dark);
  box-shadow: 0 14px 30px rgba(216, 129, 25, 0.24);
}

.btn--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

.btn--whatsapp {
  color: #ffffff;
  background: var(--color-whatsapp);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.22);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 850px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 750;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
}

.about-copy p:not(.section-kicker) {
  color: var(--color-muted);
  font-size: 1.02rem;
}

.about-copy {
  min-width: 0;
}

.image-panel {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.image-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-grid,
.why-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 22px;
}

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

.service-card,
.why-grid article,
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.service-card {
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(16, 42, 67, 0.14);
}

.service-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--color-primary);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3,
.contact-card h3 {
  margin: 18px 0 8px;
  color: var(--color-primary);
  font-size: 1.12rem;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
}

.why-grid article {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-top: 4px solid var(--color-secondary);
}

.why-grid strong {
  color: var(--color-primary);
}

.why-grid span {
  color: var(--color-muted);
}

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

.gallery-item {
  position: relative;
  min-height: 250px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8edf2;
  box-shadow: var(--shadow-card);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(2) {
  grid-column: span 3;
}

.gallery-item:nth-child(n+3) {
  grid-column: span 2;
}

.gallery-button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 24, 39, 0.88));
}

.gallery-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px;
  color: #ffffff;
  font-weight: 850;
  text-align: left;
}

.gallery-button:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.05);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.process-list span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-secondary-dark);
  font-weight: 850;
}

.process-list strong {
  color: var(--color-primary);
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  color: var(--color-primary);
  background: transparent;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--color-muted);
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.faq-item.active .faq-question span {
  background: var(--color-secondary-dark);
}

.cta-strip {
  padding: 66px 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.cta-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.cta-strip h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.18;
}

.cta-strip p:last-child {
  max-width: 640px;
  margin: 12px 0 0;
  color: #dce7ef;
}

.cta-strip .section-kicker {
  color: #ffd08a;
}

.cta-strip__actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.contact-card {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 4px;
  color: var(--color-muted);
}

.contact-list strong {
  color: var(--color-primary);
}

.contact-list a {
  color: var(--color-secondary-dark);
  font-weight: 850;
}

.map-wrapper {
  min-height: 378px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 378px;
  display: block;
  border: 0;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 42, 67, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.floating-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
}

.floating-btn--whatsapp {
  background: var(--color-whatsapp);
}

.floating-btn--phone {
  background: var(--color-phone);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 24, 39, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox__image {
  max-width: min(920px, 92vw);
  max-height: 78vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  margin: 0;
  color: #ffffff;
  font-weight: 850;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  padding: 52px 0 104px;
  color: #ffffff;
  background: var(--color-primary-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.7fr) minmax(170px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo__image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo__text {
  color: #ffffff;
  font-size: 1.16rem;
}

.footer-brand p,
.footer-column ul,
.footer-bottom p {
  margin: 0;
}

.footer-brand p {
  max-width: 390px;
  color: #cdd9e4;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.footer-column a,
.digital-signature {
  color: #cdd9e4;
  transition: color 0.2s ease;
}

.footer-column a:hover,
.digital-signature a:hover {
  color: #ffd08a;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1080px) {
  .nav-menu {
    gap: 0;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 0.78rem;
  }

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

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

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .header-call {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px;
    font-size: 0.9rem;
  }

  .about-grid,
  .contact-grid,
  .cta-strip__inner {
    grid-template-columns: 1fr;
  }

  .cta-strip__actions {
    justify-content: flex-start;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(n+3) {
    grid-column: span 3;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .section {
    padding: 60px 0;
  }

  .logo__image {
    width: 42px;
    height: 42px;
  }

  .logo__text {
    max-width: 190px;
    white-space: normal;
    line-height: 1.15;
  }

  .hero {
    min-height: 560px;
    align-items: flex-end;
    padding: 66px 0 58px;
    background-position: center;
  }

  .hero h1 {
    font-size: 1.58rem;
    line-height: 1.12;
    text-wrap: wrap;
  }

  .section-heading h2,
  .about-copy h2 {
    font-size: 1.38rem;
    line-height: 1.22;
    text-wrap: wrap;
  }

  .hero__text {
    font-size: 1rem;
  }

  .hero__actions,
  .cta-strip__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-list {
    display: grid;
  }

  .service-grid,
  .why-grid,
  .process-list,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(n+3) {
    grid-column: auto;
  }

  .gallery-item,
  .gallery-button,
  .gallery-button img {
    min-height: 220px;
  }

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

  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .floating-btn {
    width: 52px;
    height: 52px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox__caption {
    bottom: 14px;
  }
}
