:root {
  --bg: #0d0d10;
  --bg-soft: #16161a;
  --teal: #6bb8ab;
  --teal-dark: #4a9184;
  --gold: #d4b06a;
  --cream: #f3efe6;
  --text-light: #f4f2ec;
  --text-muted: #a9a7a3;
  --border-soft: rgba(255,255,255,0.06);
  --border-med: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.2);
  --dot-inactive: rgba(255,255,255,0.25);
  --header-bg: rgba(13,13,16,0.9);
  --arrow-bg: rgba(13,13,16,0.85);
  --line-color: rgba(255,255,255,0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  color-scheme: dark;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="light"] {
  --bg: #f7f5f0;
  --bg-soft: #ffffff;
  --teal: #4a9184;
  --teal-dark: #3a746a;
  --gold: #b8874a;
  --cream: #ffffff;
  --text-light: #201f1c;
  --text-muted: #6b6863;
  --border-soft: rgba(0,0,0,0.08);
  --border-med: rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.18);
  --dot-inactive: rgba(0,0,0,0.2);
  --header-bg: rgba(13,13,16,0.9);
  --arrow-bg: rgba(255,255,255,0.9);
  --line-color: rgba(0,0,0,0.25);
  color-scheme: light;
}

html[data-theme="light"] .testimonial-card {
  border: 1px solid var(--border-med);
}

html[data-theme="light"] .carousel-arrow {
  color: var(--text-light);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  color: #f4f2ec;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--teal);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-switch-wrapper {
  position: relative;
  width: 56px;
  height: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border-med);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.theme-switch-ball {
  position: absolute;
  top: 50%;
  left: 31px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #1e90ff;
  border-radius: 50%;
  transition: left 0.3s ease;
  z-index: 1;
}

html[data-theme="light"] .theme-switch-ball {
  left: 3px;
}

.theme-icon-sun, .theme-icon-moon {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

html:not([data-theme="light"]) .theme-icon-sun { color: var(--text-muted); }
html:not([data-theme="light"]) .theme-icon-moon { color: #fff; }
html[data-theme="light"] .theme-icon-sun { color: #fff; }
html[data-theme="light"] .theme-icon-moon { color: var(--text-muted); }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: var(--bg-soft);
  border: 1px solid var(--border-med);
  color: var(--text-light);
  border-radius: 999px;
  padding: 8px 34px 8px 16px;
  font-size: 0.85rem;
  width: 170px;
  transition: width 0.25s ease, border-color 0.25s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--teal);
  width: 210px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box #searchClear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: none;
}

.search-box.has-value #searchClear {
  display: block;
}

.btn-order {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #0d0d10;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-order:hover:not(:disabled) {
  background: var(--gold);
  transform: translateY(-1px);
}

.cart-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  display: inline-block;
}

.hero {
  padding: 72px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 380px;
}

.hero-carousel {
  position: relative;
}

.hero-slide-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 1.2s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-arrow {
  z-index: 5;
  opacity: 0;
}

.hero-slide-track:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow.arrow-left {
  left: 16px;
}

.hero-arrow.arrow-right {
  right: 16px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--dot-inactive);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots button.active {
  background: var(--teal);
  transform: scale(1.2);
}

.services {
  padding: 40px 0 96px;
}

.services-carousel {
  position: relative;
  margin-top: 24px;
}

.services-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.services-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--arrow-bg);
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-carousel:hover .carousel-arrow,
.carousel-arrow:focus-visible {
  opacity: 1;
}

.carousel-arrow:hover {
  background: var(--teal);
  color: #0d0d10;
}

.arrow-left {
  left: -8px;
}

.arrow-right {
  right: -8px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex: 0 0 340px;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
  scroll-snap-align: start;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.service-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.service-card.hidden {
  display: none;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  margin-top: 32px;
}

.portfolio {
  padding: 40px 0 100px;
}

.portfolio-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.portfolio-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 160px);
  gap: 16px;
}

.portfolio-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-img:hover img {
  transform: scale(1.05);
}

.p1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.p2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.p5 { grid-column: 2 / 3; grid-row: 2 / 3; }
.p3 { grid-column: 4 / 5; grid-row: 1 / 2; }
.p4 { grid-column: 4 / 5; grid-row: 2 / 3; }

.testimonial-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  background: var(--cream);
  color: #1c1c1c;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.client-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.testimonial-card h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: #4a4a4a;
}

.quote-mark {
  position: absolute;
  bottom: 12px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal-dark);
  opacity: 0.6;
}

.about {
  padding: 40px 0 120px;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 48px;
  align-items: center;
}

.about-text .eyebrow {
  margin-bottom: 12px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  max-width: 360px;
}

.about-path {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 40px 40px 60px 0;
}

.about-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.zigzag-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
}

.circle-item {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--teal);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.circle-item:nth-of-type(3n+2) {
  transform: translateY(-16px);
}

.circle-item:nth-of-type(3n+3) {
  transform: translateY(8px);
}

.circle-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.circle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  background: var(--bg-soft);
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contacts a:hover {
  color: var(--teal);
}

.footer-social {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-social span {
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--teal);
}

.order-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.order-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.order-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.order-form-wrapper {
  background: var(--bg-soft);
  border: 1px solid var(--border-med);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.order-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.order-form-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.order-form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-control {
  background: var(--bg);
  border: 1px solid var(--border-med);
  color: var(--text-light);
  padding: 14px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
}

.hidden-field {
  display: none;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -4px;
  margin-bottom: 6px;
}

.field-hint a {
  color: var(--teal);
  text-decoration: underline;
}

.btn-submit-order {
  justify-content: center;
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 12px;
  border: none;
  cursor: pointer;
}

.btn-submit-order:disabled {
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border-strong);
  transform: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .service-card {
    flex-basis: 240px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 160px);
  }
  .p1 { grid-column: 1/2; grid-row: 1/2; }
  .p2 { grid-column: 2/3; grid-row: 1/2; }
  .p5 { grid-column: 2/3; grid-row: 2/3; }
  .testimonial-card { grid-column: 1/3; grid-row: 3/4; }
  .p3 { grid-column: 1/2; grid-row: 4/5; }
  .p4 { grid-column: 2/3; grid-row: 4/5; }
  .main-nav { display: none; }
  .order-form-wrapper { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .service-card, .service-card img, .theme-switch-ball {
    transition: none;
  }
}

.contact-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contact-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-med);
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon {
  width: 64px;
  height: 64px;
  background: rgba(107, 184, 171, 0.1);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: var(--teal);
  color: #0d0d10;
}

.contact-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-card a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--teal);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .contact-title {
    font-size: 2.2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card:last-child {
    grid-column: auto;
  }
}

.logo-img {
  height: 42px;
  width: auto;
}



.logo-blue {
  color: var(--teal);
}