* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Roboto', sans-serif;
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
    }

    nav {
      padding: 1rem;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 1rem;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      margin-right: 2rem;
    }

    .domain {
      display: block;
      margin-top: 0.25rem;
      font-size: 0.9rem;
      font-weight: normal;
      opacity: 0.8;
      white-space: nowrap;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      flex-wrap: nowrap;
    }

    .nav-menu li {
      margin-left: 2rem;
      white-space: nowrap;
    }

    .nav-menu a {
      text-decoration: none;
      position: relative;
      white-space: nowrap;
    }

    .nav-menu a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: currentColor;
      transition: width 0.3s ease;
    }

    .nav-menu a:hover::after {
      width: 100%;
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .menu-toggle span {
      display: block;
      width: 25px;
      height: 3px;
      background-color: currentColor;
      margin: 5px 0;
      transition: all 0.3s ease;
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
        color: inherit;
        z-index: 1002;
        position: relative;
      }

      .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--menu-bg-color, #fff);
        padding: 1rem 0;
        flex-direction: column;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        z-index: 1001;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
      }

      .nav-menu.active {
        display: flex !important;
      }

      .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
      }

      .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--menu-link-color, #1976d2) !important;
        background: transparent;
        transition: color 0.3s;
      }

      .nav-menu a::after {
        display: none;
      }

      .logo {
        font-size: 1.1rem;
        margin-right: 1rem;
        white-space: nowrap;
      }
    }

    @media (max-width: 480px) {
      .nav-container {
        padding: 0 0.5rem;
      }

      .logo {
        font-size: 1rem;
      }

      .nav-menu a {
        font-size: 0.9rem;
      }
    }

    body {
      line-height: 1.6;
      color: #333;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
      margin: 0;
      padding: 0;
      width: 100%;
    }
    
    /* Стили для галереи изображений */
    .section-gallery {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .gallery-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity 0.5s ease;
    }
    
    .gallery-dot {
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    /* Стили для изображений внутри секций с обтеканием текста */
    section p + .section-gallery,
    section h2 + .section-gallery {
      margin-top: 1rem;
      margin-bottom: 1rem;
    }

    /* Стили для рамок секций */
    section {
      position: relative;
      padding: 6rem 0;
      margin: 2rem 0;
      overflow: hidden;
    }

    section:first-child {
      margin-top: 0;
    }

    section:last-child {
      margin-bottom: 0;
    }

    section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border: 4px solid transparent;
      border-radius: 20px;
      background: linear-gradient(45deg, var(--border-start-color, #1976d2), var(--border-end-color, #64b5f6)) border-box;
      -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      z-index: 1;
      transition: all 0.3s ease-in-out;
      animation: borderPulse 3s infinite, glowPulse 3s infinite;
      pointer-events: none;
    }

    section:hover::before {
      border: 5px solid transparent;
      box-shadow: 0 0 25px 15px var(--border-start-color, #1976d2);
      animation: none;
    }

    @keyframes borderPulse {
      0% {
        border-width: 4px;
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4);
      }
      50% {
        border-width: 5px;
        box-shadow: 0 0 20px 10px rgba(25, 118, 210, 0.2);
      }
      100% {
        border-width: 4px;
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4);
      }
    }

    @keyframes glowPulse {
      0% {
        box-shadow: 0 0 5px 0 rgba(25, 118, 210, 0.4);
      }
      50% {
        box-shadow: 0 0 20px 10px rgba(25, 118, 210, 0.2);
      }
      100% {
        box-shadow: 0 0 5px 0 rgba(25, 118, 210, 0.4);
      }
    }

    .site-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }

    main {
      flex: 1;
      padding-top: 60px;
      width: 100%;
      overflow-x: hidden;
    }

    .hero {
      height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 2rem;
      position: relative;
      overflow: hidden;
    }

    .hero[style*="background-image"] {
      animation: zoomIn 20s ease-in-out infinite alternate;
    }

    @keyframes zoomIn {
      0% {
        transform: scale(1);
      }
      100% {
        transform: scale(1.1);
      }
    }

    .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
      animation: fadeIn 1s ease-in-out;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    .hero-content {
      max-width: 800px;
      z-index: 2;
      position: relative;
      animation: slideUp 1s ease-out;
    }

    @keyframes slideUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .hero h1 {
      font-size: 3rem;
      margin-bottom: 1.5rem;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
      animation: fadeIn 1s ease-in-out 0.3s both;
    }

    .hero p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
      animation: fadeIn 1s ease-in-out 0.6s both;
    }

    .hero button {
      padding: 1rem 2rem;
      font-size: 1.1rem;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      animation: fadeIn 1s ease-in-out 0.9s both;
    }

    .hero button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .section {
      padding: 6rem 1rem;
      width: 100%;
      box-sizing: border-box;
      position: relative;
      overflow: hidden;
      background-color: var(--section-background-color, transparent);
    }

    .section[data-show-background="false"] {
      background-color: transparent !important;
      background-image: none !important;
    }

    .section[data-show-background="false"] .section-background-blur,
    .section[data-show-background="false"] .section-overlay {
      display: none !important;
    }

    .section-background-blur {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-size: cover;
      background-position: center;
      z-index: 0;
      animation: zoomIn 20s ease-in-out infinite alternate;
    }

    .section-container {
      position: relative;
      z-index: 2;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

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

    .section-header h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      position: relative;
    }

    .section-header h2::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 3px;
      background-color: #1976d2;
      transition: width 0.3s ease-in-out;
    }

    .section-header h2:hover::after {
      width: 100px;
    }

    .section-header p {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto;
      line-height: 1.6;
    }

    .about-section {
      display: flex;
      align-items: flex-start;
      gap: 2rem;
      padding: 2rem;
      position: relative;
      border-radius: 16px;
      background: linear-gradient(145deg, #ffffff, #f5f5f5);
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .about-section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 16px;
      padding: 2px;
      background: linear-gradient(45deg, #1976d2, #42a5f5);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
    }

    .about-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding-left: 1rem;
      text-align: left;
      position: relative;
    }

    .about-content::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(to bottom, #1976d2, #42a5f5);
      border-radius: 2px;
    }

    .about-content h2 {
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
      text-align: left;
      position: relative;
    }

    .about-content h2::after {
      content: "";
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 60px;
      height: 4px;
      background: linear-gradient(to right, #1976d2, #42a5f5);
      border-radius: 2px;
    }

    .about-content p {
      font-size: 1.1rem;
      line-height: 1.6;
      text-align: left;
    }

    .section-image {
      width: 100%;
      margin: 2rem auto;
      text-align: center;
      max-width: 800px;
    }

    .section-image img {
      width: 100%;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      transition: transform 0.3s ease;
    }

    .section-image img:hover {
      transform: scale(1.02);
    }

    @media (max-width: 768px) {
      .about-section {
        flex-direction: column;
      }
      
      .about-content {
        padding-left: 0;
        padding-top: 1rem;
      }
    }

    .section h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      text-align: center;
      position: relative;
    }

    .section h2::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 3px;
      background-color: #1976d2;
      transition: width 0.3s ease-in-out;
    }

    .section h2:hover::after {
      width: 100px;
    }

    .section p {
      font-size: 1.1rem;
      margin-bottom: 3rem;
      text-align: center;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Контейнер для карточек */
    .cards-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      padding: 1rem;
      position: relative;
      z-index: 2;
      pointer-events: auto;
    }

    @media (max-width: 1024px) {
      .cards-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .cards-container {
        grid-template-columns: 1fr;
      }
    }

    /* Базовые стили карточек с анимациями */
    .card {
      transition: all 0.3s ease-in-out;
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      background-color: #ffffff;
      width: 100%;
      max-width: 280px;
      border-radius: 12px;
      overflow: hidden;
      height: 100%;
      margin: 1rem;
      position: relative;
      z-index: 2;
    }

    /* Заголовки и текст карточек */
    .card-title {
      color: #1a237e;
      margin-bottom: 0.7rem;
      font-size: 1.5rem;
      font-weight: 600;
      transition: all 0.3s ease-in-out;
    }

    .card-text {
      color: #455a64;
      font-size: 1rem;
      line-height: 1.6;
      transition: all 0.3s ease-in-out;
    }

    /* Simple Card */
    .card.simple {
      background-color: transparent;
      border: 3px solid #e0e0e0;
    }

    .card.simple:hover {
      transform: scale(1.2);
      z-index: 3;
    }

    /* Elevated Card */
    .card.elevated {
      background-color: #ffffff;
      border: 3px solid #e0e0e0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .card.elevated:hover {
      transform: rotate(3deg) scale(1.05);
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      z-index: 3;
    }

    .card.elevated:hover .card-title {
      color: #1976d2;
      transform: translateX(4px);
    }

    /* Outlined Card */
    .card.outlined {
      background: linear-gradient(to right, #e8f5e9, #c8e6c9);
      border: 3px solid #e0e0e0;
    }

    .card.outlined:hover {
      transform: skew(-5deg) translateY(-5px);
      border-color: #1976d2;
      z-index: 3;
    }

    .card.outlined:hover .card-title {
      color: #1976d2;
    }

    /* Accent Card */
    .card.accent {
      background-color: #ffffff;
      border: 3px solid #e0e0e0;
      position: relative;
    }

    .card.accent::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      background: linear-gradient(to bottom, #1976d2, #42a5f5);
      transition: width 0.3s ease-in-out;
      z-index: 1;
    }

    .card.accent:hover {
      transform: translateX(10px) translateY(-5px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      z-index: 3;
    }

    .card.accent:hover::before {
      width: 6px;
    }

    .card.accent:hover .card-title {
      color: #1976d2;
    }

    /* Gradient Card */
    .card.gradient {
      background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
      border: 3px solid #e0e0e0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      transition: all 0.3s ease-in-out;
      position: relative;
      z-index: 2;
    }

    .card.gradient:hover {
      transform: scale(1.2);
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      z-index: 3;
    }

    .card.gradient:hover h3 {
      color: #1976d2;
    }

    .card.gradient:hover p {
      color: #455a64;
    }

    /* Контейнер для секций */
    .section-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* Заголовок секции */
    .section-header {
      text-align: center;
      margin-bottom: 4rem;
    }

    .section-header h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      position: relative;
      display: inline-block;
    }

    .section-header p {
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto;
      line-height: 1.6;
    }

    @media (max-width: 768px) {
      .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
      }
    }

    .section-image img:hover {
      transform: scale(1.02);
    }

    .image-upload-control {
      margin-top: 1rem;
      display: flex;
      justify-content: flex-start;
    }

    .upload-button {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      background-color: #1976d2;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .upload-button:hover {
      background-color: #1565c0;
    }

    .upload-button i {
      font-size: 1.2rem;
    }

    @media (max-width: 768px) {
      .nav-container {
        padding: 0 0.5rem;
      }

      .logo {
        font-size: 1rem;
      }

      .nav-menu a {
        font-size: 0.9rem;
      }
    }

    .cards-container.cards-2 {
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
    .cards-container.cards-3 {
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }
    
    @media (max-width: 1024px) {
      .cards-container.cards-2,
      .cards-container.cards-3 {
        grid-template-columns: 1fr;
      }
    }
    
    .cards-container.cards-2 .card,
    .cards-container.cards-3 .card {
      max-width: 100%;
      width: 100%;
    }

    .card, .section-image img, .about-image img {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
    }
    .card.animate-on-scroll, .section-image img.animate-on-scroll, .about-image img.animate-on-scroll {
      opacity: 1;
      transform: translateY(0);
    }

    .about-section::before, .about-content::before {
      display: none !important;
    }

    @media (max-width: 1024px) {
      .no-card-section {
        flex-direction: column;
        align-items: center;
      }
      
      .no-card-section .about-image {
        min-width: 100%;
        max-width: 500px;
        margin: 0 auto 2rem auto;
        order: -1;
      }
      
      .no-card-section .about-content {
        width: 100%;
        text-align: center;
      }
      
      .no-card-section .about-content h2,
      .no-card-section .about-content p,
      .no-card-section .about-content div {
        text-align: center !important;
      }
      
      .no-card-section .about-content div br {
        display: none;
      }
      
      .no-card-section .about-content div strong {
        display: block;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
      }
    }

    /* Стили для текста в секциях */
    .section h2 {
      font-size: 2.5rem;
      font-weight: 700;
      line-height: 1.2;
      letter-spacing: -0.01562em;
      text-transform: none;
      margin-bottom: 1.5rem;
      text-align: center;
      color: inherit;
      word-wrap: break-word;
    }

    .section p {
      font-size: 1.25rem;
      font-weight: 400;
      line-height: 1.5;
      letter-spacing: 0.00938em;
      text-align: center;
      margin-bottom: 2rem;
      color: inherit;
      max-width: 100%;
      word-wrap: break-word;
    }

    @media (max-width: 600px) {
      .section h2 {
        font-size: 2rem;
      }
      .section p {
        font-size: 1rem;
      }
    }

    @media (max-width: 960px) {
      .section h2 {
        font-size: 2.25rem;
      }
      .section p {
        font-size: 1.1rem;
      }
    }
  