/* =========================================================
   the Company OÜ — Design System
   Shared visual system for www, tools, x, cosius, app and other pages
   Light / dark mode follows the user's operating system automatically
   ========================================================= */

:root {
  color-scheme: light dark;

  --tc-primary: #2563eb;
  --tc-primary-hover: #1d4ed8;
  --tc-primary-active: #1e40af;
  --tc-primary-soft: #eaf2ff;

  --tc-accent: #8b5cf6;
  --tc-accent-soft: #f1ebff;

  --tc-success: #16844b;
  --tc-success-soft: #e8f8ef;
  --tc-warning: #b65b00;
  --tc-warning-soft: #fff1df;
  --tc-danger: #b42318;
  --tc-danger-soft: #fdecec;
  --tc-info: #1769d2;
  --tc-info-soft: #eaf3ff;

  --tc-page: #fbfaff;
  --tc-page-alt: #f2f6ff;
  --tc-surface: rgba(255, 255, 255, 0.9);
  --tc-surface-solid: #ffffff;
  --tc-surface-hover: #f7faff;
  --tc-surface-muted: #f5f7fb;

  --tc-text: #172033;
  --tc-text-muted: #657089;
  --tc-text-soft: #7a8498;
  --tc-text-inverse: #ffffff;

  --tc-border: rgba(84, 105, 140, 0.18);
  --tc-border-strong: rgba(37, 99, 235, 0.35);
  --tc-shadow-sm: 0 8px 22px rgba(31, 48, 82, 0.07);
  --tc-shadow: 0 18px 48px rgba(31, 48, 82, 0.09);
  --tc-shadow-lg: 0 24px 58px rgba(31, 48, 82, 0.14);

  --tc-radius-sm: 10px;
  --tc-radius: 18px;
  --tc-radius-lg: 26px;
  --tc-radius-pill: 999px;

  --tc-container: 1180px;
  --tc-transition: 180ms ease;

  --tc-font:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tc-primary: #72b4ff;
    --tc-primary-hover: #98c9ff;
    --tc-primary-active: #b8d9ff;
    --tc-primary-soft: rgba(80, 145, 230, 0.16);

    --tc-accent: #b79cff;
    --tc-accent-soft: rgba(139, 92, 246, 0.16);

    --tc-success: #5fd59a;
    --tc-success-soft: rgba(22, 132, 75, 0.18);
    --tc-warning: #ffb45a;
    --tc-warning-soft: rgba(182, 91, 0, 0.2);
    --tc-danger: #ff8a80;
    --tc-danger-soft: rgba(180, 35, 24, 0.2);
    --tc-info: #7fbaff;
    --tc-info-soft: rgba(23, 105, 210, 0.18);

    --tc-page: #0d111a;
    --tc-page-alt: #121927;
    --tc-surface: rgba(20, 27, 41, 0.92);
    --tc-surface-solid: #151d2c;
    --tc-surface-hover: #1c273a;
    --tc-surface-muted: #111827;

    --tc-text: #f2f5fb;
    --tc-text-muted: #aab5c8;
    --tc-text-soft: #8f9bb0;
    --tc-text-inverse: #0d111a;

    --tc-border: rgba(181, 198, 226, 0.16);
    --tc-border-strong: rgba(114, 180, 255, 0.45);
    --tc-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.2);
    --tc-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
    --tc-shadow-lg: 0 28px 68px rgba(0, 0, 0, 0.38);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--tc-font);
  color: var(--tc-text);
  background:
    radial-gradient(
      900px 600px at 5% 0%,
      color-mix(in srgb, var(--tc-primary) 16%, transparent),
      transparent 65%
    ),
    radial-gradient(
      820px 540px at 100% 28%,
      color-mix(in srgb, var(--tc-accent) 10%, transparent),
      transparent 68%
    ),
    var(--tc-page);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tc-primary) 55%, transparent);
  outline-offset: 3px;
}

.tc-container,
.container {
  width: min(var(--tc-container), calc(100% - 40px));
  margin-inline: auto;
}

.tc-section,
.section {
  padding-block: 72px;
}

.tc-section + .tc-section,
.section + .section {
  border-top: 1px solid var(--tc-border);
}

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

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

.tc-stack {
  display: grid;
  gap: 16px;
}

.tc-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tc-space-between {
  justify-content: space-between;
}

.tc-center {
  text-align: center;
}

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

.tc-eyebrow,
.kicker,
.category-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-pill);
  color: var(--tc-primary);
  background: var(--tc-primary-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tc-title,
.title {
  margin: 0;
  color: var(--tc-text);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.tc-section-title,
.section-title {
  margin: 0;
  color: var(--tc-text);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.tc-subtitle,
.subtitle,
.section-sub {
  color: var(--tc-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.tc-muted {
  color: var(--tc-text-muted);
}

.tc-soft {
  color: var(--tc-text-soft);
}

.tc-topbar,
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tc-topbar-inner,
.topbar-inner {
  width: min(var(--tc-container), calc(100% - 40px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tc-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tc-text);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.tc-logo,
.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--tc-border);
  box-shadow: var(--tc-shadow-sm);
}

.tc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-nav-link,
.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding-inline: 15px;
  border-radius: var(--tc-radius-pill);
  color: var(--tc-text-muted);
  font-size: 14px;
  font-weight: 800;
  transition:
    color var(--tc-transition),
    background var(--tc-transition),
    transform var(--tc-transition);
}

.tc-nav-link:hover,
.nav-link:hover {
  color: var(--tc-primary);
  background: var(--tc-primary-soft);
  transform: translateY(-1px);
}

.tc-card,
.card,
.panel,
.contact-card {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-lg);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tc-card,
.card,
.panel {
  padding: 28px;
}

.tc-card-title,
.card-title {
  margin: 0 0 16px;
  color: var(--tc-text);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.tc-tile,
.tile {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  color: var(--tc-text);
  background: var(--tc-surface);
  box-shadow: var(--tc-shadow);
  transition:
    transform var(--tc-transition),
    border-color var(--tc-transition),
    background var(--tc-transition),
    box-shadow var(--tc-transition);
}

.tc-tile::after,
.tile::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--tc-primary);
  font-size: 19px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-5px);
  transition:
    opacity var(--tc-transition),
    transform var(--tc-transition);
}

.tc-tile:hover,
.tc-tile:focus-visible,
.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--tc-border-strong);
  background: var(--tc-surface-hover);
  box-shadow: var(--tc-shadow-lg);
}

.tc-tile:hover::after,
.tc-tile:focus-visible::after,
.tile:hover::after,
.tile:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.tc-tile-title,
.tile-title {
  max-width: calc(100% - 25px);
  color: var(--tc-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.tc-tile-sub,
.tile-sub {
  max-width: calc(100% - 25px);
  color: var(--tc-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.tc-button,
.button,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform var(--tc-transition),
    background var(--tc-transition),
    border-color var(--tc-transition),
    color var(--tc-transition),
    box-shadow var(--tc-transition);
}

.tc-button:hover,
.button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.tc-button-primary,
.button.primary,
.btn.primary {
  color: #ffffff;
  background: var(--tc-primary);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tc-primary) 25%, transparent);
}

.tc-button-primary:hover,
.button.primary:hover,
.btn.primary:hover {
  background: var(--tc-primary-hover);
}

.tc-button-secondary,
.button.secondary,
.btn.secondary {
  color: var(--tc-primary);
  border-color: var(--tc-border);
  background: var(--tc-surface-solid);
}

.tc-button-ghost,
.button.ghost,
.btn.ghost {
  color: var(--tc-text);
  border-color: var(--tc-border);
  background: transparent;
}

.tc-button-full,
.button.full,
.btn.full {
  width: 100%;
}

.tc-form-grid,
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.tc-field,
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tc-field-full,
.field.full {
  grid-column: 1 / -1;
}

.tc-field label,
.field label {
  color: var(--tc-text);
  font-size: 13px;
  font-weight: 900;
}

.tc-field input,
.tc-field select,
.tc-field textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--tc-border);
  border-radius: 12px;
  outline: none;
  color: var(--tc-text);
  background: var(--tc-surface-solid);
}

.tc-field textarea,
.field textarea {
  min-height: 120px;
  resize: vertical;
}

.tc-field input:focus,
.tc-field select:focus,
.tc-field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc-primary) 10%, transparent);
}

.tc-table-wrap,
.table-wrap {
  overflow: auto;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  background: var(--tc-surface);
}

.tc-table,
table {
  width: 100%;
  border-collapse: collapse;
  color: var(--tc-text);
  font-size: 14px;
}

.tc-table th,
.tc-table td,
table th,
table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--tc-border);
  text-align: left;
}

.tc-table th,
table th {
  color: var(--tc-text-muted);
  background: var(--tc-surface-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tc-badge,
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 11px;
  border-radius: var(--tc-radius-pill);
  font-size: 12px;
  font-weight: 900;
}

.tc-badge-success,
.status-available {
  color: var(--tc-success);
  background: var(--tc-success-soft);
}

.tc-badge-warning,
.status-reserved {
  color: var(--tc-warning);
  background: var(--tc-warning-soft);
}

.tc-badge-danger,
.status-rented {
  color: var(--tc-danger);
  background: var(--tc-danger-soft);
}

.tc-badge-info {
  color: var(--tc-info);
  background: var(--tc-info-soft);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 24px;
}

.contact-card {
  padding: 20px;
  border-radius: var(--tc-radius);
}

.label {
  color: var(--tc-text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.value {
  display: inline-block;
  margin-top: 7px;
  color: var(--tc-text);
  font-size: 17px;
  font-weight: 900;
}

a.value:hover {
  color: var(--tc-primary);
}

.tc-footer,
.footer {
  padding: 30px 0 38px;
  color: var(--tc-text-muted);
  font-size: 14px;
}

.tc-footer-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tc-footer a,
.footer a {
  color: var(--tc-primary);
  font-weight: 800;
}

.tc-footer a:hover,
.footer a:hover {
  color: var(--tc-primary-hover);
}

@media (max-width: 980px) {
  .tc-grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tc-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tc-container,
  .container,
  .tc-topbar-inner,
  .topbar-inner {
    width: min(100% - 24px, var(--tc-container));
  }

  .tc-topbar-inner,
  .topbar-inner {
    min-height: 68px;
  }

  .tc-section,
  .section {
    padding-block: 48px;
  }

  .tc-grid,
  .grid,
  .contact-cards,
  .tc-form-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tc-card,
  .card,
  .panel {
    padding: 22px;
  }

  .tc-tile,
  .tile {
    min-height: 122px;
  }

  .tc-logo,
  .logo {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    display: none;
  }

  .tc-title,
  .title {
    font-size: clamp(38px, 13vw, 54px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
