* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font: 400 1rem var(--body-font);
  color: var(--text-color);
  background: var(--body-color);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--base-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--base-color-alt);
}

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

:root {
  --header-height: 4.5rem;
  --hue: 330;
  --base-color: hsl(var(--hue) 36% 57%);
  --base-color-second: hsl(var(--hue) 65% 95%);
  --base-color-alt: hsl(var(--hue) 57% 53%);
  --title-color: hsl(var(--hue) 41% 10%);
  --text-color: hsl(0 0% 38%);
  --text-color-light: hsl(0 0% 98%);
  --body-color: hsl(0 0% 98%);
  --surface-color: hsl(0 0% 100%);
  --border-color: hsl(var(--hue) 18% 88%);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --title-font-size: 1.875rem;
  --subtitle-font-size: 1rem;
  --title-font: 'Poppins', sans-serif;
  --title-fontkinkee: 'KINKEE', kinkee;
  --body-font: 'DM Sans', sans-serif;
}

body.dark {
  --title-color: hsl(var(--hue) 30% 92%);
  --text-color: hsl(0 0% 78%);
  --body-color: hsl(240 8% 11%);
  --surface-color: hsl(240 8% 16%);
  --border-color: hsl(240 6% 24%);
  --shadow-color: rgba(0, 0, 0, 0.35);
}

main {
  padding-top: var(--header-height);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.title {
  font: 700 var(--title-font-size) var(--title-font);
  color: var(--title-color);
  line-height: 1.2;
  -webkit-font-smoothing: auto;
  overflow-wrap: anywhere;
}

.button {
  background-color: var(--base-color);
  color: var(--text-color-light);
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1.5rem;
  border-radius: 0.5rem;
  font: 500 1rem var(--body-font);
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: var(--base-color-alt);
  color: var(--text-color-light);
}

.order-button {
  min-height: 3.75rem;
  padding-inline: 2rem;
  font-size: 1.0625rem;
}

.divider-1,
.divider-2 {
  height: 1px;
  background: hsl(var(--hue) 20% 88%);
}

#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-color);
}

#header.scroll {
  box-shadow: 0 4px 18px var(--shadow-color);
}

nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

nav > * {
  min-width: 0;
}

.logokinkee {
  font: 700 clamp(1.9rem, 7vw, 2.99rem) var(--title-fontkinkee);
  color: var(--title-color);
  line-height: 1;
}

.logokinkee span {
  color: var(--base-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle,
.toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--surface-color);
  color: var(--title-color);
}

.theme-toggle .material-icons {
  font-size: 1.25rem;
}

.toggle .material-icons {
  font-size: 1.35rem;
}

nav .menu {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  padding: calc(var(--header-height) + 1rem) 1rem 1rem;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.dark nav .menu {
  background: rgba(0, 0, 0, 0.55);
}

nav .menu ul {
  display: grid;
  gap: 0.5rem;
  width: min(23rem, 100%);
  margin-left: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 30px var(--shadow-color);
}

nav .menu a {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  color: var(--title-color);
  background: var(--surface-color);
}

nav .menu a:hover,
nav .menu a.active {
  color: var(--base-color);
  background: var(--base-color-second);
}

nav .toggle-close {
  display: none;
}

nav.show .menu {
  opacity: 1;
  visibility: visible;
}

nav.show .toggle-close {
  display: inline-flex;
}

nav.show .toggle-menu {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.home-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.home-grid > *,
.about-grid > *,
.contact-grid > *,
.catalog-grid > * {
  min-width: 0;
}

.home-grid .text {
  order: 1;
}

.home-grid .image-right {
  order: 2;
}

#home .text,
#about .text,
#contact .text {
  text-align: center;
}

#home .text p,
#contact .text p {
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

#home .title {
  font-size: clamp(2.2rem, 8.5vw, 3.25rem);
  margin-bottom: 1rem;
}

#home .image-right,
#about .image {
  display: flex;
  justify-content: center;
}

#home .image-right img {
  width: min(20rem, 78vw);
}

#about .image img {
  width: min(28rem, 100%);
  border-radius: 1rem;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.details-list,
.card-details {
  display: grid;
  gap: 0.5rem;
}

.details-list {
  margin-bottom: 1rem;
}

.details-list li,
.card-details li {
  position: relative;
  padding-left: 1rem;
}

.details-list li::before,
.card-details li::before {
  content: '-';
  position: absolute;
  left: 0;
  top: 0;
}

.price-line {
  margin-block: 1rem;
  font-weight: 700;
  color: var(--title-color);
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header .title {
  margin-bottom: 1rem;
}

.section-header strong {
  color: var(--base-color);
}

.catalog-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-color);
}

.card img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: 1.25rem;
}

.card .title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

#contact .button i,
#contact ul li i {
  font-size: 1.25rem;
}

#contact .links {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px var(--shadow-color);
}

#contact ul.grid {
  gap: 1rem;
}

#contact ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--title-color);
}

footer {
  background: var(--base-color);
}

footer.section {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

footer .brand {
  text-align: center;
}

footer .brand .logokinkee,
footer .brand p,
footer .social a {
  color: var(--text-color-light);
}

footer .brand p + p {
  margin-top: 0.5rem;
}

footer .social {
  justify-content: center;
}

footer .social a {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--base-color);
  color: var(--text-color-light);
  box-shadow: 0 10px 24px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 30rem) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  #header .container {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0.75rem 0;
  }

  nav {
    position: relative;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .logokinkee {
    font-size: 1.65rem;
  }

  .nav-actions {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    gap: 0.375rem;
  }

  .theme-toggle,
  .toggle {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.625rem;
  }

  .theme-toggle {
    position: static;
    box-shadow: none;
  }

  #home .title {
    font-size: 2rem;
  }

  #home .text p {
    font-size: 1rem;
  }

  .order-button {
    width: 100%;
  }
}

@media (min-width: 48rem) {
  :root {
    --title-font-size: 2.25rem;
    --subtitle-font-size: 1.125rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .home-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  #home .image-right {
    order: 2;
  }

  #home .text,
  #about .text,
  #contact .text {
    text-align: left;
  }

  .section-header {
    max-width: 38rem;
    margin-inline: auto;
  }

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

  #contact ul li {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  footer .brand {
    text-align: left;
  }
}

@media (min-width: 70rem) {
  .container {
    width: min(1120px, calc(100% - 3rem));
  }

  nav .menu {
    opacity: 1;
    visibility: visible;
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
  }

  nav .menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: auto;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  nav .menu a {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font: 500 1rem var(--body-font);
    position: relative;
  }

  nav .menu a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--base-color);
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    transition: width 0.2s ease;
  }

  nav .menu a:hover,
  nav .menu a.active {
    background: transparent;
  }

  nav .menu a:hover::after,
  nav .menu a.active::after {
    width: 100%;
  }

  .toggle {
    display: none;
  }

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

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

  * {
    transition: none !important;
  }
}
