:root {
  --bg: #f8f9fc;
  --bg-white: #ffffff;
  --bg-ice: linear-gradient(160deg, #eef1f8 0%, #f5f3ee 100%);
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-input: #f3f5f9;
  --text: #1e2a3a;
  --text-muted: #64748b;
  --border: rgba(30, 42, 58, 0.08);
  --border-hover: rgba(201, 162, 39, 0.35);
  --accent: #e8b830;
  --accent-dark: #c9971a;
  --accent-deep: #a07810;
  --accent-soft: rgba(232, 184, 48, 0.12);
  --accent-glow: rgba(232, 184, 48, 0.28);
  --blue-soft: rgba(99, 140, 220, 0.08);
  --gradient-accent: linear-gradient(135deg, #f0c040 0%, #e8a820 50%, #d4920a 100%);
  --gradient-text: linear-gradient(120deg, #c9971a 0%, #e8b830 45%, #f0c850 100%);
  --shadow-sm: 0 2px 8px rgba(30, 42, 58, 0.04);
  --shadow: 0 8px 32px rgba(30, 42, 58, 0.07);
  --shadow-lg: 0 20px 50px rgba(30, 42, 58, 0.1);
  --shadow-gold: 0 8px 28px rgba(232, 184, 48, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248, 249, 252, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav a:not(.nav-cta):hover {
  color: var(--text);
}

.nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 0.5rem 1.35rem;
  background: var(--gradient-accent);
  color: #1a1408 !important;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(232, 184, 48, 0.35);
  color: #1a1408 !important;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ── */

.hero {
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -8%;
  width: 55%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(232, 184, 48, 0.14) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -12%;
  width: 45%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(99, 140, 220, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 184, 48, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #1a1408;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232, 184, 48, 0.38);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--bg-white);
  color: var(--accent-deep);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.85rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 340px;
}

.hero-card img {
  width: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Sections ── */

.section {
  padding: 5rem 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-ice);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 0.6rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  background: var(--accent-soft);
  border-radius: 50px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-text p:last-child { margin-bottom: 0; }

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

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.contact-card ion-icon {
  font-size: 1.4rem;
  color: var(--accent-dark);
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0.5rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.contact-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-card a:hover { color: var(--accent-deep); }

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { opacity: 1.5; }

.service-card img {
  width: 40px;
  margin-bottom: 1rem;
  position: relative;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
}

/* ── Portfolio ── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.app-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  transition: transform var(--transition);
}

.app-card:hover img { transform: scale(1.06); }

.app-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.app-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  min-height: 2.5em;
  line-height: 1.6;
}

.app-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(232, 184, 48, 0.2);
  border-radius: 50px;
  font-weight: 500;
}

/* ── Testimonials ── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
  line-height: 1.75;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.contact-info-block,
.contact-form-wrap {
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-info-block h3,
.contact-form-wrap h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list ion-icon {
  font-size: 1.25rem;
  color: var(--accent-dark);
  flex-shrink: 0;
  padding: 0.4rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.contact-list .field-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(232, 184, 48, 0.5);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 1rem;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--gradient-accent);
  color: #1a1408;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.form-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.form-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(232, 184, 48, 0.38);
}

.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* ── Footer ── */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-deep); }

/* ── Mobile nav ── */

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
  box-shadow: var(--shadow);
}

.nav-mobile.active { display: flex; }

.nav-mobile a {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--accent-deep); }

/* ── Responsive ── */

@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

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

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: block; }

  .hero-visual { order: -1; }
  .hero-grid { gap: 2rem; }

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

  .services-grid,
  .portfolio-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
