.tomex-ss,
.tomex-ss * {
  box-sizing: border-box;
}

.tomex-ss {
  --sea: #0e5ab8;
  --sea-dark: #052f65;
  --sea-bg: #edf5ff;
  --air: #f45a0b;
  --air-dark: #9f3212;
  --air-bg: #fff5e9;
  --text: #4d6079;
  --muted: #718299;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1200px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 44px;
  box-shadow: 0 16px 42px rgba(26, 58, 92, 0.14);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tomex-ss__panel {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 560px;
  padding: clamp(28px, 3.5vw, 50px);
  flex-direction: column;
}

.tomex-ss__panel--sea {
  color: var(--sea-dark);
  background:
    radial-gradient(circle at 0 100%, rgba(139, 194, 255, 0.24), transparent 45%),
    linear-gradient(135deg, #f6faff 0%, var(--sea-bg) 100%);
}

.tomex-ss__panel--air {
  color: var(--air-dark);
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 187, 117, 0.22), transparent 45%),
    linear-gradient(225deg, #fffaf5 0%, var(--air-bg) 100%);
}

.tomex-ss__intro {
  min-height: 150px;
}

.tomex-ss__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--sea);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.015em;
}

.tomex-ss__panel--air .tomex-ss__eyebrow {
  color: var(--air);
}

.tomex-ss__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.tomex-ss__title {
  margin: 0 0 10px;
  color: inherit;
  font-size: clamp(28px, 1vw, 42px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tomex-ss__description {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.tomex-ss__media-shell {
  display: flex;
  flex: 1;
  margin-top: 24px;
  padding: 26px;
  flex-direction: column;
  border-radius: 42px 42px 0 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 -3px 18px rgba(38, 70, 105, 0.05);
}

.tomex-ss__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
  border-radius: 22px;
  background: #d9e8f6;
  isolation: isolate;
}

.tomex-ss__media::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 24, 48, 0.22));
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}

.tomex-ss__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 350ms ease;
}

.tomex-ss__button {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  min-height: 42px;
  padding: 10px 14px 10px 18px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(10, 44, 81, 0.1);
  border-radius: 12px;
  color: #193653;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 26, 58, 0.18);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
  transition: color 180ms ease, transform 180ms ease;
}

.tomex-ss__button svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.tomex-ss__media:hover::after,
.tomex-ss__media:focus-visible::after {
  opacity: 1;
}

.tomex-ss__media:hover img,
.tomex-ss__media:focus-visible img {
  transform: scale(1.035);
}

.tomex-ss__media:hover .tomex-ss__button svg,
.tomex-ss__media:focus-visible .tomex-ss__button svg {
  transform: translateX(3px);
}

.tomex-ss__media:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.tomex-ss__benefits {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--text);
  counter-reset: tomex-benefit;
  list-style: none;
}

.tomex-ss__benefits li {
  position: relative;
  padding-left: 25px;
  font-size: 16px;
  line-height: 1.45;
  counter-increment: tomex-benefit;
}

.tomex-ss__benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #8b9aaf;
  content: counter(tomex-benefit) ".";
}

@media (max-width: 980px) {
  .tomex-ss {
    border-radius: 32px;
  }

  .tomex-ss__panel {
    min-height: 500px;
    padding: 30px;
  }

  .tomex-ss__intro {
    min-height: 165px;
  }

  .tomex-ss__media-shell {
    padding: 18px;
    border-radius: 30px 30px 0 0;
  }

  .tomex-ss__benefits li {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .tomex-ss {
    grid-template-columns: 1fr;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    gap: 18px;
  }

  .tomex-ss__panel {
    min-height: 0;
    padding: 26px 20px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(26, 58, 92, 0.12);
  }

  .tomex-ss__intro {
    min-height: 0;
  }

  .tomex-ss__title {
    font-size: clamp(27px, 8vw, 35px);
  }

  .tomex-ss__description {
    font-size: 14px;
  }

  .tomex-ss__media-shell {
    margin: 22px -2px 0;
    padding: 14px 14px 24px;
    border-radius: 26px 26px 0 0;
  }

  .tomex-ss__media {
    border-radius: 18px;
  }

  .tomex-ss__button {
    bottom: 10px;
    min-height: 38px;
    padding: 9px 12px 9px 15px;
    font-size: 13px;
  }

  .tomex-ss__benefits {
    gap: 11px;
    margin-top: 18px;
  }

  .tomex-ss__benefits li {
    padding-left: 22px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tomex-ss__media::after,
  .tomex-ss__media img,
  .tomex-ss__button,
  .tomex-ss__button svg {
    transition: none;
  }
}

