:root {
  color-scheme: light;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  --color-bg: #f8f8f8;
  --color-surface: #ffffff;
  --color-accent: #1f6c63;
  --color-accent-strong: #0f3f39;
  --color-muted: #74767a;
  --color-text: #25272c;
  --color-border: rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --layout-max-width: 1280px;
  --timing: 200ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  min-width: 320px;
  overflow-x: hidden;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.site-header__top {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  font-size: 14px;
}

.site-header__main {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
}

.site-header__logo-mark {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.site-nav {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav__item {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--timing);
}

.site-nav__item:hover,
.site-nav__item:focus-visible {
  background: rgba(31, 108, 99, 0.1);
}

.site-search {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px;
  background: var(--color-surface);
  flex: 1;
  min-width: 0;
}

.site-search input {
  border: none;
  background: transparent;
  padding: 6px 12px;
  min-width: 180px;
}

.site-search input:focus {
  outline: none;
}

.site-search button {
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
}

.site-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-actions__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  transition: background var(--timing);
}

.site-actions__btn:hover,
.site-actions__btn:focus-visible {
  background: rgba(31, 108, 99, 0.1);
}

main {
  flex: 1;
}

.hero {
  max-width: var(--layout-max-width);
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
}

.hero__media {
  display: grid;
  gap: 24px;
}

.hero__model {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

model-viewer {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f4f6f5 0%, #ffffff 100%);
}

.hero__model-poster {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--color-muted);
}

.hero__model-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.hero__model-actions button {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(31, 108, 99, 0.12);
  color: var(--color-accent-strong);
}

.hero__gallery {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
}

.hero__thumb {
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: border var(--timing);
}

.hero__thumb.is-active,
.hero__thumb:hover,
.hero__thumb:focus-visible {
  border-color: var(--color-accent);
}

.hero__thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
}

.hero__info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero__collection {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--color-muted);
}

.hero__title {
  font-size: clamp(32px, 4vw, 40px);
  margin: 0;
}

.hero__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.hero__badge {
  background: rgba(31, 108, 99, 0.12);
  color: var(--color-accent-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.hero__pricing {
  background: var(--color-surface);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.hero__price-main {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.hero__price {
  font-size: 32px;
  font-weight: 600;
}

.hero__bonus {
  color: var(--color-accent-strong);
  font-weight: 500;
}

.hero__price-additional {
  color: var(--color-muted);
  font-size: 14px;
  display: grid;
}

.hero__options fieldset {
  margin: 0;
  border: 1px solid var(--color-border);
  padding: 16px;
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
}

.hero__options legend {
  font-weight: 600;
  padding: 0 6px;
}

.hero__options label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.color-palette {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-chip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--chip-color, #ccc);
  transition: transform var(--timing), border var(--timing);
}

.color-chip.is-active {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.color-palette__hint {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

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

.btn {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: transform var(--timing), box-shadow var(--timing);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-strong);
}

.btn--ghost {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.btn--secondary {
  background: rgba(31, 108, 99, 0.12);
  color: var(--color-accent-strong);
}

.hero__status {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

.hero__links {
  display: flex;
  gap: 16px;
  font-weight: 500;
  flex-wrap: wrap;
}

.hero__share {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__share button {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 14px;
}

.hero__share-toast {
  color: var(--color-accent-strong);
}

.section {
  max-width: var(--layout-max-width);
  margin: 0 auto 56px;
  padding: 0 24px;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.section__header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.section__controls {
  display: inline-flex;
  gap: 8px;
}

.section__controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  overflow: hidden;
}

.media-card,
.idea-card,
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  transition: transform var(--timing), box-shadow var(--timing);
  min-height: 100%;
}

.media-card:hover,
.idea-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.media-card h3,
.idea-card h3,
.product-card h3 {
  margin: 0;
}

.idea-card > div,
.product-card__body {
  display: grid;
  gap: 8px;
}

.product-card__price {
  font-size: 18px;
  font-weight: 600;
}

.product-card__bonus {
  color: var(--color-muted);
  font-size: 14px;
}

.description__content {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.description__content ul {
  margin: 0;
  padding-left: 20px;
}

.description__toggle {
  justify-self: start;
}

.link {
  color: var(--color-accent-strong);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(31, 108, 99, 0.12);
}

.link:hover,
.link:focus-visible {
  border-color: var(--color-accent);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.specs__grid div {
  display: grid;
  gap: 4px;
}

.specs__grid dt {
  font-weight: 600;
}

.specs__grid dd {
  margin: 0;
  color: var(--color-muted);
}

.comparison__table {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.comparison__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(37, 39, 44, 0.06);
  font-size: 15px;
}

.comparison__row:last-child {
  border-bottom: none;
}

.comparison__row--head {
  background: rgba(31, 108, 99, 0.08);
  font-weight: 600;
}

.comparison__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(31, 108, 99, 0.12);
  color: var(--color-accent-strong);
  margin-left: 8px;
}

.comparison__row div[role="cell"]::before {
  content: attr(data-label);
  font-weight: 600;
  display: none;
  margin-bottom: 4px;
  color: var(--color-muted);
}

.comparison__cta {
  justify-content: center;
}

.site-footer {
  background: #181a1f;
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 24px;
}

.site-footer__cols {
  max-width: var(--layout-max-width);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.site-footer h3 {
  margin-top: 0;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.site-footer__socials {
  display: grid;
  gap: 6px;
}

.site-footer__notice {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__bottom {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(380px, calc(100% - 48px));
  background: var(--color-surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.cookie-banner--hidden {
  display: none !important;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
}

.modal {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.modal__content {
  background: var(--color-surface);
  padding: 28px;
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
  min-width: min(480px, 90vw);
}

.modal__content label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.modal__content input,
.modal__content textarea {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font: inherit;
}

.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__media {
    order: 2;
  }

  .hero__info {
    order: 1;
  }

  .hero__cta {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header__main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start;
  }

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

  .site-actions {
    justify-content: flex-start;
  }

  .hero {
    margin: 32px auto;
    gap: 24px;
    padding: 0 16px;
  }

  .section {
    margin-bottom: 40px;
    padding: 0 16px;
  }

  .comparison__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .comparison__row--head {
    display: none;
  }

  .comparison__row div[role="cell"]::before {
    display: block;
  }
}

@media (max-width: 720px) {
  .hero__model {
    padding: 16px;
  }

  model-viewer {
    height: 320px;
  }

  .hero__gallery {
    padding: 16px;
  }

  .hero__options fieldset {
    padding: 12px;
  }

  .hero__cta {
    grid-template-columns: 1fr;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .media-card,
  .idea-card,
  .product-card {
    min-width: 260px;
    scroll-snap-align: start;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .site-header__top {
    font-size: 12px;
  }

  .site-search input {
    min-width: 0;
    width: 100%;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__price {
    font-size: 26px;
  }

  .hero__model-actions {
    justify-content: stretch;
  }

  .hero__model-actions button {
    flex: 1;
  }

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

  .btn {
    padding: 12px 16px;
  }

  .section__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer__cols {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .cookie-banner__actions {
    flex-direction: column;
  }
}
