:root {
  --ice: #E8EDF0;
  --mist: #E1E4E3;
  --steel: #8FA8AE;
  --deep: #425363;
  --crimson: #A90101;
  --white: #FAFBFC;
  --cream: #F5F7F8;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--deep);
  background: var(--white);
  overflow-x: hidden;
  font-weight: 300
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400
}




/* HERO YARN */
.hero-yarn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%
}

.yarn-ball {
  position: relative;
  animation: yarnFloat 5s ease-in-out infinite
}

.yarn-img {
  width: 100%;
  max-width: 480px;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(66, 40, 40, 0.2)) drop-shadow(0 5px 12px rgba(66, 40, 40, 0.15));
}

.hero-yarn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center
}

.yarn-shadow {
  width: 180px;
  height: 18px;
  background: radial-gradient(ellipse, rgba(80, 30, 30, 0.3) 0%, rgba(80, 30, 30, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: shadowLive 5s ease-in-out infinite;
  margin-top: -10px;
}

@keyframes shadowLive {

  0%,
  100% {
    transform: scaleX(1) scaleY(1);
    opacity: 0.9;
    filter: blur(2px)
  }

  50% {
    transform: scaleX(0.75) scaleY(0.7);
    opacity: 0.4;
    filter: blur(5px)
  }
}

@keyframes yarnFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg)
  }

  50% {
    transform: translateY(-14px) rotate(3deg)
  }
}

.yarn-ball svg {
  filter: drop-shadow(0 15px 30px rgba(66, 83, 99, 0.12))
}

/* Animated threads background */
.hero-threads {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden
}

.hero-threads svg {
  position: absolute;
  width: 100%;
  height: 100%
}

.thread-path {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0;
  animation: threadDraw 3s ease forwards
}

.thread-path:nth-child(1) {
  stroke: var(--mist);
  animation-delay: 0.2s
}

.thread-path:nth-child(2) {
  stroke: var(--steel);
  animation-delay: 0.6s;
  opacity: 0
}

.thread-path:nth-child(3) {
  stroke: rgba(143, 168, 174, 0.4);
  animation-delay: 1s
}

.thread-path:nth-child(4) {
  stroke: var(--mist);
  animation-delay: 1.4s
}

.thread-path:nth-child(5) {
  stroke: rgba(143, 168, 174, 0.3);
  animation-delay: 1.8s
}

/* Wrap threads animation - draw in from left forming ball contour */
.wrap-thread {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200
}

.wrap-1 {
  animation: wrapDraw 3s ease 0.3s forwards
}

.wrap-2 {
  animation: wrapDraw 3.5s ease 0.8s forwards
}

.wrap-3 {
  animation: wrapDraw 4s ease 1.2s forwards
}

@keyframes wrapDraw {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes threadDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 600
  }

  30% {
    opacity: 0.6
  }

  100% {
    opacity: 0.5;
    stroke-dashoffset: 0
  }
}

.thread-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600
}

.hero-threads svg {
  animation: threadSway 8s ease-in-out infinite
}

@keyframes threadSway {

  0%,
  100% {
    transform: translateX(0) translateY(0)
  }

  25% {
    transform: translateX(3px) translateY(1px)
  }

  50% {
    transform: translateX(-2px) translateY(-1px)
  }

  75% {
    transform: translateX(2px) translateY(0.5px)
  }
}

/* Pulse on yarn ball */
.yarn-pulse {
  animation: yarnPulse 3s ease-in-out infinite
}

@keyframes yarnPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.08
  }

  50% {
    transform: scale(1.15);
    opacity: 0
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(143, 168, 174, 0.15);
  transition: box-shadow .3s
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(66, 83, 99, 0.08)
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease;
}

.nav-logo {
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.logo-syu {
  color: #8a0101;
  font-style: italic;
}

.logo-knitting {
  color: #4C5D6B;
  font-weight: 300;
  font-size: 1.5rem;
  font-family: 'Nunito', sans-serif;
  text-transform: lowercase;
  align-self: flex-end;
  margin-bottom: 3px;
}

nav.scrolled .nav-logo {
  transform: scale(0.9);
}

nav.scrolled .nav-logo:hover {
  transform: scale(0.95);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none
}

.nav-links a {
  text-decoration: none;
  color: var(--deep);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: .5px;
  transition: color .3s;
  position: relative
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--crimson);
  transition: width .3s
}

.nav-links a:hover {
  color: var(--crimson)
}

.nav-links a:hover::after {
  width: 100%
}

.nav-cta {
  background: var(--crimson);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
  letter-spacing: .3px
}

.nav-cta:hover {
  background: #8a0101;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(169, 1, 1, 0.3)
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--deep);
  border-radius: 2px;
  transition: all .3s
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(232, 237, 240, 0.20) 0%, rgba(245, 247, 248, 0.20) 50%, rgba(225, 228, 227, 0.20) 100%), url('images/main_fon.png') no-repeat center center;
  background-size: cover;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 30px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  z-index: 3
}

.hero-text {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 45px 50px;
  border-radius: 40px 90px 40px 90px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 15px 35px rgba(66, 83, 99, 0.06), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  max-width: 580px;
  z-index: 5;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--deep);
  margin-bottom: 20px;
  font-weight: 300;
  font-style: italic
}

.hero-text h1 span {
  color: var(--crimson);
  font-weight: 500
}

.hero-text p {
  font-size: 1.12rem;
  color: #4C5D6B;
  /* Slightly darker steel blue for supreme contrast and readability on white cloud */
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 480px
}

.hero-btn {
  display: inline-block;
  background: var(--crimson);
  color: white;
  padding: 16px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .5px;
  transition: all .3s;
  box-shadow: 0 4px 20px rgba(169, 1, 1, 0.25)
}

.hero-btn:hover {
  background: #8a0101;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(169, 1, 1, 0.4)
}

/* SECTIONS */
.section {
  padding: 100px 30px;
  max-width: 1200px;
  margin: 0 auto
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--deep);
  margin-bottom: 16px;
  font-weight: 300;
  font-style: italic
}

.section-subtitle {
  text-align: center;
  color: var(--steel);
  font-size: 1rem;
  margin-bottom: 60px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6
}

/* VALUES */
.values-bg {
  background: var(--cream)
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.value-card {
  background: rgb(255, 255, 255);
  border-radius: 20px;
  padding: 34px 28px;
  position: relative;
  transition: all .4s;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(66, 83, 99, 0.05);
  cursor: pointer;
  z-index: 1
}

.value-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 21px;
  padding: 1.5px;
  background: conic-gradient(from 45deg,
      var(--bc, #497683) var(--bp, 0%),
      transparent var(--bp, 0%)), var(--bg-prev, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(66, 83, 99, 0.1)
}

.value-svg-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--steel);
  transition: color .4s
}

.value-card:hover .value-svg-icon {
  color: var(--crimson)
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--deep);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.value-card h3 .expand-hint {
  font-size: .7rem;
  color: var(--steel);
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  gap: 4px
}

.value-card:hover h3 .expand-hint {
  opacity: 1
}

.value-card p {
  color: var(--steel);
  line-height: 1.7;
  font-size: .93rem
}

.value-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1), opacity .4s, margin .4s;
  opacity: 0;
  margin-top: 0
}

.value-extra.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px
}

.value-extra p {
  font-size: .88rem;
  color: var(--deep);
  line-height: 1.7;
  padding-top: 14px;
  border-top: 1px solid var(--mist)
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.gallery-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  box-shadow: 0 3px 16px rgba(66, 83, 99, 0.05);
  transition: all .4s;
  aspect-ratio: 1;
  cursor: pointer
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(66, 83, 99, 0.1)
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s
}

.gallery-card:hover img {
  transform: scale(1.05)
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  gap: 10px
}

.gallery-placeholder svg {
  opacity: .3
}

.gallery-placeholder span {
  font-size: .82rem;
  opacity: .5
}

.gallery-hidden {
  display: none
}

.load-more-wrap {
  text-align: center;
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center
}

.load-more-btn {
  background: transparent;
  border: 1.5px solid var(--steel);
  color: var(--deep);
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
  letter-spacing: .3px
}

.load-more-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  box-shadow: 0 4px 15px rgba(169, 1, 1, 0.1)
}

.load-more-btn:disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none
}

.collapse-wrap {
  text-align: center;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s, transform .4s;
  pointer-events: none
}

.collapse-wrap.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.collapse-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--steel);
  background: white;
  color: var(--deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  box-shadow: 0 2px 10px rgba(66, 83, 99, 0.06)
}

.collapse-arrow:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(169, 1, 1, 0.1)
}

.focus-left img {
  object-position: 70% 50%;
}

.focus-top img {
  object-position: 50% 65%;
}

/* REVIEWS CAROUSEL */
.reviews-bg {
  background: var(--cream);
  overflow: hidden
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 10px 0 20px
}

.carousel-track::-webkit-scrollbar {
  display: none
}

.review-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(143, 168, 174, 0.1);
  transition: all .3s
}

.review-card:hover {
  box-shadow: 0 8px 30px rgba(66, 83, 99, 0.07)
}

.review-stars {
  color: #f0b429;
  margin-bottom: 12px;
  font-size: .9rem;
  letter-spacing: 2px
}

.review-text {
  color: var(--deep);
  line-height: 1.7;
  font-size: .93rem;
  margin-bottom: 16px;
  font-style: italic
}

.review-screenshot {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--mist)
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-weight: 600;
  font-size: .85rem
}

.review-name {
  font-weight: 500;
  font-size: .9rem
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--mist);
  color: var(--deep);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(66, 83, 99, 0.08)
}

.carousel-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  box-shadow: 0 4px 15px rgba(169, 1, 1, 0.1)
}

.carousel-prev {
  left: 0
}

.carousel-next {
  right: 0
}

/* ORDER */
.order-section {
  background: linear-gradient(135deg, var(--ice) 0%, var(--cream) 100%);
  padding: 100px 30px
}

.order-inner {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: 0 15px 50px rgba(66, 83, 99, 0.08);
  border: 1px solid rgba(143, 168, 174, 0.1)
}

.order-inner .section-title {
  margin-bottom: 8px
}

.order-inner .section-subtitle {
  margin-bottom: 40px
}

.form-group {
  margin-bottom: 24px
}

.form-group label {
  display: block;
  font-size: .88rem;
  color: var(--deep);
  margin-bottom: 8px;
  font-weight: 500
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--mist);
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  color: var(--deep);
  background: var(--cream);
  transition: all .3s;
  outline: none
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  background: white;
  box-shadow: 0 0 0 4px rgba(143, 168, 174, 0.1)
}

.form-group textarea {
  min-height: 120px;
  resize: vertical
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--steel);
  opacity: .6
}

.form-btn {
  width: 100%;
  background: var(--crimson);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  letter-spacing: .5px
}

.form-btn:hover {
  background: #8a0101;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(169, 1, 1, 0.3)
}

.form-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none
}

.form-status {
  text-align: center;
  margin-top: 16px;
  font-size: .9rem;
  min-height: 24px
}

.form-status.success {
  color: #2e7d32
}

.form-status.error {
  color: var(--crimson)
}

/* FOOTER */
footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 40px 30px
}

.footer-logo {
  margin-bottom: 16px
}

.footer-logo img {
  height: 60px;
  width: auto;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: white;
  object-fit: contain;
  opacity: .95;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

footer p {
  font-size: .85rem;
  line-height: 1.8
}

.footer-knitting {
  color: #ffffff;
}

/* ANIM */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s, transform .7s
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0)
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.lightbox.active {
  display: flex
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4)
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background .3s
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2)
}

/* TABLET */
@media(max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
  
  .nav-inner {
    padding: 12px 20px;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .section {
    padding: 80px 24px;
  }
}

/* MOBILE */
@media(max-width:768px) {
  .hero-inner {
    padding-top: 100px;
    gap: 30px;
    grid-template-columns: 1fr
  }

  .hero-text h1 {
    font-size: 2rem
  }

  .hero-yarn {
    max-width: 250px;
    margin: 0 auto
  }

  .hero-text {
    text-align: center;
    padding: 30px 24px;
    border-radius: 30px 60px 30px 60px;
    max-width: 100%;
    margin: 0 auto;
  }

  .nav-links {
    display: none
  }

  .nav-cta.desktop {
    display: none
  }

  .burger {
    display: flex
  }

  .nav-logo img {
    height: 50px;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.97);
    backdrop-filter: blur(16px);
    padding: 20px 30px;
    gap: 18px;
    border-bottom: 1px solid rgba(143, 168, 174, 0.15)
  }

  .values-grid {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .review-card {
    flex: 0 0 280px
  }

  .order-inner {
    padding: 35px 24px
  }

  .section {
    padding: 70px 20px
  }

  .carousel-container {
    padding: 0 40px
  }
}

@media(max-width:480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
  }
}