/* Main Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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





/* Header styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/* Header layout fix */
.header .container {
    flex-wrap: nowrap;
}




.brand{
  display:flex;
  align-items:center;
  gap:14px;
}


.brand-text{
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  gap: 16px;               
}

.brand-text img{
  display: block;         
}


.brand-mark{ height:56px; }
.brand-name{ height:16px; }
.brand-tagline{
  height:12px;
  opacity:.75;
}





.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Header layout fix */
.navigation ul {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 24px; /* было 30px */
}

.navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.navigation a:hover {
    color: rgb(3, 140, 140);
    background-color: #f0f8ff;
}

.navigation a.active {
    color: rgb(3, 140, 140);
    font-weight: 600;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(3, 140, 140);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}









/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
}

#hero1{
    padding: 0px;
}

#hero2{
    padding: 0px;
}

.hero-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
}


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




.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

#hero-content2{
     background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}


.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 0px 18px rgba(0, 0, 0, .8);
    color:#FFF;
}




@media (max-width: 768px) {
    .hero-image-container {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-image-container {
        height: 300px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
}








/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #ffffff;
    color: rgb(3, 140, 140);
    box-shadow: 0 4px 15px rgba(3, 140, 140, 0.3);
}

.btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 140, 140, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: rgb(3, 140, 140);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}


/* Main sections */
section {
    padding: 60px 0;
    margin-bottom: 40px;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: rgb(3, 140, 140);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: rgb(3, 140, 140);
    border-radius: 2px;
}

/* Focus section */
.focus-section {
    background-color: #ffffff;
}

/*
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
    gap: 30px;
    justify-content: center;
}
*/



/* Focus section – center wrapped items */
.focus-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* <-- центрирует второй ряд */
  gap: 30px;
}

.focus-item{
  flex: 1 1 200px;          /* минимальная "желательная" ширина карточки */
  max-width: 360px;         /* чтобы карточки не растягивались слишком широко */
}


.focus-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.focus-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(3, 140, 140, 0.15);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.focus-item h3 {
    color: rgb(3, 140, 140);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Why section */
.why-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(3, 140, 140, 0.2);
    border-color: rgb(3, 140, 140);
}

.icon {
    font-size: 2rem;
    color: rgb(3, 140, 140);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.why-item:hover .icon {
    transform: scale(1.2);
}

.why-item h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Footer styles */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Contact form styles */
.contact-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(3, 140, 140);
    box-shadow: 0 0 0 2px rgba(3, 140, 140, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

/* Internal pages (Services / Execution / Philosophy / Confirmation) */
.main-content {
    padding-bottom: 40px;
}

/* Services */
.services-section {
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid rgb(3, 140, 140);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    color: rgb(3, 140, 140);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    margin-bottom: 12px;
}

.service-card ul {
    margin: 15px 0 15px 20px;
}

.service-card li {
    margin-bottom: 8px;
}

/* Execution / Marketing / Philosophy split layouts */
.execution-section,
.marketing-section,
.philosophy-section {
    background-color: #ffffff;
}

.execution-content,
.marketing-content,
.philosophy-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.execution-text,
.marketing-text,
.philosophy-text {
    background-color: #ffffff;
}

.execution-text p,
.marketing-text p,
.philosophy-text p {
    margin-bottom: 12px;
}

.execution-text ul,
.marketing-text ul,
.philosophy-text ul {
    margin: 12px 0 12px 20px;
}

.execution-text li,
.marketing-text li,
.philosophy-text li {
    margin-bottom: 8px;
}

/* Cards on the right side */
.execution-card,
.marketing-card,
.philosophy-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid rgb(3, 140, 140);
}

.execution-card h3,
.marketing-card h3,
.philosophy-card h3 {
    color: rgb(3, 140, 140);
    margin-bottom: 12px;
}

.execution-card ul,
.marketing-card ul,
.philosophy-card ul {
    margin: 12px 0 0 20px;
}

.execution-card li,
.marketing-card li,
.philosophy-card li {
    margin-bottom: 8px;
}

/* Philosophy page: heading sits inside the left column */
.philosophy-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.philosophy-text h2::after {
    left: 0;
    transform: none;
}

/* Commitment */
.commitment-section {
    background-color: #ffffff;
}

.commitment-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.commitment-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid rgb(3, 140, 140);
}

.commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.commitment-item h3 {
    color: rgb(3, 140, 140);
    margin-bottom: 10px;
}

/* Confirmation */
.confirmation-section {
    background-color: #ffffff;
}

.confirmation-content {
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 14px;
    padding: 40px 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    text-align: center;
    border-top: 4px solid rgb(3, 140, 140);
}

.confirmation-content h2 {
    margin-bottom: 20px;
}

/* Internal pages responsiveness */
@media (max-width: 768px) {
    .execution-content,
    .marketing-content,
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card,
    .execution-card,
    .marketing-card,
    .philosophy-card,
    .confirmation-content {
        padding: 24px 20px;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}




/* Adaptivity */

@media (max-width: 1100px) {

  .header .container {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  /* brand centered */
  .brand {
    /*justify-content: center;*/
    text-align: center;
  }


  /* menu centered under brand */
  .navigation ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

}




@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    

  /* brand centered */
  .brand {
    text-align: left;
  }

  .brand img{
    transform: scale(0.95);
  }


    .navigation ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 250px;
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .focus-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
}

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

  .brand img{
    transform: scale(0.7);
    transform-origin: left center;
  }
    .brand{
       gap: 0px;
    margin-left:60px;
    } 
   .brand-mark{ margin-right: 0px; }
    .brand-text{ margin-left: 0; }


  
    

    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .focus-item,
    .why-item {
        padding: 20px;
    }
}