:root {
  --royal: #003399; /* Royal Blue */
  --royal-dark: #002266;
  --coral: #ff5e5b; /* Electric Coral */
  --coral-hover: #e04e4b;
  --slate: #2c3e50;
  --light: #f4f7f6;
  --white: #ffffff;
  --border: #e0e0e0;
  --font-main: "DM Sans", sans-serif;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--slate);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--royal);
  line-height: 1.2;
  word-break: break-word;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 25px;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.highlight {
  color: var(--coral);
}

.hero-desc {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  max-width: 550px;
}

.center {
  text-align: center;
}

/* Buttons */
.btn-royal {
  display: inline-block;
  background: var(--royal);
  color: var(--white);
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--royal);
  cursor: pointer;
  transition: 0.3s;
}

.btn-royal:hover {
  background: var(--royal-dark);
  border-color: var(--royal-dark);
}

.btn-coral {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--coral);
  cursor: pointer;
  transition: 0.3s;
}

.btn-coral:hover {
  background: var(--white);
  color: var(--coral);
}

.link-u {
  font-weight: 700;
  text-decoration: underline;
  color: var(--royal);
}

.lg {
  padding: 16px 36px;
  font-size: 16px;
}
.sm {
  padding: 8px 16px;
  font-size: 12px;
}
.full-w {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.h-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: var(--royal);
  letter-spacing: -0.5px;
}

.desk-nav {
  display: flex;
  gap: 30px;
}

.desk-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
}

.desk-nav a:hover {
  color: var(--coral);
}

.h-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--royal);
}

/* Mobile Menu */
.mob-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: 0.4s ease-in-out;
}

.mob-menu.active {
  transform: translateX(0);
}

.mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.mm-brand {
  font-weight: 700;
  font-size: 24px;
  color: var(--royal);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
}

.mm-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mm-nav a {
  font-size: 24px;
  font-weight: 700;
  color: var(--slate);
}

.mm-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.mm-cta {
  display: block;
  font-weight: 700;
  color: var(--coral);
  font-size: 18px;
  margin-bottom: 10px;
}

.mm-footer p {
  color: #999;
  font-size: 12px;
}

/* Hero */
.hero {
  padding-top: 140px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff 50%, #f0f4ff 100%);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6f0ff;
  color: var(--royal);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-note {
  font-size: 12px;
  color: #777;
  font-style: italic;
}

.hero-img {
  position: relative;
}

.img-wrapper {
  position: relative;
}

.img-wrapper img {
  border-radius: 20px;
  box-shadow: 20px 20px 0 var(--royal);
}

.float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.float-card i {
  color: #00cc66;
}
.float-card strong {
  display: block;
  font-size: 14px;
  color: var(--royal);
}
.float-card span {
  display: block;
  font-size: 12px;
  color: #888;
}

/* Philosophy */
.bg-light {
  background: var(--light);
}
.sec-intro {
  margin-bottom: 60px;
}
.sec-intro p {
  max-width: 600px;
  margin: 10px auto 0;
  font-size: 18px;
  color: #666;
}

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

.feature-box {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.fb-icon {
  width: 50px;
  height: 50px;
  background: #e6f0ff;
  color: var(--royal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.feature-box p {
  font-size: 14px;
  color: #666;
}

/* Cases */
.cases-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  grid-auto-rows: minmax(250px, auto);
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.case-card:hover {
  border-color: var(--coral);
}

.case-card.large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 0;
}

.cc-content {
  padding: 40px;
}
.cc-img {
  height: 100%;
}
.cc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-icon {
  width: 40px;
  height: 40px;
  background: #fff0f0;
  color: var(--coral);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.case-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.case-card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
}

.link-arr {
  font-weight: 700;
  color: var(--coral);
  font-size: 14px;
}

/* Blog */
.bg-dark {
  background: var(--slate);
  color: var(--white);
}
.text-white {
  color: var(--white);
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

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

.blog-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.blog-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bi-img {
  height: 200px;
  overflow: hidden;
}
.bi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bi-content {
  padding: 25px;
}

.date {
  font-size: 11px;
  color: var(--coral);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.bi-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--white);
}
.bi-content p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

.read-lnk {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--white);
  color: var(--white);
}

/* Steps */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  text-align: center;
  padding: 20px;
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: -1;
}

.step:last-child::after {
  display: none;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--royal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
}

.step h4 {
  font-size: 20px;
  margin-bottom: 10px;
}
.step p {
  color: #666;
  font-size: 14px;
}

/* CTA */
.bg-coral {
  background: var(--coral);
}

.cta-banner {
  background: var(--white);
  padding: 60px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-txt h2 {
  margin-bottom: 15px;
}
.cta-txt p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
}

/* FAQ */
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.mb-60 {
  margin-bottom: 60px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-row {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

.faq-head {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: var(--royal);
  cursor: pointer;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}
.faq-body p {
  padding: 0 20px 20px;
  color: #555;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.cw-info h2 {
  font-size: 40px;
  margin-bottom: 20px;
}
.cw-info p {
  color: #666;
  margin-bottom: 40px;
  font-size: 18px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cl-row {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
}
.cl-row i {
  color: var(--coral);
}

.cw-form {
  background: var(--light);
  padding: 40px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--royal);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--royal);
}

.err-msg {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 11px;
  color: #d32f2f;
  display: none;
}

.form-group.error input {
  border-color: #d32f2f;
}
.form-group.error .err-msg {
  display: block;
}

.chk-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.chk-row input {
  margin-top: 5px;
  accent-color: var(--royal);
}
.chk-row label {
  font-size: 12px;
  color: #666;
}
.chk-row a {
  text-decoration: underline;
  color: var(--royal);
}

/* Footer */
.footer {
  background: var(--royal-dark);
  color: var(--white);
  padding: 80px 0 20px;
}

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

.f-logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 15px;
}
.f-brand p {
  color: #ccc;
  max-width: 300px;
  margin-bottom: 20px;
}

.f-contacts-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #aaa;
}
.f-contacts-links a:hover {
  color: var(--white);
}

.f-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}
.f-col a {
  display: block;
  margin-bottom: 10px;
  color: #ccc;
  font-size: 14px;
}
.f-col a:hover {
  color: var(--white);
}

.f-btm {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Cookie */
.cookie-box {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 2px solid var(--royal);
  padding: 20px;
  z-index: 5000;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.cb-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cb-inner p {
  font-weight: 500;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .desk-nav,
  .h-right {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .grid-3,
  .cases-layout,
  .blog-grid,
  .steps-row,
  .contact-wrapper,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .case-card.large {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .step::after {
    display: none;
  }

  /* Fix Header Fixed Overflow */
  h1 {
    font-size: 3rem;
  }
  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .container {
    padding: 0 15px;
  }
  .cw-form {
    padding: 25px;
  }
  .form-group input {
    width: 100%;
  }
}

.pages {
  padding: 120px 0;
}

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

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 40px;
  margin-top: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 20px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px !important;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
