:root {
      --primary-color: #6366f1;
      --secondary-color: #a78bfa;
      --text-color: #1f2937;
      --bg-color: #ffffff;
      --gray-light: #f3f4f6;
      --gray-dark: #4b5563;
    }

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

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      line-height: 1.6;
    }
    main {
      min-height: 100vh;
    }
    .error-page {
      display: flex;
      align-items: center;
      height: 100vh;
      justify-content: center;
      font-weight: 700;
      flex-direction: column;
      gap: 20px;
    }
    .error-page-404 {
        font-size: 10rem;
        color: #53377a;
    }
    .error-page-btn {
        background: #53377a;
        padding: 10px;
        border-radius: 12px;
        color: #ffffff;
    }
    a {
      text-decoration: none;
      color: inherit;
    }

    header {
      position: fixed;
      top: 0;
      z-index: 1000;
      background: #ffffffcf;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      padding: 1rem 2rem;
      width: 100%;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    .flex {
      display: grid;
      grid: "adress adress logo logo logo tel tel" 1fr / 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
      align-items: center;
    }
    .flex p {
        grid-area: adress;
        justify-content: space-between;
        align-items: center;
    }
    .flex .logo {
      grid-area: logo;
      justify-self: anchor-center;
    }
    .flex a {
        grid-area: tel;
        justify-self: end;
        align-items: center;
    }
    
    .banner-page {
        width: 100%;
        aspect-ratio: 2 / 1;
        object-fit: cover;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
    }

    .nav-links a {
      color: var(--text-color);
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .nav-links a:hover {
      color: var(--primary-color);
    }

    .mobile-menu-btn {
      display: none;
      cursor: pointer;
      font-size: 1.5rem;
    }

    .mobile-menu {
      display: none;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem 0;
    }
    
    .container-banner {
      position: relative;
      width: 100%;
      height: 100vh;
      overflow: hidden;
    }

    .image-container {
      position: absolute;
      top: 0;
      width: 50%;
      height: 100%;
      overflow: hidden;
    }

    .image-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: end;
    justify-content: center;
    }
    .overlay:hover {
        background-color: rgb(0 0 0 / 0%);
        transition: background-color 1s ease, width 1s ease-in-out;
    }
    

    .overlay h2 {
      color: white;
      font-size: 2.5rem;
      font-weight: 400;
      text-align: center;
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
      padding: 0 20px;
    }

    .atelier {
      left: 0;
    }

    .repair {
      right: 0;
    }
    
    .hero {
      background: linear-gradient(to right, #f8fafc, #f3f4f6);
      padding: 4rem 2rem;
    }

    .hero-content {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

    @media (min-width: 768px) {
      .hero-content {
        flex-direction: row;
        align-items: center;
      }

      .hero-text {
        width: 60%;
      }

      .hero-image {
        width: 40%;
      }

      
    }

    .hero h1 {
      font-size: 2rem;
      font-weight: bold;
      line-height: 1.3;
    }

    @media (min-width: 992px) {
      .hero h1 {
        font-size: 2.5rem;
      }
    }

    .hero p {
      margin-top: 1rem;
      font-size: 1.1rem;
    }

    .hero .btn {
      margin-top: 1.5rem;
      display: inline-block;
      background: #53377a;
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 999px;
      font-weight: bold;
      transition: background 0.3s ease;
    }

    .hero .btn:hover {
      background: #5356d6;
    }

    .section {
      padding: 4rem 2rem;
    }

    .section h2 {
      font-size: 1.8rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 2rem;
    }

    .features ul {
      list-style: disc;
      padding-left: 1.5rem;
      font-size: 1rem;
      line-height: 1.8;
    }

    .services-grid,
    .why-us-grid,
    .process-list {
      display: grid;
      gap: 1.5rem;
    }

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

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

    .service-card,
    .why-us-card {
      background: white;
      padding: 1.5rem;
      border-radius: 0.5rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.05);
      transition: transform 0.2s ease;
    }

    .service-card:hover,
    .why-us-card:hover {
      transform: translateY(-5px);
    }

    .service-card h3,
    .why-us-card h3 {
      font-size: 1.2rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }

    .process-list {
      gap: 1.5rem;
    }

    .process-step {
      display: flex;
      gap: 1rem;
      align-items: flex-start;
    }

    .process-step .step-number {
      background: #53377a;
      color: white;
      font-weight: bold;
      width: 2rem;
      height: 2rem;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .cta {
      background: #53377a;
      color: white;
      padding: 3rem 2rem;
      text-align: center;
    }

    .cta h3 {
      font-size: 1.8rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }

    .cta .btn {
      margin-top: 1.5rem;
      display: inline-block;
      background: #ffffff;
      color: #53377a;
      padding: 0.75rem 1.5rem;
      border-radius: 999px;
      font-weight: bold;
    }

    .contact {
      background: var(--gray-light);
      padding: 3rem 2rem;
    }

    .contact-form {
      background: white;
      padding: 2rem;
      border-radius: 0.5rem;
      display: grid;
      grid: "info map" auto / 1fr 2fr;
    }
    
    .contact-form-info {
        grid-area: info;
    }
    .contact-form-map {
        grid-area: map;
    }
    
    .contact-form-info h4 {
      font-weight: bold;
      margin-bottom: 0.5rem;
    }

    footer {
      background: white;
      padding: 2rem;
      text-align: center;
      border-top: 1px solid #e5e7eb;
    }

    @media (max-width: 768px) {
      header {
        padding: .5rem;
      }
      .flex {
        grid: "logo adress" auto / 1fr 3fr;
        align-items: center;
        gap: 10px;
      }
      .flex p {
        text-align: end;
      }
      .flex .tel {
        display: none;
      }
      .banner-page {
        aspect-ratio: 1 / 1;
      }
      .container-banner {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: grid;
        grid:
            "atelier" 1fr
            "repair" 1fr / 1fr;
      }
      .image-container {
        position: absolute;
        height: 100%;
      }
      .image-container { 
        width: 100%;
      }
      .repair {
        grid-area: repair;
      }
      .atelier {
        grid-area: atelier;
      }
      .overlay h2 {
        font-size: 2rem;
      }
      
      .hero-content {
        flex-direction: column;
      }

      .hero-text,
      .hero-image {
        width: 100%;
      }
      .mobile-menu-btn {
        display: block;
      }
      .nav-links{
        display: none;
      }
      .contact-form {
        grid: "info"auto "map" auto / auto;
        padding: 12px;
    }
    }
    
    :root {
      --primary-color: #6366f1;
      --text-color: #1f2937;
      --bg-color: #ffffff;
      --gray-light: #f3f4f6;
    }

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

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      line-height: 1.6;
    }

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

    .section {
      padding: 4rem 2rem;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    h2 {
      font-size: 1.8rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 2rem;
    }

    /* Фотогалерея */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1rem;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      aspect-ratio: 1 / 1;
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.05);
    }

    /* Модальное окно */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease;
    }

    .modal.active {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      position: relative;
      max-width: 90vw;
      max-height: 90vh;
    }

    .modal-content img {
      width: 100%;
      height: auto;
      max-height: 80vh;
      object-fit: contain;
    }

    .modal-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding: 0 1rem;
      box-sizing: border-box;
    }

    .modal-nav button {
      background: rgba(255,255,255,0.8);
      border: none;
      padding: 1rem;
      font-size: 1.5rem;
      cursor: pointer;
      border-radius: 50%;
      transition: background 0.3s ease;
    }

    .modal-nav button:hover {
      background: white;
    }

    .modal-close {
      position: absolute;
      top: -2rem;
      right: 0;
      font-size: 1.5rem;
      background: white;
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      cursor: pointer;
    }