/* ============================================================
   НОРМАТИВИКА — TABLE OF CONTENTS
   1.  CSS Variables / Root
   2.  Reset & Base
   3.  Typography
   4.  Layout: Container & Sections
   5.  Buttons
   6.  Header & Navigation
   7.  Hero
   8.  Trust Bar
   9.  Features
   10. How It Works (Steps)
   11. Solutions (Tabs)
   12. Testimonials
   13. Gallery
   14. Pricing
   15. FAQ (Accordion)
   16. Contacts (Form)
   17. Footer
   18. Lightbox
   19. Toast
   20. Back to Top
   21. Media Queries
   ============================================================ */

/* ============ 1. ROOT VARIABLES ============ */
:root {
  --navy-900: #0d1f3c;
  --navy-800: #122a4d;
  --navy-700: #1a3a6c;
  --navy-600: #234a82;
  --navy-500: #2d5a9e;
  --gold-600: #b8941f;
  --gold-500: #c9a227;
  --gold-400: #d9b546;
  --gold-300: #e8cd7a;
  --cream: #faf8f3;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f7;
  --gray-200: #e4e8ef;
  --gray-300: #cdd4df;
  --gray-400: #9aa5b5;
  --gray-500: #6b7689;
  --gray-600: #4a5468;
  --gray-700: #2e3849;
  --white: #ffffff;
  --error: #c0392b;
  --success: #1a8a4c;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(13, 31, 60, 0.08);
  --shadow-md: 0 4px 20px rgba(13, 31, 60, 0.1);
  --shadow-lg: 0 12px 40px rgba(13, 31, 60, 0.15);
  --shadow-xl: 0 24px 60px rgba(13, 31, 60, 0.2);

  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ============ 2. RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-600);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============ 3. TYPOGRAPHY ============ */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 0.5rem; }

/* ============ 4. LAYOUT ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
  padding: 4px 14px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 20px;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.08rem;
  color: var(--gray-500);
}

/* ============ 5. BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--navy-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--gray-300);
}

.btn-ghost:hover {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}

.btn-outline:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ============ 6. HEADER & NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-900);
}

.logo:hover {
  color: var(--navy-900);
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--gold-500);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.primary-nav a:hover {
  color: var(--navy-700);
  background: var(--gray-100);
}

.nav-cta {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--gold-400) !important;
  color: var(--navy-900) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: all var(--transition);
  margin: 0 auto;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============ 7. HERO ============ */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(26, 58, 108, 0.08);
  color: var(--navy-700);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--navy-900);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-700);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}

.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(26, 138, 76, 0.15);
}

.hero-card strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy-900);
  margin-bottom: 2px;
}

.hero-card p {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0;
}

/* ============ 8. TRUST BAR ============ */
.trust-bar {
  padding: 40px 0;
  background: var(--navy-900);
  text-align: center;
}

.trust-title {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}

.trust-logos span {
  color: var(--gold-300);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* ============ 9. FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold-300);
}

.feature-img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.feature-body {
  padding: 28px;
  position: relative;
}

.feature-num {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-200);
  font-family: var(--font-serif);
}

.feature-body h3 {
  margin-bottom: 12px;
  color: var(--navy-800);
}

.feature-body p {
  color: var(--gray-500);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.feature-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-600);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.feature-link:hover {
  color: var(--gold-500);
  border-bottom-color: var(--gold-500);
}

/* ============ 10. HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold-300);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
  transition: background var(--transition);
}

.step:hover .step-num {
  background: var(--gold-500);
  color: var(--navy-900);
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* ============ 11. SOLUTIONS (TABS) ============ */
.tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 0;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
  color: var(--navy-700);
  background: var(--gray-100);
}

.tab-btn.active {
  color: var(--navy-700);
  border-bottom-color: var(--gold-500);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.tab-grid h3 {
  margin-bottom: 14px;
  color: var(--navy-800);
}

.tab-grid > div > p {
  color: var(--gray-500);
  margin-bottom: 22px;
  font-size: 0.98rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--gold-500);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3a6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

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

.tab-stat {
  padding: 24px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-md);
  text-align: center;
}

.tab-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 6px;
}

.tab-stat span {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ============ 12. TESTIMONIALS ============ */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.testimonial {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: all var(--transition);
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-500);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-body {
  flex: 1;
}

.quote-mark {
  font-size: 3rem;
  font-family: var(--font-serif);
  color: var(--gold-500);
  line-height: 0.5;
  margin-bottom: 10px;
  opacity: 0.6;
}

.testimonial blockquote {
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 1rem;
  color: var(--navy-800);
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 31, 60, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 14. PRICING ============ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 36px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.price-card-featured {
  border-color: var(--gold-500);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--navy-800);
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-700);
}

.price-unit {
  font-size: 0.95rem;
  color: var(--gray-400);
}

.price-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: rgba(26, 138, 76, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============ 15. FAQ (ACCORDION) ============ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.accordion-item:hover {
  border-color: var(--gold-300);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: background var(--transition);
}

.accordion-trigger:hover {
  background: var(--gray-50);
}

.accordion-trigger[aria-expanded="true"] {
  background: var(--gray-50);
}

.accordion-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-600);
  transition: transform var(--transition);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 24px 20px;
}

.accordion-panel p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============ 16. CONTACTS (FORM) ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.req {
  color: var(--error);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--white);
  transition: all var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(45, 90, 158, 0.12);
}

.form-row input.invalid,
.form-row textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-row textarea {
  resize: vertical;
}

.error-msg {
  display: block;
  font-size: 0.82rem;
  color: var(--error);
  margin-top: 5px;
  min-height: 1em;
}

.form-check-row {
  display: flex;
  flex-direction: column;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  margin-top: 1px;
  transition: all var(--transition);
  position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:focus + .checkbox-custom {
  box-shadow: 0 0 0 3px rgba(45, 90, 158, 0.12);
}

.checkbox-label a {
  color: var(--navy-700);
  text-decoration: underline;
}

.form-success {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(26, 138, 76, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.contact-details h3 {
  margin-bottom: 18px;
  color: var(--navy-800);
}

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

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.contact-list svg {
  flex-shrink: 0;
  color: var(--gold-600);
  margin-top: 1px;
}

.contact-list a {
  color: var(--navy-700);
  font-weight: 500;
}

.contact-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.88rem;
  color: var(--gray-500);
}

.contact-note strong {
  color: var(--navy-700);
}

/* ============ 17. FOOTER ============ */
.site-footer {
  background: var(--navy-900);
  color: var(--gray-300);
}

.footer-top {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo:hover {
  color: var(--white);
}

.logo-footer .logo-mark rect:first-child {
  fill: var(--navy-600);
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold-400);
}

.footer-skyline {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.footer-skyline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.footer-skyline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, transparent 30%, transparent 70%, var(--navy-900) 100%);
}

.footer-partners {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.partners-title {
  color: var(--gold-400);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  text-align: center;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.partners-list a {
  font-size: 0.88rem;
  color: var(--gray-300);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.partners-list a:hover {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}

.footer-social {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-title {
  color: var(--gold-400);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  text-align: center;
}

.social-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--gray-300);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
}

.social-list a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.social-list svg {
  flex-shrink: 0;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer-bottom-links a:hover {
  color: var(--gold-400);
}


/* ============ 18. LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 31, 60, 0.92);
  backdrop-filter: blur(8px);
  padding: 40px;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-figure {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ============ 19. TOAST ============ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 1100;
  padding: 16px 28px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  max-width: 90vw;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--gold-500);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============ 20. BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
}

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

.back-to-top:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-3px);
}

/* ============ 21. MEDIA QUERIES ============ */

/* ---- Tablet (max 992px) ---- */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .primary-nav.open {
    max-height: 500px;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px;
    gap: 4px;
  }

  .primary-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tab-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .tab-aside {
    flex-direction: row;
    gap: 12px;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .pricing {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Mobile (max 600px) ---- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-card {
    left: 0;
    bottom: -10px;
    padding: 12px 16px;
    max-width: 240px;
  }

  .trust-logos {
    gap: 8px 24px;
  }

  .trust-logos span {
    font-size: 0.95rem;
  }

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

  .tabs-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: none;
  }

  .tab-btn {
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
    padding: 14px 16px;
  }

  .tab-btn.active {
    border-bottom: 1px solid var(--gold-500);
    background: var(--gray-100);
  }

  .tab-aside {
    flex-direction: column;
  }

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

  .testimonial {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .testimonial-photo {
    width: 64px;
    height: 64px;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .contact-details {
    padding: 20px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .footer-skyline {
    height: 120px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---- Small mobile (max 380px) ---- */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .hero-stats strong {
    font-size: 1.5rem;
  }

  .price-value {
    font-size: 1.7rem;
  }

  .social-list a span {
    display: none;
  }

  .social-list a {
    padding: 12px;
  }
}

/* ---- Print ---- */
@media print {
  .site-header,
  .hamburger,
  .back-to-top,
  .lightbox,
  .toast,
  .footer-social,
  .footer-partners,
  .footer-skyline {
    display: none !important;
  }

  body {
    color: #000;
  }

  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}