/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Base Layout Styles */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    flex: 1;
    max-width: 100%;
    padding: 0;
}

/* Override Bootstrap container if present */
body > .container {
    max-width: 100%;
    padding: 0;
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav {
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #1f2937;
    font-size: 15px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: color 0.2s ease;
    padding: 8px 0;
    display: block;
}

.nav-link:hover {
    color: #14B8A6;
}

.nav-link.active {
    font-weight: 600;
    color: #1f2937;
}

.nav-link.create-project {
    color: #14B8A6;
}

.nav-link.create-project:hover {
    color: #0d9488;
}

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

.header-right .create-project {
    margin-right: 0;
    white-space: nowrap;
    padding: 8px 0;
    display: inline-block;
}

@media (max-width: 992px) {
    .header-right .create-project {
        display: none;
    }
}

.btn-start {
    background-color: #0d9488;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

.btn-start:hover {
    background-color: #0f766e;
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-start:active {
    transform: translateY(0);
}

/* Мобильное меню - кнопка гамбургер */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #1f2937;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 999;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-item {
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item:last-child {
    border-bottom: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    text-decoration: none;
    color: #1f2937;
    font-size: 16px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #14B8A6;
}

.mobile-nav-link.active {
    font-weight: 600;
    color: #1f2937;
}

.mobile-nav-link.create-project {
    color: #14B8A6;
}

.mobile-btn-start {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: #0d9488;
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.2s ease;
}

.mobile-btn-start:hover {
    background-color: #0f766e;
    color: #ffffff;
}

/* Legacy Styles */
a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-center {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 64px;
    }

    .btn-start {
        display: none;
    }

    .brand-name {
        font-size: 18px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .mobile-nav-links {
        padding: 12px 16px;
    }

    .mobile-nav-link {
        padding: 14px 0;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
        height: 60px;
    }

    .brand-name {
        font-size: 16px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }

    .mobile-nav-links {
        padding: 8px 12px;
    }

    .mobile-nav-link {
        padding: 12px 0;
        font-size: 14px;
    }

    .mobile-btn-start {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Footer Styles */
.main-footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e5e5;
    margin-top: auto;
    padding-top: 60px;
    padding-bottom: 40px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #14B8A6;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #6b7280;
    margin-top: 2px;
}

.contact-item span {
    flex: 1;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 6px;
}

.social-link:hover {
    color: #14B8A6;
    transform: translateY(-2px);
}

.social-link svg {
    width: 100%;
    height: 100%;
}

.social-link svg path,
.social-link svg rect,
.social-link svg circle {
    fill: currentColor;
}

/* Instagram icon special handling */
.social-link[aria-label="Instagram"] svg rect {
    fill: currentColor;
}

.social-link[aria-label="Instagram"] svg circle {
    fill: white;
}

/* YouTube icon special handling */
.social-link[aria-label="YouTube"] svg path {
    fill: currentColor;
}

.social-link[aria-label="YouTube"] svg polygon {
    fill: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    flex: 1;
    min-width: 200px;
}

.footer-bottom-left p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-bottom-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 150px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.footer-bottom-right {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

.footer-policy-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: color 0.2s ease;
}

.footer-policy-link:hover {
    color: #14B8A6;
}

/* Footer Responsive Design */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .footer-heading {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer-link {
        font-size: 13px;
    }

    .contact-item {
        font-size: 13px;
    }

    .contact-icon {
        width: 18px;
        height: 18px;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .footer-bottom-left p {
        font-size: 13px;
    }

    .footer-brand-name {
        font-size: 16px;
    }

    .footer-logo-icon {
        width: 28px;
        height: 28px;
    }

    .footer-policy-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .footer-container {
        padding: 0 12px;
    }

    .footer-top {
        gap: 24px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .footer-bottom {
        gap: 20px;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 8px;
    }
}

/* Home Page Styles */
.home-page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.hero-section {
    padding: 40px 20px;
    margin-bottom: 60px;
    text-align: center;
}

.construction-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    color: #1f2937;
    background: linear-gradient(135deg, #14B8A6 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    display: block;
}

.subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 auto 16px;
    text-align: center;
    display: block;
}

.lead {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    text-align: center;
    display: block;
}

.target-audience {
    background: #f9fafb;
    border-radius: 16px;
    padding: 40px 30px;
    margin: 60px auto;
    max-width: 1000px;
    border: 1px solid #e5e5e5;
    text-align: center;
}

.audience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 30px;
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.audience-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.audience-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #14B8A6;
}

.audience-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.audience-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.audience-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.language-selector {
    margin: 60px auto;
    max-width: 900px;
    padding: 30px 20px;
    text-align: center;
}

.language-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.language-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.language-btn {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #1f2937;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.language-btn:hover {
    background: #f3f4f6;
    border-color: #14B8A6;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

.language-btn.active {
    background: #14B8A6;
    border-color: #14B8A6;
    color: #ffffff;
}

.language-btn.active:hover {
    background: #0d9488;
    border-color: #0d9488;
}

/* Home Page Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 15px;
        margin-bottom: 40px;
    }

    .construction-icon {
        font-size: 3rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1rem;
        padding: 0 10px;
    }

    .target-audience {
        padding: 30px 20px;
        margin: 40px 15px;
    }

    .audience-title {
        font-size: 1.3rem;
    }

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

    .audience-item {
        padding: 20px;
    }

    .language-selector {
        margin: 40px 15px;
        padding: 20px 15px;
    }

    .language-title {
        font-size: 1.1rem;
    }

    .language-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .construction-icon {
        font-size: 2.5rem;
    }

    .target-audience {
        padding: 24px 15px;
    }

    .audience-item {
        padding: 18px;
    }

    .language-btn {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
}

