:root {
  --ink: #241719;
  --muted: #6f6062;
  --line: #e5e5e5;
  --paper: #ffffff;
  --white: #ffffff;
  --red: #c8192f;
  --deep-red: #8f1022;
  --soft-red: #ffffff;
  --charcoal: #2b2022;
  --shadow: 0 22px 60px rgba(104, 17, 31, 0.16);
  --hero-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 6px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 10px 28px rgba(36, 23, 25, 0.08);
  backdrop-filter: blur(12px);
}

.admin-temp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(36, 23, 25, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.site-logo {
  width: auto;
  height: 44px;
  max-width: 190px;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.08);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--deep-red));
  border-radius: 8px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: #171112;
  font-size: 16px;
  font-weight: 800;
}

.nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 0 10px;
  align-items: center;
  color: #171112;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav a:hover {
  color: #171112;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.active {
  color: var(--red);
}

.nav a.active::after {
  transform: scaleX(1);
}

.nav-feature {
  color: #171112;
  font-size: 17px;
  font-weight: 900;
}

.nav-feature::after {
  transform: scaleX(1);
}

.block-switcher {
  position: sticky;
  top: 57px;
  z-index: 18;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 56px);
  overflow-x: auto;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(36, 23, 25, 0.06);
}

.block-switcher button {
  min-height: 44px;
  padding: 0 18px;
  color: #171112;
  white-space: nowrap;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.block-switcher button:hover,
.block-switcher button.active {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.block-hidden {
  display: none !important;
}

.focused-block .hero {
  display: none;
}

.focused-block [data-block]:not(.block-hidden) {
  max-height: calc(100vh - 57px);
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

.focused-block .split-section:not(.block-hidden),
.focused-block .contact-section:not(.block-hidden) {
  align-content: start;
}

.focused-block .media-section:not(.block-hidden),
.focused-block .products-section:not(.block-hidden),
.focused-block .references-section:not(.block-hidden),
.focused-block .gallery-section:not(.block-hidden),
.focused-block .topic-video-section:not(.block-hidden),
.focused-block .ideas-section:not(.block-hidden) {
  display: grid;
  align-content: start;
}

.focused-block .section:not(.block-hidden),
.focused-block .split-section:not(.block-hidden),
.focused-block .process:not(.block-hidden),
.focused-block .contact-section:not(.block-hidden) {
  padding-top: 12px;
  padding-bottom: 12px;
}

.hero-socials {
  position: absolute;
  top: 18px;
  right: clamp(18px, 4vw, 72px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: min(430px, calc(100% - 36px));
  gap: 6px;
}

.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  color: #111111;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hero-socials a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.hero-socials img {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.language-switch {
  justify-self: end;
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 8px 3px 4px;
  color: var(--ink);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.language-switch button.active {
  background: var(--white);
  box-shadow: inset 0 0 0 1px #d9d9d9;
}

.language-switch img {
  width: 24px;
  height: 17px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(36, 23, 25, 0.12);
}

.admin-open,
.button,
.icon-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-open,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.admin-open,
.button.primary,
.youtube-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--deep-red));
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: end;
  padding: 76px clamp(18px, 5vw, 72px) 38px;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: var(--charcoal);
  background:
    linear-gradient(90deg, rgba(43, 32, 34, 0.96), rgba(95, 16, 29, 0.74), rgba(95, 16, 29, 0.18)),
    var(--hero-image) center/cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 780px;
}

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

.hero .eyebrow {
  color: #ffb9c3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.section,
.split-section,
.process,
.contact-section {
  padding: 22px clamp(18px, 4vw, 54px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.section-heading p,
.contact-section p,
.split-copy p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: center;
  background: var(--paper);
}

.split-section.reverse {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 0.8fr);
  background: var(--white);
}

.split-section.reverse .split-copy {
  order: 2;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.service-card {
  padding: 12px 14px;
  color: #171112;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card h3 {
  color: var(--red);
  font-size: 17px;
}

.service-card p {
  margin-bottom: 0;
  color: #40383a;
  font-size: 14px;
  line-height: 1.42;
}

.reverse .feature-list li {
  background: var(--paper);
}

.media-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center center;
}

.media-slider {
  height: clamp(320px, 34vw, 460px);
}

.media-slider img {
  display: block;
  height: 100%;
  min-height: 0;
  transition: opacity 220ms ease;
}

.media-slider.is-changing img {
  opacity: 0.35;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgba(24, 32, 43, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: var(--red);
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(24, 32, 43, 0.35);
  border-radius: 50%;
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--red);
  border-color: var(--white);
  transform: scale(1.2);
}

.media-slider .panel-label {
  max-width: calc(100% - 150px);
}

@media (max-width: 560px) {
  .media-slider {
    height: 300px;
  }
}

.panel-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(24, 32, 43, 0.78);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.ideas-section {
  padding-right: clamp(18px, 2vw, 28px);
  padding-left: clamp(18px, 2vw, 28px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.ideas-section .section-heading {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.ideas-section #ideasText {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
  text-align: center;
  white-space: pre-line;
}

.media-section {
  background: #ffffff;
}

.gallery-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.software-gallery-section {
  background: #ffffff;
}

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

.image-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(104, 17, 31, 0.08);
}

.image-gallery img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
}

.image-gallery figcaption {
  padding: 10px 12px;
  color: #171112;
  font-weight: 800;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 10px;
}

.section-heading p {
  margin-bottom: 0;
}

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

.video-grid article {
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-video-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.topic-video-section .video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

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

.product-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: center center;
  background: #ffffff;
}

.product-card div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.product-card h3,
.product-card p {
  margin: 0;
  text-align: center;
}

.product-card .button {
  width: 100%;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #2b2022;
}

.video-frame.small {
  margin-top: 8px;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  object-fit: cover;
  object-position: center center;
}

.video-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.brand-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 34s linear infinite;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 16px;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.brand-pill img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  background: #ffffff;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--charcoal);
  color: var(--white);
}

.process div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.process span {
  display: block;
  margin-bottom: 8px;
  color: #ffb9c3;
  font-weight: 800;
}

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

.references-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.references-wrap {
  display: grid;
  gap: 10px;
}

.reference-group {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-group h3 {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 20px;
}

.reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 8px;
}

.reference-card {
  display: grid;
  grid-template-rows: 54px minmax(28px, auto);
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 10px;
  overflow: hidden;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-card img {
  width: 100%;
  max-width: 126px;
  height: 48px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  opacity: 1;
}

.reference-card span {
  display: block;
  width: 100%;
  padding: 5px 6px;
  background: #ffffff;
  border: 1px solid rgba(234, 216, 220, 0.9);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.reference-card:not(.has-logo) {
  display: flex;
  align-items: center;
}

.reference-card:not(.has-logo) span {
  background: transparent;
  border: 0;
}

.contact-section {
  display: grid;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  background: #3b3b3d;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1.2fr 0.95fr;
  gap: clamp(16px, 3vw, 36px);
  width: 100%;
}

.contact-info-card {
  padding: 0;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.contact-info-card span {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  text-transform: none;
}

.contact-info-card span::after {
  content: "";
  display: block;
  width: 62px;
  height: 1px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.38);
}

.contact-info-card a,
.contact-info-card p {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-info-card a {
  color: #ffffff;
  margin-bottom: 3px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 3px;
}

.contact-logo-card img {
  width: min(220px, 100%);
  height: 84px;
  margin-top: 0;
  object-fit: contain;
  object-position: center center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
}

.contact-map-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: 20px;
  align-items: stretch;
  padding-top: 8px;
}

.contact-map-card > div {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 260px;
  padding: 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.contact-map-card span {
  color: #ffffff;
  font-size: 28px;
}

.contact-map-card p,
.contact-map-card strong {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
}

.contact-map-card strong {
  color: #ffffff;
}

.contact-map-card iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 8px;
}

.contact-request-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.contact-form-heading {
  display: grid;
  gap: 4px;
}

.contact-form-heading span {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.contact-form-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.contact-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-consent input {
  margin-top: 3px;
}

.contact-consent details {
  margin-top: 6px;
  color: #ffffff;
  font-size: 0.85rem;
}

.contact-consent summary {
  cursor: pointer;
}

.contact-request-form label {
  color: #ffffff;
}

.contact-request-form input,
.contact-request-form select,
.contact-request-form textarea {
  color: #171112;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
}

.contact-request-form textarea {
  min-height: 92px;
}

.contact-request-form .button {
  justify-self: start;
  min-width: 210px;
}

.contact-request-form .button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.contact-form-status {
  min-height: 22px;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.contact-form-status.success {
  color: #9ff0b5;
}

.contact-form-status.error {
  color: #ffd0d6;
}

.admin-panel {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 40;
  width: min(720px, calc(100vw - 36px));
  max-height: min(470px, calc(100vh - 122px));
  padding: 18px;
  overflow-y: auto;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease;
}

.admin-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  font-weight: 800;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #171112;
  font-size: 13px;
  font-weight: 800;
}

.admin-field {
  display: grid;
  gap: 7px;
  color: #171112;
  font-size: 13px;
  font-weight: 800;
}

.media-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.admin-file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  overflow: hidden;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
  background: #171112;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.admin-file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.admin-header h2,
.admin-group h3 {
  color: var(--red);
}

.admin-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-group h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.admin-subgroup {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-subgroup h4 {
  margin: 0;
  color: var(--red);
  font-size: 15px;
}

.admin-focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(200, 25, 47, 0.14);
}

.admin-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-mini-button {
  min-height: 34px;
  padding: 0 12px;
  color: #171112;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-mini-button.danger {
  color: var(--red);
  border-color: var(--red);
}

.admin-add-button {
  min-height: 42px;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  background: var(--red);
  border: 0;
  border-radius: 8px;
}

.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-preview-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  pointer-events: none;
  background: rgba(15, 25, 34, 0.08);
}

.overlay.open {
  display: none;
}

.site-bot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 28;
  width: 238px;
  height: 158px;
  color: #171112;
  animation: bot-bounce 1.75s ease-in-out infinite;
}

.bot-whatsapp-link {
  position: absolute;
  top: 14px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  color: #191417;
  font-size: 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 22px 22px 8px 22px;
  box-shadow: 0 12px 28px rgba(36, 23, 25, 0.14);
}

.bot-whatsapp-link::after {
  position: absolute;
  right: -7px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  content: "";
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(37, 211, 102, 0.28);
  border-bottom: 1px solid rgba(37, 211, 102, 0.28);
  transform: rotate(-45deg);
}

.bot-whatsapp-link img,
.bot-whatsapp-link span {
  position: relative;
  z-index: 1;
}

.bot-whatsapp-link img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-bot-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 118px;
  height: 118px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.site-bot-toggle::before {
  display: none;
}

.bot-mark {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

.bot-mark img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 14px 18px rgba(36, 23, 25, 0.18));
}

@keyframes bot-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-10px) scale(1.03);
  }

  58% {
    transform: translateY(2px) scale(0.98);
  }
}

.bot-toggle-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.bot-toggle-text strong {
  color: #171112;
  font-size: 15px;
  line-height: 1.15;
}

.bot-toggle-text small {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.site-bot-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  display: none;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(36, 23, 25, 0.25);
}

.site-bot-panel.open {
  display: block;
}

.site-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--deep-red), var(--red));
}

.site-bot-header p,
.site-bot-header h3 {
  margin: 0;
}

.site-bot-header p {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-bot-header h3 {
  font-size: 22px;
  line-height: 1.1;
}

.site-bot-close {
  width: 34px;
  height: 34px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
}

.site-bot-messages {
  display: grid;
  max-height: 310px;
  gap: 10px;
  padding: 16px;
  overflow: auto;
  background: #ffffff;
}

.bot-message {
  max-width: 88%;
  padding: 11px 12px;
  color: #171112;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  background: #ffffff;
  border: 1px solid rgba(36, 23, 25, 0.08);
  border-radius: 8px;
}

.bot-message.user {
  justify-self: end;
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
}

.site-bot-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 0;
  background: #ffffff;
}

.site-bot-suggestions button {
  min-height: 34px;
  color: #171112;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 16px;
  background: #ffffff;
}

.site-bot-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: #171112;
  background: #ffffff;
  border: 1px solid rgba(36, 23, 25, 0.12);
  border-radius: 8px;
}

.site-bot-form button {
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  background: var(--red);
  border: 0;
  border-radius: 8px;
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
  }

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

  .block-switcher {
    top: 128px;
  }
}

@media (max-width: 900px) {
  .admin-panel {
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .admin-temp-button {
    display: none;
  }

  .nav {
    display: none;
  }

  .block-switcher {
    top: 79px;
  }

  .hero-socials {
    position: relative;
    top: auto;
    right: auto;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 28px;
  }

  .hero-socials span {
    display: none;
  }

  .hero-socials a {
    width: 32px;
    min-height: 30px;
    padding: 0;
    justify-content: center;
  }

  .hero {
    min-height: 420px;
  }

  .focused-block [data-block]:not(.block-hidden) {
    max-height: none;
    min-height: auto;
    overflow: visible;
  }

  .intro,
  .idea-grid,
  .image-gallery,
  .product-grid,
  .reference-list,
  .split-section,
  .split-section.reverse,
  .video-grid,
  .process,
  .contact-section,
  .contact-map-card {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-copy {
    order: 0;
  }

  .process {
    gap: 1px;
  }

  .contact-section {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 12px;
    grid-template-columns: auto auto;
  }

  .brand span:last-child {
    display: none;
  }

  .site-logo {
    height: 42px;
    max-width: 180px;
  }

  .language-switch button {
    min-height: 38px;
    padding-right: 8px;
    font-size: 12px;
  }

  .language-switch img {
    width: 30px;
    height: 21px;
  }

  .hero {
    min-height: 390px;
    padding-top: 68px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section,
  .split-section,
  .process,
  .contact-section {
    padding: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .media-panel,
  .media-panel img {
    min-height: 240px;
  }

  .image-gallery img,
  .product-card img {
    height: 180px;
  }

  .form-grid,
  .admin-preview-grid,
  .contact-info-grid,
  .contact-form-grid,
  .admin-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .media-input-row {
    grid-template-columns: 1fr;
  }

  .site-bot {
    right: 16px;
    bottom: 16px;
    left: auto;
  }

  .site-bot-toggle {
    width: 92px;
    height: 92px;
    min-width: 0;
  }

  .bot-mark,
  .bot-mark img {
    width: 92px;
    height: 92px;
  }

  .site-bot-panel {
    width: min(340px, calc(100vw - 32px));
  }
}

#media > .section-heading {
  display: none;
}

.focused-block .media-section:not(.block-hidden) {
  padding-top: 0;
}

#videoGrid .youtube-button {
  display: none;
}

#media .brand-marquee {
  display: none;
}

@media (min-width: 900px) {
  .focused-block #media:not(.block-hidden) {
    height: calc(100vh - 57px);
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
  }

  #videoGrid {
    height: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  #videoGrid article {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #videoGrid .video-frame {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }
}

.video-lite {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2b2022, #5a1520);
  border: 0;
  cursor: pointer;
}

.video-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-lite.no-thumb img {
  display: none;
}

.video-lite-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: var(--red);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.video-lite-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #ffffff;
}

.video-lite:hover .video-lite-play {
  background: var(--deep-red);
}

#automationVideosSection > .section-heading {
  display: none;
}

#automationGallerySection > .section-heading {
  display: none;
}

#softwareGallerySection > .section-heading,
#softwareVideosSection > .section-heading {
  display: none;
}

#automationServices .service-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

#automationServices .service-card h3,
#automationServices .service-card p {
  grid-column: 2;
}

#automationServices .service-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--red);
  background: #fbeaec;
  border-radius: 8px;
}

#automationServices .service-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#automationServices .service-card:hover {
  border-color: var(--red);
}

#automationServices .service-card.is-active {
  border-color: var(--red);
  background: #fff5f6;
  box-shadow: inset 4px 0 0 var(--red), 0 6px 16px rgba(200, 25, 47, 0.12);
}

#automationServices .service-card.is-active .service-icon {
  color: #ffffff;
  background: var(--red);
}

#automationServices .service-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

#automationServices .service-card p {
  display: none;
}

#automationServices .service-card {
  padding: 10px 14px;
}

#automationServices .service-card h3 {
  margin: 0;
}

#automationServices .service-icon {
  grid-row: 1;
}

.automation-slider {
  height: clamp(260px, 28vw, 360px);
}

.automation-slider .panel-label {
  display: none;
}

.automation-slider .slider-dots {
  bottom: auto;
  top: 12px;
}

#automation > .split-copy > .eyebrow,
#automation > .split-copy > #automationTitle,
#automation > .split-copy > #automationText,
#automationServices {
  display: none;
}

.slide-story {
  padding-left: 22px;
  border-left: 5px solid var(--red);
}

.slide-story h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.slide-story p {
  margin: 0;
  color: #40383a;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
}

.slide-story.swap {
  animation: story-in 0.45s ease;
}

@keyframes story-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#automationGallerySection {
  display: none;
}

@media (min-width: 900px) {
  .focused-block #automation:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.46);
    overflow: hidden;
  }

  .focused-block #automation .automation-slider {
    height: 100%;
  }

  .focused-block #automation .slide-story h2 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.6vw, 36px);
  }

  .focused-block #automation .slide-story p {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
  }

  .focused-block #automationVideosSection:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.54);
    grid-template-rows: minmax(0, 1fr);
    padding-top: 0;
    overflow: hidden;
  }

  #automationVideoGrid {
    height: 100%;
  }

  #automationVideoGrid article {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #automationVideoGrid .video-frame {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }
}

#software > .split-copy > .eyebrow,
#software > .split-copy > #softwareTitle,
#software > .split-copy > #softwareText,
#softwareServices {
  display: none;
}

#softwareGallerySection {
  display: none;
}

.software-slider {
  height: clamp(260px, 28vw, 360px);
}

.software-slider .panel-label {
  display: none;
}

.software-slider .slider-dots {
  bottom: auto;
  top: 12px;
}

@media (min-width: 900px) {
  .focused-block #software:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.46);
    overflow: hidden;
  }

  .focused-block #software .software-slider {
    height: 100%;
  }

  .focused-block #software .slide-story h2 {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.6vw, 36px);
  }

  .focused-block #software .slide-story p {
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.5;
  }

  .focused-block #softwareVideosSection:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.54);
    grid-template-rows: minmax(0, 1fr);
    padding-top: 0;
    overflow: hidden;
  }

  #softwareVideoGrid {
    height: 100%;
  }

  #softwareVideoGrid article {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #softwareVideoGrid .video-frame {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }
}

#products > .section-heading {
  display: none;
}

.product-card .product-version {
  justify-self: center;
  padding: 2px 10px;
  color: var(--red);
  background: #fbeaec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.dl-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.dl-btn {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-btn img {
  width: 20px;
  height: 20px;
  min-height: 0;
  object-fit: contain;
}

.dl-btn small {
  color: #6b6264;
  font-weight: 600;
}

.dl-btn .dl-action {
  padding: 3px 12px;
  color: #ffffff;
  background: var(--red);
  border-radius: 6px;
  font-size: 13px;
}

.dl-btn:hover {
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(200, 25, 47, 0.14);
}

.dl-soon {
  padding: 8px 12px;
  color: #6b6264;
  background: #f3f0f0;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 900px) {
  .focused-block #products:not(.block-hidden) {
    height: calc(100vh - 57px);
    grid-template-rows: minmax(0, 1fr);
    padding-top: 0;
    overflow: hidden;
  }

  #productGrid {
    height: 100%;
  }

  #productGrid .product-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #productGrid .product-card > img {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  #productGrid .product-card > div {
    flex: none;
  }
}

@media (min-width: 900px) {
  #productGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  #productGrid .product-card {
    display: grid;
    grid-template-columns: 36% 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  #productGrid .product-card > img {
    width: 100%;
    height: 100%;
    flex: none;
  }

  #productGrid .product-card > div {
    align-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 14px;
    text-align: left;
  }

  #productGrid .product-card h3 {
    margin: 0;
    font-size: 17px;
  }

  #productGrid .product-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  #productGrid .product-version {
    justify-self: start;
  }

  #productGrid .dl-list {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px;
  }

  #productGrid .dl-btn {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding: 7px 4px;
    text-align: center;
  }

  #productGrid .dl-btn .dl-action {
    display: none;
  }

  #productGrid .dl-btn .dl-name {
    display: grid;
    font-size: 12px;
    line-height: 1.2;
  }

  #productGrid .dl-btn small {
    font-size: 11px;
  }

  #productGrid .dl-soon {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (min-width: 900px) {
  #productGrid .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  #productGrid .product-card > img {
    flex: 1;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  #productGrid .product-card > div {
    flex: none;
    align-content: start;
    gap: 4px;
    padding: 8px 12px 10px;
    text-align: center;
  }

  #productGrid .product-card h3 {
    font-size: 16px;
  }

  #productGrid .product-card p {
    font-size: 12.5px;
    line-height: 1.3;
  }

  #productGrid .product-version {
    position: absolute;
    top: 8px;
    left: 8px;
    justify-self: auto;
    background: rgba(255, 255, 255, 0.94);
  }

  #productGrid .dl-list {
    margin-top: 2px;
  }

  #productGrid .dl-soon {
    padding: 5px 12px;
  }
}

@media (min-width: 900px) {
  #productGrid .product-card > div {
    min-height: 158px;
  }
}

.block-switcher {
  display: none;
}

.about-timeline {
  display: grid;
  gap: 0;
  padding-left: 18px;
  border-left: 3px solid var(--red);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 8px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -26px;
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 3px solid var(--red);
  border-radius: 50%;
}

.timeline-item strong {
  color: var(--red);
  font-size: 18px;
}

.timeline-item span {
  color: #40383a;
  font-size: 14px;
  line-height: 1.4;
}

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

.stat-box {
  display: grid;
  gap: 2px;
  padding: 14px;
  text-align: center;
  background: #fff5f6;
  border: 1px solid #f1d3d7;
  border-radius: 8px;
}

.stat-box strong {
  color: var(--red);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
}

.stat-box span {
  color: #40383a;
  font-size: 14px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .focused-block #ideas:not(.block-hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px 40px;
    height: calc(100vh - 57px);
    align-content: stretch;
    overflow: hidden;
  }

  #ideas .section-heading {
    grid-column: 1;
    max-width: none;
    margin: 0;
    text-align: left;
    overflow: auto;
  }

  #ideas .section-heading h2 {
    font-size: clamp(22px, 2.2vw, 32px);
  }

  #ideas #ideasText {
    font-size: clamp(13px, 1.05vw, 15.5px);
    line-height: 1.5;
    text-align: left;
  }

  #ideas .about-timeline {
    grid-column: 2;
    align-self: center;
  }

  #ideas .about-stats {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  #ideas #ideasText {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
  }

  #ideas .section-heading h2 {
    font-size: clamp(26px, 2.6vw, 38px);
  }

  .timeline-item {
    padding: 10px 0;
  }

  .timeline-item span {
    font-size: 15px;
  }
}

.about-logo {
  display: block;
  width: auto;
  height: 72px;
  margin: 0 0 10px;
  object-fit: contain;
}

@media (min-width: 900px) {
  #ideas .section-heading {
    align-self: center;
    padding-top: 6px;
  }

  #ideas #ideasText {
    font-size: clamp(16px, 1.4vw, 19px);
  }
}

@media (min-width: 900px) {
  #ideas .section-heading {
    align-self: start;
    padding-top: 0;
  }

  #ideas .about-logo {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 0;
  }

  #ideas .about-timeline {
    grid-row: 1;
    align-self: end;
  }
}

@media (min-width: 900px) {
  #ideas .about-logo {
    justify-self: center;
  }
}

@media (min-width: 900px) {
  #ideas .about-timeline {
    align-self: stretch;
    margin-top: 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

.stat-box {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
}

.stat-box strong {
  font-size: clamp(24px, 2.2vw, 32px);
}

.stat-box span {
  text-align: right;
}

.stat-box {
  flex-direction: row;
}

.stat-box span {
  text-align: left;
}

.topbar {
  background: var(--red);
  border-bottom: 0;
  box-shadow: 0 6px 18px rgba(143, 16, 34, 0.35);
}

.topbar .site-logo {
  padding: 4px 10px;
  background: #ffffff;
  border-radius: 8px;
  filter: none;
}

.topbar .nav,
.topbar .nav a,
.topbar .nav a:hover,
.topbar .nav a.active,
.topbar .nav-feature {
  color: #ffffff;
}

.topbar .nav a::after {
  background: #ffffff;
}

.topbar .nav-feature::after {
  transform: scaleX(0);
}

.topbar .nav a.active::after,
.topbar .nav a:hover::after {
  transform: scaleX(1);
}

.stat-box {
  background: var(--red);
  border-color: var(--deep-red);
}

.stat-box strong,
.stat-box span {
  color: #ffffff;
}

.dl-soon,
#productGrid .dl-soon {
  color: #ffffff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.reference-card small {
  display: block;
  margin-top: 2px;
  color: #6b6264;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.ref-initials {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  place-items: center;
  color: #ffffff;
  background: var(--red);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.reference-card:not(.has-logo) {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    row-gap: 4px;
    padding-bottom: 0;
  }

  .topbar .top-socials {
    display: none;
  }

  .topbar .nav {
    display: flex;
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 14px;
  }

  .topbar .nav::-webkit-scrollbar {
    display: none;
  }

  .topbar .nav a {
    flex: none;
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .topbar .nav a::after {
    bottom: 0;
  }
}

@media (max-width: 700px) {
  #automationVideoGrid,
  #softwareVideoGrid,
  .topic-video-section .video-grid {
    grid-template-columns: 1fr;
  }

  #automationVideoGrid .video-frame,
  #softwareVideoGrid .video-frame {
    aspect-ratio: 16 / 9;
  }
}

.ref-initials {
  border-radius: 8px;
}

/* ---- İletişim sayfası: kırmızı-beyaz, tek ekran ---- */
.contact-section {
  background: #ffffff;
  color: #171112;
}

.contact-logo-card {
  display: none;
}

#contact .contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#contact .contact-info-card {
  padding: 10px 12px;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
}

#contact .contact-info-card span {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#contact .contact-info-card span::after {
  display: none;
}

#contact .contact-info-card a,
#contact .contact-info-card p {
  color: #171112;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

#contact .contact-info-card a:hover {
  color: var(--red);
}

#contact .contact-map-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#contact .contact-map-card iframe {
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-radius: 0;
}

#contact .contact-map-card > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  grid-row: 2;
  min-height: 0;
  padding: 10px 14px;
  color: #171112;
  background: #ffffff;
  border: 0;
  border-top: 3px solid var(--red);
  border-radius: 0;
}

#contact .contact-map-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

#contact .contact-map-card p,
#contact .contact-map-card strong {
  color: #171112;
  font-size: 13px;
  line-height: 1.3;
}

#contact .contact-request-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 14px;
  overflow: hidden;
  color: #171112;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#contact .contact-form-heading {
  margin: 0 -16px 4px;
  padding: 12px 16px;
  background: var(--red);
}

#contact .contact-form-heading span {
  color: #ffffff;
  font-size: 18px;
}

#contact .contact-form-heading p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
}

#contact .contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#contact .contact-form-grid label:nth-child(5) {
  grid-column: 1 / -1;
}

#contact .contact-request-form label {
  display: grid;
  gap: 3px;
  color: #171112;
  font-size: 12.5px;
  font-weight: 800;
}

#contact .contact-request-form input,
#contact .contact-request-form select,
#contact .contact-request-form textarea {
  padding: 7px 10px;
  border: 1px solid #d9cfd1;
  border-radius: 6px;
  font-size: 13px;
}

#contact .contact-request-form > label:has(textarea) {
  flex: 1;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

#contact .contact-request-form textarea {
  min-height: 56px;
  height: 100%;
  resize: none;
}

#contact .contact-consent {
  font-size: 12px;
}

#contact .contact-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
}

#contact .contact-consent details {
  margin-top: 2px;
  color: #40383a;
  font-size: 12px;
}

#contact .contact-consent summary {
  color: var(--red);
  font-weight: 800;
}

#contact .contact-request-form .button {
  justify-self: stretch;
  min-width: 0;
  min-height: 40px;
}

#contact .contact-form-status {
  min-height: 0;
  color: #171112;
  font-size: 13px;
}

#contact .contact-form-status.success {
  color: #1c7c3a;
}

#contact .contact-form-status.error {
  color: var(--red);
}

@media (min-width: 900px) {
  .focused-block #contact:not(.block-hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "info form"
      "map form";
    gap: 12px 20px;
    height: calc(100vh - 57px);
    padding: 12px 28px;
    overflow: hidden;
    align-content: stretch;
  }

  #contact .contact-info-grid {
    grid-area: info;
  }

  #contact .contact-map-card {
    grid-area: map;
  }

  #contact .contact-request-form {
    grid-area: form;
  }
}

#contact .contact-info-grid {
  grid-template-columns: 1.05fr 0.85fr 1.35fr;
}

#contact .contact-info-card a,
#contact .contact-info-card p {
  font-size: 12.5px;
  overflow-wrap: break-word;
  word-break: normal;
}

#contact .contact-consent input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
}

#contact .contact-info-grid {
  grid-template-columns: 0.95fr 1.1fr 1.25fr;
}

@media (max-width: 900px) {
  #contact .contact-info-grid,
  #contact .contact-form-grid {
    grid-template-columns: 1fr;
  }

  #contact .contact-map-card iframe {
    height: 240px;
  }

  #contact .contact-request-form textarea {
    min-height: 110px;
  }
}

/* iletişim: adres haritanın üstünde, kartlar büyük, harita küçük */
#contact .contact-map-card {
  grid-template-rows: auto minmax(0, 1fr);
}

#contact .contact-map-card > div {
  grid-row: 1;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-top: 0;
  border-bottom: 3px solid var(--red);
}

#contact .contact-map-card span {
  display: none;
}

#contact .contact-map-card p {
  font-size: 15px;
  font-weight: 800;
}

#contact .contact-map-card strong {
  color: #40383a;
  font-size: 13px;
  font-weight: 600;
}

#contact .contact-map-card iframe {
  grid-row: 2;
}

#contact .contact-info-card {
  padding: 14px 16px;
}

#contact .contact-info-card span {
  margin-bottom: 8px;
  font-size: 14px;
}

#contact .contact-info-card a,
#contact .contact-info-card p {
  font-size: 14.5px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .focused-block #contact:not(.block-hidden) {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

#contact .contact-info-grid {
  grid-template-columns: 0.85fr 1.4fr 1.25fr;
}

#contact .contact-info-card {
  padding: 12px 14px;
}

#contact .contact-info-card a,
#contact .contact-info-card p {
  font-size: 13.5px;
}

#contact .contact-info-card {
  padding: 16px 16px;
}

#contact .contact-info-card span {
  margin-bottom: 10px;
  font-size: 15px;
}

#contact .contact-info-card a,
#contact .contact-info-card p {
  font-size: 14px;
  line-height: 1.6;
}

#contact .contact-info-grid {
  grid-template-columns: 1.15fr 1fr;
}

#contact .contact-info-grid {
  grid-template-columns: 1fr 1.25fr;
}

@media (max-width: 600px) {
  #contact .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Tümü: bütün sayfalar alt alta */
.all-blocks #media {
  display: none;
}

html {
  scroll-padding-top: 57px;
}

@media (min-width: 900px) {
  html.all-snap {
    scroll-snap-type: y proximity;
  }

  .all-blocks #automation,
  .all-blocks #software,
  .all-blocks #products,
  .all-blocks #ideas,
  .all-blocks #references,
  .all-blocks #contact {
    scroll-snap-align: start;
  }
}

/* Otomasyon / Yazılım: daha ferah — iki video, üst bölüm büyük */
@media (min-width: 900px) {
  .focused-block #automation:not(.block-hidden),
  .focused-block #software:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.57);
    padding: 22px clamp(28px, 4vw, 64px);
    gap: 40px;
  }

  .focused-block #automationVideosSection:not(.block-hidden),
  .focused-block #softwareVideosSection:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.43);
    padding: 0 clamp(28px, 4vw, 64px) 18px;
  }

  #automationVideoGrid,
  #softwareVideoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-inline: auto;
    gap: 18px;
  }

  #automationVideoGrid > :nth-child(n + 3),
  #softwareVideoGrid > :nth-child(n + 3) {
    display: none;
  }
}

/* üç video geri geldi */
@media (min-width: 900px) {
  #automationVideoGrid,
  #softwareVideoGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1120px;
    gap: 16px;
  }

  #automationVideoGrid > :nth-child(n + 3),
  #softwareVideoGrid > :nth-child(n + 3) {
    display: flex;
  }
}

/* oynayan video kutuyu hiç küçültmesin */
.video-frame iframe,
.video-frame video,
.video-frame .video-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  #automationVideoGrid,
  #softwareVideoGrid {
    width: 100%;
    max-width: 1240px;
  }
}

/* videolar: biraz daha büyük ve cilalı */
@media (min-width: 900px) {
  .focused-block #automation:not(.block-hidden),
  .focused-block #software:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.52);
  }

  .focused-block #automationVideosSection:not(.block-hidden),
  .focused-block #softwareVideosSection:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.48);
  }

  #automationVideoGrid,
  #softwareVideoGrid {
    max-width: 1320px;
    gap: 20px;
  }
}

#automationVideoGrid article,
#softwareVideoGrid article {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(36, 23, 25, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#automationVideoGrid article:hover,
#softwareVideoGrid article:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(143, 16, 34, 0.22);
}

#automationVideoGrid h3,
#softwareVideoGrid h3 {
  font-size: 15px;
  color: #171112;
}

.video-lite img {
  transition: transform 0.35s ease;
}

.video-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 12, 0.45), rgba(20, 10, 12, 0) 55%);
  pointer-events: none;
}

.video-lite-play {
  z-index: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-lite:hover img {
  transform: scale(1.05);
}

.video-lite:hover .video-lite-play {
  transform: translate(-50%, -50%) scale(1.12);
}

/* yükseklikler eski haline */
@media (min-width: 900px) {
  .focused-block #automation:not(.block-hidden),
  .focused-block #software:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.57);
  }

  .focused-block #automationVideosSection:not(.block-hidden),
  .focused-block #softwareVideosSection:not(.block-hidden) {
    height: calc((100vh - 57px) * 0.43);
  }
}

/* kısa ekranlarda (laptop, 125% ölçek) iletişim sayfası sıkışmasın, kaydırılsın */
@media (min-width: 900px) and (max-height: 660px) {
  .focused-block #contact:not(.block-hidden) {
    height: auto;
    min-height: calc(100vh - 57px);
    overflow: visible;
    grid-template-rows: auto auto;
  }

  #contact .contact-map-card iframe {
    height: 240px;
  }

  #contact .contact-request-form textarea {
    min-height: 90px;
  }

  #contact .contact-request-form {
    overflow: visible;
  }
}

/* büyük ekranlarda iletişim formu aşırı uzamasın */
@media (min-width: 1500px) {
  .focused-block #contact:not(.block-hidden) {
    padding-inline: max(28px, calc((100vw - 1560px) / 2));
  }

  #contact .contact-request-form {
    align-self: start;
  }

  #contact .contact-request-form > label:has(textarea) {
    flex: 0 0 auto;
  }

  #contact .contact-request-form textarea {
    height: 170px;
    min-height: 120px;
  }
}

/* videolar hep 16:9: ızgara genişliği bölüm yüksekliğine göre */
@media (min-width: 900px) {
  #automationVideoGrid,
  #softwareVideoGrid {
    width: 100%;
    max-width: min(100%, calc(3 * ((100vh - 57px) * 0.43 - 82px) * 1.7778 + 100px));
  }
}

/* Üst çubuk: sosyal ikonlar solda, menü sağa yaslı */
@media (min-width: 901px) {
  .topbar { grid-template-columns: auto 1fr auto auto; padding-right: 14px; }
  .topbar .top-socials { order: 3; display: flex; align-items: center; gap: 8px; }
  .topbar .top-socials a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #fff; border-radius: 8px; transition: transform 0.18s ease; }
  .topbar .top-socials a:hover { transform: translateY(-2px); }
  .topbar .top-socials img { width: 16px; height: 16px; }
  .topbar .nav { order: 2; justify-content: center; }
  .topbar .in-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: #0A66C2; color: #fff; border-radius: 3px; font-size: 11px; font-weight: 800; line-height: 1; }
}

/* Dil seçici: en sağda, açılır liste */
.topbar .language-switch { order: 4; position: relative; display: block; }
.topbar .language-switch button { width: 100%; white-space: nowrap; }
.topbar .language-switch button.active::after { content: "▾"; margin-left: 4px; font-size: 10px; }
.topbar .language-switch button:not(.active) { display: none; position: absolute; top: calc(100% + 4px); right: 0; width: 100%; padding: 3px 8px 3px 4px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); z-index: 30; }
.topbar .language-switch.open button:not(.active) { display: inline-flex; }

/* Sosyal ikonlar: gerçek logo, beyaz kutu yok */
.topbar .top-socials a { width: 32px; height: 32px; background: none; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.topbar .top-socials svg { width: 100%; height: 100%; display: block; border-radius: 8px; }

/* Admin ayrı pencerede: panel pencereyi doldurur */
.admin-window .admin-panel { top: 0; right: 0; left: 0; bottom: 0; width: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
.admin-window [data-overlay] { display: none; }


@media (max-width: 900px) {
  .topbar .language-switch { order: 2; }
}
