:root {
  --rr-accent: #ca662d;
  --rr-accent-hover: #b55724;
  --rr-black: #1c1c1c;
  --rr-text: #111111;
  --rr-muted: #86868e;
  --rr-bg: #ffffff;
  --rr-soft: #f4f4f5;
  --rr-border: #e4e4e7;
  --rr-radius-media: 20px;
  --rr-radius-card: 24px;
  --rr-radius-pill: 999px;
  --rr-radius-input: 16px;
  --rr-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --rr-font-display: "Archivo", "Inter", sans-serif;
  --rr-container: 1300px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rr-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--rr-text);
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.045) 1px, transparent 0) 0 0 / 22px 22px,
    #fff;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--rr-container);
}

.section-pad {
  padding: 48px 0;
}

@media (min-width: 992px) {
  .section-pad {
    padding: 72px 0;
  }
}

.text-accent {
  color: var(--rr-accent);
}

.section-title,
.page-title,
.contact-title,
.service-copy h2 {
  font-family: var(--rr-font-display);
  font-weight: 400;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  color: var(--rr-text);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem); /* 44px */
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.page-title {
  font-size: clamp(1.75rem, 3vw, 2rem); /* 32px */
  line-height: 1.15;
}

.page-subtitle {
  color: var(--rr-muted);
  font-size: 16px;
  font-weight: 400;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--rr-border);
  border-radius: 20px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(17, 17, 17, 0.04);
  overflow: visible;
}

.brand-logo {
  display: block;
  width: 110px;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
  overflow: visible;
  min-width: 0;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.header-contacts a:hover {
  color: var(--rr-accent);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  overflow: visible;
}

.soc {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  background: none;
  overflow: visible;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.soc img {
  width: 36px;
  height: 36px;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center;
}

.soc:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 0;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: transparent;
}

.navbar-toggler span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--rr-black);
  border-radius: 2px;
}

@media (min-width: 992px) {
  .header-right {
    display: flex !important;
  }
}

@media (max-width: 991.98px) {
  .header-right {
    width: 100%;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .header-contacts {
    align-items: flex-start;
  }

  .header-bar {
    flex-wrap: wrap;
  }
}

/* Buttons — SF Pro Medium 14 */
.btn-accent-pill,
.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--rr-radius-pill);
  padding: 0.65rem 1.25rem;
  font-family: var(--rr-font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.btn-accent-pill {
  background: var(--rr-accent);
  color: #fff !important;
}

.btn-accent-pill:hover {
  background: var(--rr-accent-hover);
  color: #fff;
}

.btn-dark-pill {
  background: var(--rr-black);
  color: #fff !important;
}

.btn-dark-pill:hover {
  background: #000;
  color: #fff;
}

/* Hero services — Figma Frame 2136138921 */
.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .services-bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
  }
}

.service-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--rr-text);
  animation: fadeUp 0.7s ease both;
}

.service-col:nth-child(2) {
  animation-delay: 0.08s;
}

.service-col:nth-child(3) {
  animation-delay: 0.16s;
}

.service-col--text-first .service-copy {
  order: -1;
}

.service-media {
  width: 100%;
  overflow: hidden;
  border-radius: var(--rr-radius-media);
  background: #f5f5f5;
  line-height: 0;
}

.service-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 417 / 471;
  object-fit: cover;
  border-radius: var(--rr-radius-media);
  box-shadow: none;
  filter: none;
}

.service-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
}

.service-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem); /* 32px */
  margin: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.service-copy p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #3f3f46;
  max-width: 36ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-copy .btn-accent-pill {
  margin-top: 4px;
}

.service-col:hover .service-media img {
  opacity: 0.96;
}

/* Mobile: text over image cards */
@media (max-width: 767.98px) {
  .service-col {
    position: relative;
    display: block;
    gap: 0;
  }

  .service-col--text-first .service-copy {
    order: initial;
  }

  .service-media {
    display: block;
  }

  .service-media img {
    aspect-ratio: 4 / 5;
    min-height: 280px;
  }

  .service-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 18px 22px;
    gap: 10px;
    border-radius: 0 0 var(--rr-radius-media) var(--rr-radius-media);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.55) 45%,
      rgba(0, 0, 0, 0.78) 100%
    );
    color: #fff;
    max-width: none;
  }

  .service-copy h2 {
    color: #fff;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    max-width: 100%;
  }

  .service-copy p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
  }

  .service-copy .btn-accent-pill {
    margin-top: 2px;
  }
}

/* About */
.about-section {
  background: rgba(241, 241, 241, 0.55);
}

.about-text {
  color: #000;
  margin-bottom: 1rem;
  max-width: 52ch;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.about-brand-card {
  background: #f5f5f5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.about-brand-fill {
  display: block;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: center;
  min-height: 280px;
}

.about-brand-logo {
  width: min(280px, 70%);
  margin: auto;
  padding: 40px 20px;
}

.about-brand-bar {
  background: var(--rr-accent);
  color: #fff;
  padding: 22px 28px;
  font-family: var(--rr-font-display);
  font-weight: 400;
  font-stretch: 125%;
  font-size: 20px;
  line-height: 1.2;
}

.media-placeholder {
  min-height: 280px;
  background: #f1f1f1;
}

/* Map */
.map-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.map-img {
  width: 100%;
  display: block;
}

/* Contact */
.contact-panel {
  border-radius: 28px;
  padding: 36px 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(202, 102, 45, 0.92), rgba(180, 70, 20, 0.95)),
    var(--wave) center / cover no-repeat;
  animation: fadeUp 0.6s ease both;
}

@media (min-width: 768px) {
  .contact-panel {
    padding: 48px 40px;
  }
}

.contact-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem); /* 44px */
  margin-bottom: 0.75rem;
  line-height: 1.15;
  color: #fff;
}

.contact-sub {
  opacity: 0.95;
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.form-soft,
.form-pill {
  border: 0;
  background: #fff;
  border-radius: var(--rr-radius-input);
  padding: 0.9rem 1.1rem;
  font-family: var(--rr-font);
  font-size: 14px;
  box-shadow: none;
}

.form-pill {
  border-radius: var(--rr-radius-pill);
}

.form-soft:focus,
.form-pill:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  border-color: transparent;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  opacity: 0.92;
}

.consent input {
  margin-top: 3px;
}

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

/* Footer — Medium 16 / Regular 15 */
.site-footer {
  padding: 56px 0 64px;
  border-top: 1px solid var(--rr-border);
  background: rgba(255, 255, 255, 0.7);
}

.footer-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: #3f3f46;
  font-size: 15px;
  font-weight: 400;
}

.footer-list a:hover {
  color: var(--rr-accent);
}

.footer-hint {
  color: var(--rr-muted);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 12px;
}

.footer-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-form-row .form-control {
  flex: 1 1 180px;
}

/* Inner pages */
.page-section {
  padding-top: 24px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--rr-muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.breadcrumbs a:hover {
  color: var(--rr-accent);
}

.media-rounded {
  border-radius: var(--rr-radius-media);
  overflow: hidden;
  background: #f8f8f8;
}

.media-rounded img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.product-media {
  top: 96px;
}

.product-teaser {
  display: block;
  height: 100%;
  color: inherit;
}

.product-teaser h2 {
  font-family: var(--rr-font-display);
  font-weight: 400;
  font-size: 32px;
}

.accent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

.accent-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.55rem;
}

.accent-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rr-accent);
}

.spec-table {
  margin: 0;
  font-size: 16px;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rr-border);
  align-items: baseline;
}

.spec-row dt {
  margin: 0;
  color: var(--rr-muted);
  font-weight: 400;
}

.spec-row dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.drawing-frame {
  border: 1px solid var(--rr-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 8px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Login */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(202, 102, 45, 0.12), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(17, 17, 17, 0.06), transparent 35%),
    #f7f7f8;
}

.login-wrap {
  width: min(420px, calc(100% - 32px));
}

.login-card {
  background: #fff;
  border: 1px solid var(--rr-border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-title {
  margin: 0;
  font-family: var(--rr-font-display);
  font-size: 1.75rem;
}

.login-sub {
  margin: -6px 0 4px;
  color: #86868e;
}

.login-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #3f3f46;
}

.login-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

/* CMS editor */
.cms-editing .cms-block {
  position: relative;
  isolation: isolate;
}

.cms-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 40;
  pointer-events: auto;
}

.cms-menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.16);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.cms-menu-btn:hover,
.cms-menu-btn:focus-visible,
.cms-block:hover .cms-menu-btn,
.cms-block.is-editing .cms-menu-btn {
  opacity: 1;
  background: #fff;
  transform: scale(1.04);
  outline: none;
}

.cms-menu-icon {
  display: block;
  width: 16px;
  height: 14px;
  flex-shrink: 0;
  pointer-events: none;
}

.cms-actions {
  position: absolute;
  top: 10px;
  right: 56px;
  z-index: 41;
  display: flex;
  gap: 6px;
}

.cms-save,
.cms-cancel {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
}

.cms-save {
  background: #16a34a;
}

.cms-cancel {
  background: #dc2626;
}

.cms-block.is-editing .cms-target {
  outline: 2px solid rgba(202, 102, 45, 0.55);
  outline-offset: 4px;
  border-radius: 6px;
}

.cms-block--image .cms-toolbar {
  top: 12px;
  right: 12px;
  left: auto;
}

.cms-editing .cms-block:not(.cms-block--image) {
  min-height: 1.5em;
}

.cms-editing .cms-block:not(.cms-block--image) .cms-toolbar {
  top: 4px;
  right: 4px;
}

.cms-editing .service-copy .cms-block:not(.cms-block--image) .cms-toolbar {
  top: 0;
  right: 0;
}

.cms-editing a.service-col,
.cms-editing .service-col {
  position: relative;
}

.cms-logout {
  margin: 0;
}

.contact-title {
  white-space: pre-line;
}
