/* ---------- GLOBAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #fcf7f2;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html:has(body.dark-mode) {
  background: #1a1412;
}

body {
  background-color: #fcf7f2;
  color: #4a3f3a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.dark-mode {
  background: #1a1412;
  color: #f0e6e0;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.6rem;
  color: #3f322b;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #3f322b, #b17a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #3f322b;
  max-width: 700px;
  margin: 0 auto 15px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fcf7f2;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s;
}
#preloader.hide {
  opacity: 0;
  pointer-events: none;
}
.loader {
  width: 50px; height: 50px;
  border: 4px solid #efe3db;
  border-top: 4px solid #b17a6e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ---------- PROGRESS BAR ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #b17a6e, #dac2b6);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s;
}

/* ---------- STICKY HEADER ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(252, 247, 242, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 24px 0;
  z-index: 999;
  border-bottom: 1px solid rgba(210, 180, 160, 0.2);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo-name {
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif;
  white-space: nowrap;
  background: linear-gradient(135deg, #3f322b, #b17a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-name span {
  background: linear-gradient(135deg, #3f322b, #b17a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 300;
}
.logo-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: #8a7a72;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

body.dark-mode .logo-name,
body.dark-mode .logo-name span {
  background: linear-gradient(135deg, #f0e6e0, #dac2b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-mode .logo-sub { color: #a8968e; }

/* ---------- BURGER MENU ---------- */
.burger-menu {
  display: none;
  background: none;
  border: none;
  color: #4a3f3a;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}
.burger-menu:hover { color: #b17a6e; }

/* ===== NAV MENU ===== */
.nav-menu {
  display: flex;
  gap: 38px;
  font-weight: 500;
  font-size: 1.15rem;
}
.nav-menu a {
  color: #4a3f3a;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  cursor: pointer;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #c89b8b;
  transition: width 0.25s;
}
.nav-menu a:hover { color: #b17a6e; }
.nav-menu a:hover::after { width: 100%; }

/* ===== HEADER SOCIALS ===== */
.header-socials {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}
.header-socials a,
.header-socials button {
  color: #6b5a52;
  transition: color 0.2s, transform 0.2s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header-socials a:hover,
.header-socials button:hover {
  color: #b17a6e;
  transform: translateY(-2px);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  color: #b17a6e;
  transform: rotate(20deg);
}

.header-socials a[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #dac2b6;
  color: #3f322b;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  font-family: 'Inter', sans-serif;
  z-index: 10;
}
.header-socials a[data-tooltip]:hover:before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ---------- SECTIONS ---------- */
section {
  padding: 100px 0 80px;
}

/* ===== HERO ===== */
#hero {
  padding-top: 180px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #fcf7f2 0%, #f5e6dc 100%);
}
.hero-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.hero-left {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}
.hero-left img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(150, 110, 90, 0.15);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s;
  object-fit: cover;
}
.hero-left img:hover {
  animation-play-state: paused;
  transform: scale(1.02);
}
@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-12px) scale(1.01); }
  100% { transform: translateY(0px) scale(1); }
}
.hero-right { flex: 1 1 400px; }
.hero-title {
  font-size: 2.2rem;
  color: #7da3d9;
  margin-bottom: 24px;
  line-height: 1.15;
  background: none;
  -webkit-text-fill-color: #7da3d9;
  text-align: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-desc {
  font-size: 1.15rem;
  max-width: 520px;
  color: #3f322b;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: #4a6fa5;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 60px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(74, 111, 165, 0.25);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover {
  background: #3d5d8f;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74, 111, 165, 0.35);
}
.btn-small { padding: 10px 24px; font-size: 0.9rem; }
.btn-large { padding: 16px 48px; font-size: 1.1rem; width: 100%; margin-top: 20px; }

body.dark-mode #hero {
  background: linear-gradient(135deg, #1a1412 0%, #2a1f1a 100%);
}
body.dark-mode .hero-title {
  background: none;
  -webkit-text-fill-color: #7da3d9;
  color: #7da3d9;
}
body.dark-mode .hero-desc { color: #d4c8c0; }
body.dark-mode .btn-primary { background: #5a82c2; color: #ffffff; }
body.dark-mode .btn-primary:hover { background: #4a6fa5; }

/* ===== ЧИ Є ІДЕЯ ДЛЯ БІЗНЕСУ? ===== */
#idea {
  background: #f9f1eb;
  padding: 80px 0;
  transition: background 0.3s;
}
.idea-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.idea-title {
  font-size: 2.4rem;
  color: #3f322b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #3f322b, #b17a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.idea-subtitle {
  font-size: 1.3rem;
  color: #4a6fa5;
  font-weight: 500;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.idea-block .btn-primary { margin-bottom: 40px; }
.idea-desc {
  font-size: 1.05rem;
  color: #3f322b;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}
.idea-list-title {
  font-size: 1.2rem;
  color: #3f322b;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.idea-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.idea-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: #3f322b;
  line-height: 1.5;
}
.idea-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #4a6fa5;
  font-weight: 600;
}
body.dark-mode #idea { background: #1f1815; }
body.dark-mode .idea-title {
  background: linear-gradient(135deg, #f0e6e0, #dac2b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-mode .idea-subtitle { color: #7da3d9; }
body.dark-mode .idea-desc { color: #d4c8c0; }
body.dark-mode .idea-list-title { color: #f0e6e0; }
body.dark-mode .idea-list li { color: #d4c8c0; }
body.dark-mode .idea-list li::before { color: #7da3d9; }

/* ---------- ABOUT ---------- */
#about {
  background: #fcf7f2;
  transition: background 0.3s;
}
.about-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 40px;
}
.about-slider {
  flex: 1 1 380px;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(150, 110, 90, 0.1);
  background: #efe3db;
}
.slides {
  display: flex;
  transition: transform 0.5s ease;
}
.slides img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  flex-shrink: 0;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 245, 240, 0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #4a3f3a;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: #f5e4db;
  transform: translateY(-50%) scale(1.05);
}
.prev { left: 12px; }
.next { right: 12px; }

.about-features {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fffbf9;
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(150, 110, 90, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(150, 110, 90, 0.12);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dac2b6, #b17a6e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.1rem;
  color: #3f322b;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.9rem;
  color: #3f322b;
  line-height: 1.5;
}

body.dark-mode #about { background: #1a1412; }
body.dark-mode .feature-card { background: #2a221f; }
body.dark-mode .feature-card h3 { color: #f0e6e0; }
body.dark-mode .feature-card p { color: #d4c8c0; }

/* ===== "Ваша ідея — моя експертиза" ===== */
.approach-block {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #fffbf9 0%, #f0e8ff 100%);
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(74, 111, 165, 0.1);
  border: 2px solid #7da3d9;
}
.approach-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #3f322b, #b17a6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-mode .approach-block {
  background: linear-gradient(135deg, #2a221f 0%, #1e2a4a 100%);
  border-color: #5a82c2;
}
body.dark-mode .approach-title {
  background: linear-gradient(135deg, #f0e6e0, #dac2b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- WORKS ---------- */
#works {
  background: #f9f1eb;
  transition: background 0.3s;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.filter-btn {
  padding: 8px 24px;
  border-radius: 40px;
  border: 2px solid #dac2b6;
  background: transparent;
  color: #4a3f3a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.filter-btn:hover { background: #dac2b6; color: #2d221d; }
.filter-btn.active { background: #4a6fa5; border-color: #4a6fa5; color: #fff; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.work-card {
  background: #fffbf9;
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 6px 20px rgba(150, 110, 90, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 25px 50px rgba(150, 110, 90, 0.2);
}
.work-card h3 { font-size: 1.4rem; color: #3f322b; margin-bottom: 10px; }
.work-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a6fa5;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #efe3db;
}
.work-intro {
  font-size: 0.9rem;
  color: #3f322b;
  margin-bottom: 14px;
  line-height: 1.5;
  font-style: italic;
}
.work-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a6fa5;
  margin-bottom: 8px;
  margin-top: 4px;
}
.work-list {
  list-style: none;
  margin-bottom: 20px;
  flex-grow: 1;
}
.work-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #3f322b;
  line-height: 1.5;
}
.work-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #4a6fa5;
  font-weight: 700;
}
.work-result {
  background: #f3e7e0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #3f322b;
  margin-bottom: 20px;
}
.work-result strong { color: #4a6fa5; }

.work-card.featured {
  position: relative;
  background: linear-gradient(135deg, #fffbf9 0%, #f0e8ff 100%);
  border: 2px solid #7da3d9;
  box-shadow: 0 10px 30px rgba(74, 111, 165, 0.15);
  transform: scale(1.02);
}
.work-card.featured:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(74, 111, 165, 0.3);
}
.badge-featured {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #4a6fa5, #7da3d9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

body.dark-mode #works { background: #1f1815; }
body.dark-mode .work-card { background: #2a221f; }
body.dark-mode .work-card h3 { color: #f0e6e0; }
body.dark-mode .work-price { color: #7da3d9; border-bottom-color: #3a2a24; }
body.dark-mode .work-intro { color: #d4c8c0; }
body.dark-mode .work-label { color: #7da3d9; }
body.dark-mode .work-list li { color: #d4c8c0; }
body.dark-mode .work-list li::before { color: #7da3d9; }
body.dark-mode .work-result { background: #3a2a24; color: #f0e6e0; }
body.dark-mode .work-result strong { color: #7da3d9; }
body.dark-mode .filter-btn { color: #d4c8c0; border-color: #3a2a24; }
body.dark-mode .filter-btn:hover { background: #3a2a24; }
body.dark-mode .filter-btn.active { background: #5a82c2; border-color: #5a82c2; color: #fff; }
body.dark-mode .work-card.featured {
  background: linear-gradient(135deg, #2a221f 0%, #1e2a4a 100%);
  border-color: #5a82c2;
}
body.dark-mode .badge-featured {
  background: linear-gradient(135deg, #5a82c2, #7da3d9);
}

/* ---------- FAQ ---------- */
#faq {
  background: #fcf7f2;
  transition: background 0.3s;
}
.faq-list { max-width: 900px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid #e8dbd3; padding: 18px 0; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3f322b;
  padding: 5px 0;
  transition: color 0.3s;
}
.faq-question:hover { color: #4a6fa5; }
.faq-icon { transition: transform 0.3s; color: #b17a6e; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  color: #3f322b;
}
.faq-item.open .faq-answer { max-height: 1500px; padding-top: 14px; }
.faq-answer ul, .faq-answer ol { padding-left: 22px; margin: 10px 0; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer a { color: #4a6fa5; text-decoration: underline; }

body.dark-mode #faq { background: #1a1412; }
body.dark-mode .faq-question { color: #f0e6e0; }
body.dark-mode .faq-question:hover { color: #7da3d9; }
body.dark-mode .faq-answer { color: #d4c8c0; }
body.dark-mode .faq-item { border-bottom-color: #3a2a24; }

/* ---------- ANKETA ---------- */
#anketa {
  background: #f9f1eb;
  transition: background 0.3s;
}
.anketa-form { max-width: 900px; margin: 40px auto 0; }
.anketa-block {
  background: #fffbf9;
  border-radius: 24px;
  padding: 30px 34px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(150, 110, 90, 0.06);
}
.anketa-block h3 {
  font-size: 1.15rem;
  color: #3f322b;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.anketa-block .hint {
  font-size: 0.85rem;
  color: #8a7a72;
  margin-bottom: 12px;
  font-style: italic;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.anketa-form input[type="text"],
.anketa-form input[type="tel"],
.anketa-form input[type="email"],
.anketa-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e8dbd3;
  border-radius: 40px;
  font-size: 0.95rem;
  background: #fcf7f2;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  color: #4a3f3a;
}
.anketa-form input:focus,
.anketa-form textarea:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}
.anketa-form textarea { border-radius: 20px; resize: vertical; margin-bottom: 0; }
.anketa-form input.error,
.anketa-form textarea.error,
.anketa-form .radio-group.error,
.anketa-form .checkbox-group.error {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.1);
}
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}
.radio-group label, .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #3f322b;
  padding: 8px 14px;
  border-radius: 12px;
  transition: background 0.2s;
  line-height: 1.4;
}
.radio-group label:hover, .checkbox-group label:hover { background: #f5e6dc; }
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #4a6fa5;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== "Інше:" поле ===== */
.other-input {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid #e8dbd3;
  border-radius: 30px;
  font-size: 0.9rem;
  background: #fcf7f2;
  font-family: 'Inter', sans-serif;
  color: #4a3f3a;
  transition: border 0.2s, box-shadow 0.2s;
  margin-left: 28px;
  margin-top: -4px;
  margin-bottom: 4px;
  max-width: calc(100% - 28px);
}
.other-input:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}
body.dark-mode .other-input {
  background: #1f1815;
  border-color: #3a2a24;
  color: #f0e6e0;
}

.sub-question {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 500;
  color: #3f322b;
  font-size: 0.95rem;
}
.anketa-disclaimer {
  font-size: 0.85rem;
  color: #8a7a72;
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  line-height: 1.5;
}

body.dark-mode #anketa { background: #1a1412; }
body.dark-mode .anketa-block { background: #2a221f; }
body.dark-mode .anketa-block h3 { color: #f0e6e0; }
body.dark-mode .anketa-form input,
body.dark-mode .anketa-form textarea {
  background: #1f1815;
  border-color: #3a2a24;
  color: #f0e6e0;
}
body.dark-mode .radio-group label,
body.dark-mode .checkbox-group label { color: #d4c8c0; }
body.dark-mode .radio-group label:hover,
body.dark-mode .checkbox-group label:hover { background: #3a2a24; }
body.dark-mode .sub-question { color: #f0e6e0; }
body.dark-mode .anketa-disclaimer { color: #8a7a72; }

/* ---------- CONTACTS ---------- */
#contacts {
  background: #f9f1eb;
  border-top: 1px solid #efe3db;
  transition: background 0.3s;
}
.contacts-info { max-width: 500px; margin: 0 auto; text-align: center; }
.contacts-info h2 { margin-bottom: 30px; }
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.contact-item svg { color: #4a6fa5; flex-shrink: 0; }
.contact-item a {
  color: #3f322b;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item a:hover { color: #4a6fa5; }

body.dark-mode #contacts { background: #1f1815; }
body.dark-mode .contact-item a { color: #d4c8c0; }
body.dark-mode .contact-item a:hover { color: #7da3d9; }
body.dark-mode .contact-item svg { color: #7da3d9; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #4a6fa5;
  color: #ffffff;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #3d5d8f; transform: translateY(-3px); }

/* ---------- DARK MODE (загальне) ---------- */
body.dark-mode #preloader { background: #1a1412; }
body.dark-mode header {
  background: rgba(26, 20, 18, 0.95);
  border-bottom-color: #3a2a24;
}
body.dark-mode .nav-menu a { color: #f0e6e0; }
body.dark-mode .nav-menu a:hover { color: #dac2b6; }
body.dark-mode .header-socials a,
body.dark-mode .header-socials button { color: #f0e6e0; }
body.dark-mode .header-socials a:hover,
body.dark-mode .header-socials button:hover { color: #dac2b6; }
body.dark-mode .slider-btn {
  background: rgba(26, 20, 18, 0.8);
  color: #f0e6e0;
}
body.dark-mode .slider-btn:hover { background: rgba(42, 34, 31, 0.9); }
body.dark-mode h2 {
  background: linear-gradient(135deg, #f0e6e0, #dac2b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-mode .section-subtitle { color: #d4c8c0; }
body.dark-mode .burger-menu { color: #f0e6e0; }
body.dark-mode .burger-menu:hover { color: #dac2b6; }

/* ---------- ПІДТРИМКА <picture> ---------- */
.hero-left picture,
.slides picture {
  display: contents;
}
.hero-left picture img,
.slides picture img {
  display: block;
}

/* ---------- ПОКРАЩЕННЯ ШВИДКОСТІ ---------- */
img {
  content-visibility: auto;
}

/* ---------- AOS ---------- */
[data-aos] {
  pointer-events: auto;
}

/* ---------- STICKY CTA (тільки мобільні) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #4a6fa5;
  color: #fff;
  padding: 16px 24px;
  border-radius: 60px;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(74, 111, 165, 0.4);
  z-index: 998;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sticky-cta:active { transform: scale(0.97); }
body.dark-mode .sticky-cta {
  background: #5a82c2;
  box-shadow: 0 8px 30px rgba(90, 130, 194, 0.4);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 992px) {
  .about-features { grid-template-columns: 1fr; }
  .nav-menu { gap: 24px; font-size: 1.05rem; }
  .logo-name { font-size: 1.7rem; }
  .logo-sub { font-size: 1rem; }
  .header-socials { gap: 16px; }
}

@media (max-width: 768px) {
  h2 { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }

  header { padding: 16px 0; }

  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .burger-menu { display: block; order: 3; }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0 0;
    gap: 16px;
    order: 4;
    font-size: 1.1rem;
  }
  .nav-menu.open { display: flex; }

  .header-socials {
    order: 2;
    margin-left: auto;
    gap: 14px;
  }

  .about-slider { flex: 1 1 100%; }
  .slides img { height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .anketa-block { padding: 24px 20px; }
  .btn-large { padding: 14px 24px; font-size: 1rem; }
  .work-card.featured { transform: scale(1); }

  .logo-name { font-size: 1.4rem; }
  .logo-sub { font-size: 0.85rem; letter-spacing: 1.5px; margin-top: 4px; }

  #hero { padding-top: 120px; padding-bottom: 40px; }

  .sticky-cta { display: flex; }
  .back-to-top { bottom: 100px; }
  body { padding-bottom: 80px; }

  /* Hero — фото менше, текст одразу */
  .hero-grid { flex-direction: column; gap: 24px; }
  .hero-left { flex: 0 0 auto; max-width: 280px; margin: 0 auto; }
  .hero-left img { max-width: 280px; animation: none; }
  .hero-right { flex: 1 1 auto; text-align: center; }
  .hero-title { font-size: 1.4rem; letter-spacing: 0.3px; }
  .hero-desc {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-right .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Ідея */
  .idea-title { font-size: 1.7rem; }
  .idea-subtitle { font-size: 1rem; }
  .idea-list { grid-template-columns: 1fr; }

  /* Підхід */
  .approach-block { padding: 30px 20px; margin-top: 40px; }
  .approach-title { font-size: 1.4rem; }

  /* Інше поле — на всю ширину */
  .other-input {
    margin-left: 0;
    max-width: 100%;
  }
}