:root {
  --font: 'Manrope', Arial, Helvetica, sans-serif;
  --bg: #ffffff;
  --text: #000000;
  --text-soft: #555555;
  --text-muted: #888888;
  --border-subtle: #e5e5e5;
  --border-strong: #111111;
  --accent: #00ADEC;
  --accent-soft: #d0eef9;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(#d8d8d8 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 110px;
}

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

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.2;
  font-family: var(--font);
}

h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 12px;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--text-soft);
}

.btn {
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s
      ease, color 0.1s ease, border-color 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: radial-gradient(circle at top left, #ffffff 0%, #f5f5f5 40%, #ffffff 100%);
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0;
  gap: 24px;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}

.logo-image-wrap {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 220%;
  height: auto;
  object-fit: cover;
  transform: translateY(-2px);
  filter: brightness(0);
}

.logo-text {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 17px;
  margin-left: 48px;
}

.main-nav a {
  opacity: 0.75;
}

.main-nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.btn-telegram {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  height: 44px;
  box-sizing: border-box;
}

.btn-telegram .btn-telegram-icon {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-telegram:hover {
  opacity: 1;
}

.hero-logo-mobile {
  display: none;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 72px;
  display: flex;
  align-items: flex-start;
}

.hero-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-soft);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.hero-scroll-down:hover {
  transform: translateX(-50%) translateY(2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: var(--text);
}

.hero-scroll-icon {
  font-size: 20px;
  line-height: 1;
}

.hero-section > .container {
  width: 100%;
  padding-top: 32px;
}

.hero-content h1 {
  font-family: var(--font);
  font-weight: 500;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0em;
}

.hero-content h1 .hero-title-brand {
  font-weight: 600;
}

.hero-title-mobile {
  display: none;
}

.hero-title-desktop.typing-cursor::after {
  content: '|';
  animation: typing-blink 0.7s step-end infinite;
}

@keyframes typing-blink {
  50% { opacity: 0; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: center;
}

.hero-content {
  padding-left: 32px;
}

.hero-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-subtitle {
  margin-top: 16px;
  margin-bottom: 24px;
  color: var(--text-soft);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-side-phone {
  display: block;
  width: 100%;
  min-width: 420px;
  max-width: 550px;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 24px;
}

.hero-side-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 20px 20px 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  max-width: 360px;
}

.hero-side .hero-side-card h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #2563eb;
}

.hero-side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.hero-side-card li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.hero-side .hero-side-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #2563eb;
}

.hero-side-card li + li {
  margin-top: 6px;
}

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

.portfolio-grid {
  margin-top: 20px;
}

.card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 20px 18px 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s
      ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  border-color: var(--border-strong);
}

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

.card-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.card-list li + li {
  margin-top: 4px;
}

.card-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.process-step {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 18px 16px 16px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-soft);
  font-size: 14px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.why-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 18px 16px 16px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.why-item p {
  color: var(--text-soft);
  font-size: 14px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
  align-items: flex-start;
}

.contact-form {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 20px 18px 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 14px;
}

.glass-panel {
  backdrop-filter: blur(18px);
}

.constructor-section {
  padding-top: 40px;
  padding-bottom: 64px;
}

.constructor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.constructor-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.constructor-subtitle {
  font-size: 18px;
  margin-bottom: 0;
}

#constructor-options-anchor {
  scroll-margin-top: 100px;
}

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

.constructor-card {
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background-color: #ffffff;
  padding: 12px 12px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease,
    transform 0.08s ease;
}

.constructor-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* Невыбранные карточки затемняем, когда есть хотя бы одна выбранная */
.constructor-products:has(.constructor-card.is-selected) .constructor-card:not(.is-selected) {
  opacity: 0.5;
  filter: saturate(0.7);
}

.constructor-card.is-selected {
  border-color: var(--border-subtle);
  background-color: #ffffff;
}

.constructor-card-title {
  font-size: 15px;
  font-weight: 500;
}

.constructor-card-note {
  font-size: 13px;
  color: var(--text-soft);
}

.constructor-category-desc {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  background: #ffffff;
  border-radius: 10px;
}

.constructor-category-desc strong {
  color: var(--text);
}

.constructor-options {
  display: grid;
  gap: 10px;
}

.constructor-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: flex-start;
  font-size: 14px;
}

.constructor-option input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.constructor-option input[type='checkbox']:hover {
  /* без дополнительного выделения при наведении — оставляем как по умолчанию */
  border-color: var(--border-strong);
  box-shadow: none;
}

.constructor-option input[type='checkbox']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.constructor-option input[type='checkbox']:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}

.constructor-option-main {
  font-weight: 500;
}

.constructor-option-note {
  grid-column: 2 / 3;
  font-size: 13px;
  color: var(--text-soft);
}

.constructor-summary {
  margin-top: 12px;
  border-radius: 18px;
  padding: 16px 18px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

.constructor-summary-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.constructor-summary-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000 !important;
  font-weight: 600 !important;
}

.constructor-summary-value {
  font-size: 18px;
}

.constructor-summary-value-muted {
  font-size: 14px;
  color: var(--text-soft);
}

.constructor-cta {
  flex-shrink: 0;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 420ms ease-out,
    transform 420ms ease-out;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

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

input[type='text'],
input[type='email'],
textarea {
  font-family: var(--font);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: inherit;
  color: inherit;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input[type='text']::placeholder,
input[type='email']::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--border-strong);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-soft);
}

.checkbox-field input[type='checkbox'] {
  margin-top: 3px;
}

.contacts-info {
  font-size: 17px;
  padding: 24px 22px 22px;
}

.contacts-info h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.contacts-info p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 16px;
  font-size: 18px;
}

.contacts-list a {
  font-weight: 500;
}

.contacts-list li + li {
  margin-top: 10px;
}

.contacts-note {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .constructor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 32px;
  }

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

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

  .contacts-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .site-header .container {
    padding-left: 24px;
  }

  .site-header .logo {
    display: inline-flex;
  }

  .site-header .logo-image-wrap {
    width: 36px;
    height: 36px;
  }

  .site-header .logo-text {
    display: none;
  }

  .header-inner {
    padding: 10px 0;
  }

  .main-nav {
    display: none;
  }

  .btn-telegram {
    display: none !important;
  }

  .hero-logo-mobile {
    display: none;
    text-decoration: none;
    color: inherit;
  }

  .hero-logo-mobile-img {
    width: 180px;
    height: auto;
    filter: brightness(0);
  }

  .hero-logo-mobile-text {
    display: none;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 120px);
    grid-template-columns: unset;
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-left: 0;
  }

  .hero-title-desktop {
    display: none;
  }

  .hero-title-mobile {
    display: inline;
  }

  .hero-title-mobile.typing-cursor::after {
    content: '|';
    animation: typing-blink 0.7s step-end infinite;
  }

  @keyframes typing-blink {
    50% { opacity: 0; }
  }

  .hero-content h1 {
    text-align: center;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-actions {
    margin-top: 300px;
    margin-bottom: 0;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    display: none;
  }

  .hero-side {
    display: none;
  }

  .hero-scroll-down {
    display: none;
  }

  .constructor-grid {
    display: flex;
    flex-direction: column;
  }

  .constructor-column:first-child {
    display: contents;
  }

  .constructor-column:first-child .constructor-subtitle {
    order: 1;
  }

  .constructor-column:first-child .constructor-products {
    order: 2;
  }

  .constructor-column:nth-child(2) {
    order: 3;
  }

  .constructor-column:first-child .constructor-summary {
    order: 4;
  }

  .constructor-column:first-child .constructor-category-desc {
    order: 5;
  }

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

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

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

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

  .constructor-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .constructor-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .constructor-option-hide-mobile {
    display: none !important;
  }

  .hero-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Страница кейса /portfolio/{slug} — карусель */
.portfolio-carousel {
  position: relative;
  margin-bottom: 24px;
  max-width: 860px;
  max-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--accent-soft);
}

.portfolio-carousel-inner {
  overflow: hidden;
  width: 100%;
  max-height: 500px;
}

.portfolio-carousel-track {
  display: flex;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.portfolio-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 500px;
}

.portfolio-carousel-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  vertical-align: top;
}

.portfolio-carousel-caption {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
}

.portfolio-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-carousel-prev {
  left: 10px;
}

.portfolio-carousel-next {
  right: 10px;
}

.portfolio-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}

.portfolio-carousel-dot {
  display: block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.portfolio-carousel-dot:hover {
  background: var(--text-muted);
}

.portfolio-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.portfolio-carousel-single .portfolio-carousel-btn,
.portfolio-carousel-single .portfolio-carousel-dots {
  display: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span:last-child {
  color: var(--text-soft);
}

.portfolio-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.portfolio-detail-carousel-col {
  min-width: 0;
}

.portfolio-detail-content-col {
  min-width: 0;
}

@media (min-width: 960px) {
  .portfolio-detail-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .portfolio-detail-carousel-col {
    flex: 0 0 auto;
    width: 500px;
  }

  .portfolio-detail-content-col {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.portfolio-detail-body {
  padding: 18px 20px;
  margin-bottom: 0;
  border-radius: 14px;
}

.portfolio-detail-content-col .portfolio-detail-body {
  margin-bottom: 16px;
}

.portfolio-detail-content-col .portfolio-detail-body + p {
  padding-left: 20px;
}

