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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: #1a1a2e;
}

.site-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}

.container {
  width: 100%;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* Header */
.header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .header-top {
    padding: 20px 40px;
  }
}

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

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .logo-img {
    width: 56px;
    height: 56px;
  }
}

.logo-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .logo-title {
    font-size: 28px;
  }
}

.logo-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

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

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 5px 10px;
}

.lang-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s;
}

.lang-link.active {
  color: #4caf50;
}

.lang-link:hover {
  color: #fff;
}

.lang-divider {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}

/* Reg btn */
.reg-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.reg-btn:hover {
  opacity: 0.9;
}

.reg-btn.registered {
  background: #555;
  cursor: default;
  pointer-events: none;
}

/* Nav */
.nav {
  background: #fff;
  border-top: 1px solid #e0e0e0;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0 20px;
  overflow-x: auto;
}

@media (min-width: 768px) {
  .nav-list {
    padding: 0 40px;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #4caf50;
}

.nav-link i {
  font-size: 14px;
}

.nav-list li + li .nav-link {
  border-left: 1px solid #e0e0e0;
}

/* Toast notification */
.toast-notification {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 99999;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
  white-space: nowrap;
}

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

@media (max-width: 480px) {
  .toast-notification {
    font-size: 12px;
    padding: 12px 18px;
    white-space: normal;
    text-align: center;
    width: 90%;
  }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e, #2a2a5e);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

@media (min-width: 768px) {
  .hero {
    min-height: 260px;
    padding: 30px 40px;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap;
}

/* YouTube widget */
.youtube-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.yt-icon {
  width: 32px;
  height: 32px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-icon svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.yt-info {
  display: flex;
  flex-direction: column;
}

.yt-channel {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.yt-subs {
  color: #aaa;
  font-size: 11px;
}

.yt-subscribe-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
}

.yt-subscribe-btn:hover {
  background: #cc0000;
}

.yt-subscribe-btn.subscribed {
  background: #555;
  pointer-events: none;
  opacity: 0.7;
}

.yt-subscribe-btn svg {
  width: 12px;
  height: 12px;
}

/* Subscriber widget */
.subscriber-widget {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px 14px;
}

.subscriber-widget.visible {
  display: flex;
}

.subscriber-count {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
}

.subscriber-count i {
  color: #4caf50;
  font-size: 14px;
}

.count-number {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.subscribe-btn {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.subscribe-btn:hover {
  opacity: 0.9;
}

.subscribe-btn.subscribed {
  background: #555;
  cursor: default;
}

/* Sections */
.section {
  padding: 50px 0;
}

.section-alt {
  background: #f8f9fa;
}

@media (min-width: 768px) {
  .section {
    padding: 70px 0;
  }
}

.content-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

@media (min-width: 768px) {
  .content-row {
    flex-direction: row;
    gap: 50px;
  }
  .content-row.reverse {
    flex-direction: row-reverse;
  }
}

.content-text {
  flex: 1;
}

.content-text h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 16px;
  line-height: 1.3;
}

.content-text h2 span {
  color: #4caf50;
}

@media (min-width: 768px) {
  .content-text h2 {
    font-size: 30px;
  }
}

.content-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .content-text p {
    font-size: 15px;
  }
}

.content-image {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.content-image img {
  width: 100%;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .content-image img {
    height: 300px;
  }
}

/* Projects */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-img img {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .project-img img {
    height: 200px;
  }
}

.project-body {
  padding: 16px;
}

.project-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 12px;
}

.project-btn {
  display: block;
  padding: 10px;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.project-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* SMS button */
.sms-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.sms-btn:hover {
  opacity: 0.9;
}

.sms-btn i {
  margin-right: 4px;
}

/* SMS Modal */
.sms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sms-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sms-modal {
  background: #fff;
  border-radius: 16px;
  width: 94%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.sms-modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
}

.sms-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sms-modal-close:hover {
  background: #e0e0e0;
}

.sms-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sms-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sms-form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.sms-form-group input,
.sms-form-group textarea,
.sms-form-group select {
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fff;
  color: #333;
}

.sms-form-group input:focus,
.sms-form-group textarea:focus,
.sms-form-group select:focus {
  border-color: #ff9800;
}

.sms-form-group input.error,
.sms-form-group textarea.error,
.sms-form-group select.error {
  border-color: #e53935;
}

.sms-form-error {
  font-size: 11px;
  color: #e53935;
  display: none;
}

.sms-form-group input.error + .sms-form-error,
.sms-form-group textarea.error + .sms-form-error,
.sms-form-group select.error + .sms-form-error {
  display: block;
}

.sms-project-name {
  font-size: 13px;
  font-weight: 700;
  color: #ff9800;
  background: rgba(255,152,0,0.1);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}

.sms-form-submit {
  padding: 12px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sms-form-submit:hover {
  opacity: 0.9;
}

.sms-form-submit i {
  margin-right: 6px;
}

/* Footer */
.footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 40px 0 30px;
}

@media (min-width: 768px) {
  .footer {
    padding: 50px 0 35px;
  }
}

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

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
}

.footer-col h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  line-height: 2;
  color: #999;
  text-decoration: none;
  display: block;
}

.footer-col a:hover {
  color: #4caf50;
}

.footer-col i {
  width: 20px;
  color: #4caf50;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #999;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link.tg:hover {
  background: #0088cc;
  color: #fff;
}

.social-link.yt:hover {
  background: #ff0000;
  color: #fff;
}

.social-link.ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 16px;
  width: 94%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e0e0e0;
}

.reg-form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.form-group input {
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #4caf50;
}

.form-group input.error {
  border-color: #e53935;
}

.form-error {
  font-size: 11px;
  color: #e53935;
  display: none;
}

.form-group input.error + .form-error {
  display: block;
}

.form-submit {
  padding: 12px;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover {
  opacity: 0.9;
}

/* Responsive helpers */
@media (max-width: 350px) {
  .header-top {
    padding: 12px 12px;
  }
  .logo-img {
    width: 38px;
    height: 38px;
  }
  .logo-title {
    font-size: 18px;
  }
  .hero {
    padding: 14px;
    min-height: 160px;
  }
  .youtube-widget {
    padding: 8px 12px;
    gap: 8px;
  }
  .yt-icon {
    width: 26px;
    height: 26px;
  }
  .yt-subscribe-btn {
    padding: 5px 12px;
    font-size: 10px;
  }
  .section {
    padding: 30px 0;
  }
  .content-text h2 {
    font-size: 19px;
  }
  .content-text p {
    font-size: 13px;
  }
  .content-image img {
    height: 170px;
  }
  .project-img img {
    height: 150px;
  }
  .project-body h3 {
    font-size: 15px;
  }
  .project-btn {
    font-size: 11px;
    padding: 8px;
  }
  .footer {
    padding: 28px 0 20px;
  }
  .lang-link {
    font-size: 11px;
  }
  .reg-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
  .nav-link {
    font-size: 11px;
    padding: 10px 14px;
  }
}
