@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a1a;
  --bg2: #222222;
  --bg3: #2a2a2a;
  --accent: #ff5c1a;
  --text: #f0f0f0;
  --muted: #888;
  --border: #333;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  align-items: center;
  padding: 18px 60px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.logo-big { font-size: 20px; font-weight: 900; letter-spacing: 2px; }
.logo-sub { font-size: 9px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--text); }

.nav-datetime {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-dt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.nav-dt-item i { color: var(--accent); font-size: 11px; }

.nav-tz {
  font-size: 10px;
  color: var(--border);
  letter-spacing: 0.5px;
}

.nav-dt-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.decor-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.decor-circle {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.c1 { width: 340px; height: 340px; right: -80px; top: 50%; transform: translateY(-50%); }
.c2 { width: 180px; height: 180px; right: 60px; top: 20%; opacity: 0.5; }
.c3 { width: 80px; height: 80px; left: 10%; bottom: 15%; opacity: 0.3; }

.decor-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.d1 { top: 22%; right: 18%; }
.d2 { bottom: 28%; right: 32%; opacity: 0.4; }
.d3 { top: 60%; left: 8%; opacity: 0.3; }

.decor-cross {
  position: absolute;
  font-size: 24px;
  color: var(--accent);
  font-weight: 300;
  opacity: 0.6;
}

.cr1 { top: 15%; left: 5%; }
.cr2 { bottom: 20%; right: 10%; }

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.hero-content { max-width: 520px; z-index: 2; flex-shrink: 0; }

.hero-age {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 440px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px 24px 20px;
}

.hero-age-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-age-value {
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 6px;
  word-break: break-all;
  line-height: 1.2;
}

.hero-age-birth {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
}

.hero-age-code {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 16px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  line-height: 1.8;
  white-space: pre;
  overflow: visible;
  margin: 0;
}

.code-comment { color: var(--muted); }
.code-const   { color: var(--accent); }
.code-str     { color: #63b3ed; }
.code-num     { color: #68d391; }

.hero-tag {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.accent { color: var(--accent); }

.hero-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }

section {
  padding: 72px 60px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.section-tag {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 40px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px 20px;
  transition: border-color 0.2s;
}

.about-card:hover { border-color: var(--accent); }

.accent-card { background: var(--accent); border-color: var(--accent); }
.accent-card h3, .accent-card p, .accent-card .card-num { color: #fff; }

.card-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.accent-card .card-num { color: rgba(255,255,255,0.5); }

.about-card h3 {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about-card p { font-size: 14px; font-weight: 600; }

.about-story { padding: 8px 0; }

.story-name {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}

.about-story p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 24px 20px;
}

.skill-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.tag i { color: var(--accent); font-size: 12px; }
.tag:hover { border-color: var(--accent); color: var(--accent); }

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo { font-size: 18px; font-weight: 900; letter-spacing: 2px; }

.footer-copy { font-size: 13px; color: var(--muted); }

.footer-tagline {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.3px;
}

.footer-col-title {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.footer-col-title::before { content: '// '; opacity: 0.7; }

.footer-link {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-link i { color: var(--accent); font-size: 13px; }
.footer-link:hover { color: var(--accent); }


.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .navbar { padding: 14px 20px; }
  section { padding: 52px 20px; }
  .about-layout { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer { padding: 36px 20px; grid-template-columns: 1fr; gap: 28px; }
}


.cp-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.cp-input:focus { border-color: var(--accent); }

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}


.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s;
}

.service-card:hover { border-color: var(--accent); }

.service-card.accent-card {
  background: var(--accent);
  border-color: var(--accent);
}

.service-card.accent-card h3,
.service-card.accent-card p { color: #fff; }

.service-icon { font-size: 22px; color: var(--accent); margin-bottom: 4px; }
.service-card.accent-card .service-icon { color: rgba(255,255,255,0.8); }

.service-card h3 { font-size: 15px; font-weight: 700; }
.service-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; }


.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-label i { color: var(--accent); }
.contact-val { font-size: 14px; font-weight: 500; }
.contact-link { color: var(--accent); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

.contact-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.contact-socials { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.social-btn i { color: var(--accent); }
.social-btn:hover { border-color: var(--accent); color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }


.chat-page { padding: 60px 60px; border-top: 1px solid var(--border); }

.chat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.chat-contacts { display: flex; flex-direction: column; gap: 10px; }

.chat-contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.chat-contact-btn:hover { border-color: var(--accent); }
.chat-contact-btn i { font-size: 20px; color: var(--accent); width: 24px; text-align: center; }
.chat-contact-btn span { font-size: 14px; font-weight: 600; display: block; }
.chat-contact-btn small { font-size: 11px; color: var(--muted); }

.chat-form-wrap { display: flex; flex-direction: column; gap: 16px; }

.chat-success {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
}

.chat-success i { font-size: 36px; color: var(--accent); margin-bottom: 16px; display: block; }
.chat-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.chat-success p { color: var(--muted); font-size: 14px; }


@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .chat-page { padding: 40px 20px; }
  .chat-layout { grid-template-columns: 1fr; }
}


.cw-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 24px rgba(255,92,26,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
  isolation: isolate;
}

.cw-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255,92,26,0.45); }

.cw-icon-close { display: none; }
.cw-btn.open .cw-icon-open  { display: none; }
.cw-btn.open .cw-icon-close { display: block; }
.cw-btn.open .cw-label { display: none; }


.cw-box {
  position: fixed;
  bottom: 88px;
  right: 28px;
  z-index: 998;
  width: 340px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), opacity 0.25s;
}

.cw-box.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}


.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.cw-header-info { display: flex; align-items: center; gap: 10px; }

.cw-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
  flex-shrink: 0;
}

.cw-name { font-size: 14px; font-weight: 700; display: block; }

.cw-status {
  font-size: 11px;
  color: #38a169;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cw-status i { font-size: 7px; }

.cw-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  transition: color 0.2s;
}

.cw-close:hover { color: var(--text); }

.cw-messages {
  flex: 1;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cw-msg { display: flex; }
.cw-msg-in  { justify-content: flex-start; }
.cw-msg-out { justify-content: flex-end; }

.cw-bubble {
  max-width: 80%;
  padding: 9px 13px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.cw-msg-in  .cw-bubble { background: var(--bg2); }
.cw-msg-out .cw-bubble { background: var(--accent); border-color: var(--accent); color: #fff; }

.cw-form {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg2);
}

.cw-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.cw-input:focus { border-color: var(--accent); }

.cw-input-row {
  display: flex;
  gap: 6px;
}

.cw-send {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cw-send:hover { opacity: 0.85; }

.cw-sent-msg {
  font-size: 12px;
  color: #38a169;
  text-align: center;
  padding: 4px 0;
}

.cw-notif-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  animation: cwPulse 1.5s infinite;
}

@keyframes cwPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.3); opacity: 0.7; }
}

.cw-reg-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cw-reg-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.cw-reg-fields { display: flex; flex-direction: column; gap: 8px; }

.cw-reg-legal {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.cw-reg-legal a { color: var(--accent); text-decoration: none; }
.cw-reg-legal a:hover { text-decoration: underline; }

.cw-start-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}

.cw-start-btn:hover { opacity: 0.85; }

@keyframes cwShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}


.legal-page { padding: 60px 60px; border-top: 1px solid var(--border); }

.legal-content { max-width: 720px; }

.legal-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-block:last-of-type { border-bottom: none; }

.legal-block h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-block ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-block li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-block a { color: var(--accent); text-decoration: none; }
.legal-block a:hover { text-decoration: underline; }

.legal-date {
  font-size: 12px;
  color: var(--border);
  margin-top: 32px;
}

@media (max-width: 900px) {
  .legal-page { padding: 40px 20px; }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 997;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  max-width: calc(100vw - 40px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.cookie-text {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-text i { color: var(--accent); }
.cookie-text a { color: var(--accent); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }

.cookie-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 22px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cookie-btn:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .cookie-banner { padding: 14px 20px; flex-direction: column; align-items: flex-start; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-icon {
  font-size: 40px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal-box p  { color: var(--muted); font-size: 14px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.error-content { position: relative; z-index: 2; }

.error-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -4px;
}

.error-msg {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.error-sub {
  font-size: 14px;
  color: var(--muted);
}
