:root {
  --primary: #163A4A;
  --secondary: #245B6B;
  --accent: #D99A32;
  --light-bg: #F4F7F6;
  --white: #FFFFFF;
  --primary-text: #17252C;
  --secondary-text: #59676D;
  --border: #D6DFE2;
  --shadow: 0 4px 12px rgba(22, 58, 74, 0.08);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--primary-text); background-color: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--primary); line-height: 1.2; font-weight: 700; }
p { color: var(--secondary-text); margin-bottom: 1.5rem; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--secondary-text); }
li { margin-bottom: 0.5rem; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-light { background-color: var(--light-bg); }
.section-dark { background-color: var(--primary); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p, .section-dark ul { color: var(--white); }
.section-title { text-align: center; margin-bottom: 3rem; font-size: 2.5rem; }

.btn { display: inline-block; padding: 0.75rem 1.5rem; font-weight: 600; border-radius: 4px; cursor: pointer; transition: var(--transition); text-align: center; border: 2px solid transparent; }
.btn-primary { background-color: var(--accent); color: var(--white); }
.btn-primary:hover { background-color: #c48a2c; color: var(--white); }
.btn-secondary { background-color: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background-color: var(--white); color: var(--primary); }
.btn-outline { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: var(--white); }

.back-link { display: inline-flex; align-items: center; margin-bottom: 2rem; font-weight: 600; color: var(--secondary); font-size: 1.1rem; }
.back-link:hover { color: var(--accent); text-decoration: underline; }

.header { background-color: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; height: var(--header-height); display: flex; align-items: center; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.nav-links { display: flex; list-style: none; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--primary-text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

.hero { position: relative; background-color: var(--primary); color: var(--white); padding: 6rem 0; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 1.5rem; }
.hero p { color: var(--light-bg); font-size: 1.25rem; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; }

.page-header { background-color: var(--primary); color: var(--white); padding: 4rem 0; text-align: center; }
.page-header h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 1rem; }
.page-header p { color: var(--light-bg); max-width: 700px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { background-color: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--secondary); }
.service-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.service-card p { flex-grow: 1; }
.service-card .btn { margin-top: 1.5rem; align-self: flex-start; }

.service-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.service-content h2 { font-size: 2rem; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.service-content h2:first-child { margin-top: 0; }
.service-content h3 { font-size: 1.5rem; margin: 1.5rem 0 1rem; }
.service-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background-color: var(--light-bg); padding: 2rem; border-radius: 8px; margin-bottom: 2rem; }
.sidebar-widget h4 { margin-bottom: 1rem; font-size: 1.2rem; }
.sidebar-menu { list-style: none; padding: 0; }
.sidebar-menu li { margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.sidebar-menu li:last-child { border-bottom: none; }
.sidebar-menu a { display: block; padding: 0.5rem 0; color: var(--secondary-text); }
.sidebar-menu a:hover { color: var(--primary); }
.service-image-block { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 2rem; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.process-step { text-align: center; position: relative; }
.step-number { font-size: 3rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; opacity: 0.8; }
.process-step h4 { margin-bottom: 0.5rem; }

.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.solution-card { position: relative; border-radius: 8px; overflow: hidden; height: 300px; }
.solution-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.solution-card:hover .solution-img { transform: scale(1.05); }
.solution-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(22, 58, 74, 0.9), rgba(22, 58, 74, 0)); padding: 2rem 1.5rem 1.5rem; }
.solution-overlay h3 { color: var(--white); margin: 0; }

.faq-container { max-width: 800px; margin: 0 auto; }
.accordion-item { border: 1px solid var(--border); margin-bottom: 1rem; border-radius: 4px; overflow: hidden; }
.accordion-header { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background-color: var(--white); border: none; font-size: 1.1rem; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.accordion-header:hover { background-color: var(--light-bg); }
.accordion-icon { font-size: 1.5rem; transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { padding: 0 1.5rem; background-color: var(--white); max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.accordion-item.active .accordion-content { padding: 1.5rem; max-height: 500px; border-top: 1px solid var(--border); }
.accordion-content p:last-child { margin-bottom: 0; }

.form-container { max-width: 600px; margin: 0 auto; background-color: var(--white); padding: 3rem; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--primary-text); }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; color: var(--primary-text); background-color: var(--white); }
.form-control:focus { outline: none; border-color: var(--secondary); }
textarea.form-control { min-height: 150px; resize: vertical; }
.form-message { display: none; padding: 1rem; background-color: #e6f4ea; color: #1e7e34; border: 1px solid #c3e6cb; border-radius: 4px; margin-bottom: 1.5rem; font-weight: 600; }

.footer { background-color: var(--primary); color: var(--light-bg); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col p, .footer-links a { color: var(--border); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--border); font-size: 0.9rem; }

.cookie-popup { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0,0,0,0.1); padding: 1.5rem; z-index: 9999; display: flex; justify-content: space-between; align-items: center; transform: translateY(100%); transition: transform 0.5s ease; }
.cookie-popup.show { transform: translateY(0); }
.cookie-content { max-width: 800px; }
.cookie-content p { margin: 0; font-size: 0.9rem; }
.cookie-btns { display: flex; gap: 1rem; }

@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .service-detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .service-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { position: absolute; top: var(--header-height); left: 0; width: 100%; background-color: var(--white); flex-direction: column; padding: 2rem; box-shadow: var(--shadow); display: none; align-items: flex-start; }
  .nav-links.active { display: flex; }
  .nav-links .btn { margin-top: 1rem; width: 100%; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
  .cookie-popup { flex-direction: column; gap: 1.5rem; text-align: center; }
  .cookie-btns { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0; }
  .form-container { padding: 1.5rem; }
}