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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #2b2b2b;
  background: #f7f8fa;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-bottom: 24px;
  color: #1a1a1a;
  font-family: "Droid", "Segoe UI", Arial, sans-serif;
  z-index: 10;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.4);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  z-index: -1;
  transition: background 0.2s;
}

.header--over-hero::before {
  background: rgba(120, 120, 120, 0.4);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 400;
}

.logo__img {
  height: 56px;
  width: auto;
  margin-top: 10px;
}

.logo__text {
  font-family: "Droid", "Segoe UI", Arial, sans-serif;
  letter-spacing: 1px;
  font-weight: 700;
  color: #1ca8e0;
  transition: color 0.2s;
  transform: scaleY(1.15);
  transform-origin: left center;
}

.header--over-hero .logo__text {
  color: #fff;
}

.nav {
  margin-left: auto;
  padding-left: 60px;
}

.nav a {
  color: #1ca8e0;
  text-decoration: none;
  margin-left: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 400;
  transform: scaleY(1.15);
  display: inline-block;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover,
.nav a:active,
.nav a:focus,
.nav a.active {
  color: #0e8bbd;
  background-color: rgba(28, 168, 224, 0.15);
}

.header--over-hero .nav a:hover,
.header--over-hero .nav a:active,
.header--over-hero .nav a:focus,
.header--over-hero .nav a.active {
  background-color: rgba(150, 150, 150, 0.35);
}

.header--over-hero .nav a {
  color: #fff;
}

.header--over-hero .nav a:hover,
.header--over-hero .nav a:active,
.header--over-hero .nav a:focus {
  color: #1ca8e0;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  aspect-ratio: 1920 / 700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.1) 80%, #f7f8fa 100%);
}

.floating-cta {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1ca8e0;
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-weight: bold;
  padding: 26px 42px;
  font-size: 1.2rem;
  border: none;
  border-radius: 999px 0 0 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, padding 0.2s, opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.floating-cta__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.floating-cta:hover {
  background: #0e8bbd;
  padding-right: 32px;
}

.floating-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(20px);
}

.marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #1ca8e0;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: inherit;
  transition: background 0.2s;
}

.marquee:hover {
  background: #0e8bbd;
}

.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 55s linear infinite;
}

.marquee__item {
  flex-shrink: 0;
  padding: 0 80px;
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.btn {
  display: inline-block;
  background: #fff;
  color: #1e3a8a;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Sections (stacked "magazine" panels) */
.section {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.section .container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px 30px;
  will-change: transform, filter, clip-path;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.section .container > * {
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #1e293b;
}

#about { z-index: 1; background: #f7f8fa; }
#catalog { z-index: 2; background: transparent; }
#process {
  z-index: 3;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('https://uglerod-mebel.pages.dev/images/listovvka.jpg') center / cover no-repeat;
}
#gallery { z-index: 4; background: transparent; }
#contacts { z-index: 5; background: #fff; }
#cta-block { z-index: 6; background: transparent; }

#about .container {
  background: #f7f8fa;
}

#cta-block .container {
  background: radial-gradient(ellipse at center, rgba(247, 248, 250, 1) 0%, rgba(247, 248, 250, 1) 35%, rgba(247, 248, 250, 0) 100%);
}

#process .container {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url('https://uglerod-mebel.pages.dev/images/listovvka.jpg') center / cover no-repeat;
  -webkit-mask-image: none;
  mask-image: none;
}

#about h2 {
  font-size: 2.4rem;
  color: #1ca8e0;
}

#gallery .container,
#contacts .container {
  background: #fff;
}

#catalog .container {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 35%, rgba(255, 255, 255, 0) 100%);
}

#gallery .container {
  align-items: stretch;
  padding: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

#gallery .gallery__carousel {
  flex: 1;
  max-width: none;
}

#cta-block p {
  text-align: center;
}

#cta-block .cta-block__row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0 auto;
  transform: scale(1.1);
}

#cta-block .cta-block__box {
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 2px solid #1e293b;
  border-right: 2px dashed #1ca8e0;
  border-radius: 12px 0 0 12px;
  padding: 30px;
}

#cta-block .cta-block__promo {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed #1ca8e0;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 30px;
  background: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  color: #1ca8e0;
}

#cta-block .cta-block__promo-line {
  margin: 0;
}

#cta-block .cta-block__promo-line--left {
  text-align: left;
}

#cta-block .cta-block__promo-line--right {
  text-align: right;
}

#cta-block .callback-form {
  text-align: center;
}

/* About */
.about p {
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
  color: #555;
}

.about__features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}

.feature h3 {
  font-size: 1.8rem;
  color: #1ca8e0;
}

/* Contacts */
#contacts .container {
  overflow-y: auto;
}

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

.contact-item {
  background: #f7f8fa;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.contact-item:hover,
.contact-item.is-open {
  border-color: #1ca8e0;
}

.contact-item__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 24px 20px;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: #1e293b;
}

.contact-item__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-item__phone {
  margin-left: auto;
  color: #1ca8e0;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-item__arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #1ca8e0;
  border-bottom: 2px solid #1ca8e0;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.contact-item.is-open .contact-item__arrow {
  transform: rotate(-135deg);
}

.contact-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.contact-item__inner {
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-item__details {
  flex: 1 1 220px;
  color: #555;
}

.contact-item__details p {
  margin-bottom: 8px;
}

.contact-item__details a {
  color: #1ca8e0;
  text-decoration: none;
}

.contact-item__map {
  flex: 1 1 280px;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.contact-item__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}


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

.catalog-card {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.catalog-card h3 {
  margin-bottom: 10px;
  color: #1e293b;
}

.catalog-card p {
  color: #555;
  font-size: 0.95rem;
}

/* Process */
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.process-step {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.process-step__number {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 50%;
  background: #1ca8e0;
  color: #fff;
  font-weight: bold;
  margin: 0 auto 12px;
}

.process-step h3 {
  margin-bottom: 8px;
  color: #fff;
}

.process-step p {
  color: #e2e8f0;
  font-size: 0.95rem;
}

#process h2 {
  color: #fff;
}

/* Gallery */
.gallery__carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery__carousel:active {
  cursor: grabbing;
}

.gallery__carousel::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.gallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.gallery__dot {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
  transition: width 0.2s, background-color 0.2s;
}

.gallery__dot.is-active {
  width: 40px;
  background: #1ca8e0;
}

/* Feedback modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 740px;
}

.modal__row {
  display: flex;
  align-items: stretch;
}

.modal__form-box {
  flex: 1 1 420px;
  background: #fff;
  text-align: center;
  border: 2px solid #1e293b;
  border-right: 2px dashed #1ca8e0;
  border-radius: 10px 0 0 10px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.modal__promo {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed #1ca8e0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 30px;
  background: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  color: #1ca8e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.modal__promo-line {
  margin: 0;
}

.modal__promo .modal__promo-line--left {
  text-align: left;
}

.modal__promo .modal__promo-line--right {
  text-align: right;
}

.modal h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #1e293b;
}

.modal__form-box .form-group label {
  color: #1e293b;
}

.modal p {
  text-align: center;
  margin-bottom: 24px;
}

.modal__form-box p {
  color: #1e293b;
}

.modal__promo-line {
  color: #1ca8e0;
}

@media (max-width: 600px) {
  .modal__row {
    flex-direction: column;
  }

  .modal__form-box {
    border-right: 2px solid #1e293b;
    border-bottom: 2px dashed #1ca8e0;
    border-radius: 10px 10px 0 0;
  }

  .modal__promo {
    flex-basis: auto;
    border-left: 2px dashed #1ca8e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
  }
}

.modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1e293b;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.callback-form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
}

.form-group--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #1ca8e0;
}

.callback-form .btn {
  width: 100%;
  background: #1ca8e0;
  color: #fff;
}

.callback-form .btn:hover {
  background: #0e8bbd;
}

.form-message {
  margin-top: 14px;
  font-weight: 600;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

/* Footer */
.footer {
  background: #1e293b;
  color: #cbd5e1;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .header__inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  .nav a {
    margin: 0 10px;
  }

  .hero {
    aspect-ratio: 1242 / 936;
  }

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

@media (max-width: 900px) and (min-width: 601px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile layout */
.nav-toggle {
  display: none;
}

/* Hamburger nav menu - shown on anything narrower than a typical desktop */
@media (max-width: 1400px) {
  .header__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 14px 16px;
    gap: 0;
  }

  .logo__img {
    height: 40px;
    margin-top: 0;
  }

  .logo__text {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1ca8e0;
    border-radius: 2px;
    transition: background 0.2s;
  }

  .header--over-hero .nav-toggle span {
    background: #fff;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    margin: 0;
    padding: 90px 30px 30px;
    background: rgba(247, 248, 250, 0.97);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 20;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav a {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    padding: 10px 14px;
  }

  .nav a:hover,
  .nav a:active,
  .nav a:focus,
  .nav a.active {
    color: #1ca8e0;
    background-color: rgba(28, 168, 224, 0.1);
  }

  .header--over-hero .nav a {
    color: #1e293b;
  }

  .header--over-hero .nav a:hover,
  .header--over-hero .nav a:active,
  .header--over-hero .nav a:focus,
  .header--over-hero .nav a.active {
    color: #1ca8e0;
    background-color: rgba(28, 168, 224, 0.1);
  }
}

@media (max-width: 768px) {
  /* Sections become normal-flow blocks instead of stacked "magazine" panels,
     since the wipe/clip effect doesn't fit content taller than the viewport. */
  .section {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .section .container {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100vh;
    padding: 90px 16px 50px;
    overflow: visible;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    clip-path: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  #about h2 {
    font-size: 1.9rem;
  }

  .about__features {
    gap: 24px;
  }

  #gallery {
    min-height: auto;
  }

  #gallery .container {
    min-height: auto;
    height: 66vh;
    padding: 0;
    margin-top: 90px;
    margin-bottom: 30px;
  }

  #contacts .container {
    overflow-y: visible;
  }

  /* CTA block */
  #cta-block .cta-block__row {
    flex-direction: column;
    transform: none;
  }

  #cta-block .cta-block__box {
    max-width: none;
    border-right: 2px solid #1e293b;
    border-bottom: 2px dashed #1ca8e0;
    border-radius: 12px 12px 0 0;
  }

  #cta-block .cta-block__promo {
    flex-basis: auto;
    border-left: 2px dashed #1ca8e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    font-size: 1.1rem;
  }

  /* Marquee */
  .marquee__item {
    padding: 0 30px;
    font-size: 1rem;
  }

  /* Floating CTA becomes a compact round icon button pinned to the corner,
     rather than following the scroll position (too easy to overlap content
     on tall mobile sections). */
  .floating-cta {
    top: auto !important;
    bottom: 20px;
    right: 16px;
    transform: none;
    padding: 14px;
    border-radius: 50%;
    gap: 0;
  }

  .floating-cta.is-hidden {
    transform: translateX(100px);
  }

  .floating-cta__icon {
    width: 22px;
    height: 22px;
  }

  .floating-cta__text {
    display: none;
  }
}
