*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #18216D;
    background-color: #fff;
}

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

.logo h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #18216D;
    margin: 0;
}

.logo img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 87.5rem;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Header Components */
.header-left {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 10vw, 6rem);
}

nav,
.desktop-nav {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 2rem;
    height: 2rem;
    position: relative;
    transition: var(--transition-slow);
}

.menu-toggle-line {
    width: 1.5rem;
    height: 0.125rem;
    background-color: var(--color-primary);
    display: block;
    transition: var(--transition-slow);
    border-radius: 0.125rem;
}

.menu-toggle.active .menu-toggle-line:nth-child(1) {
    transform: translateY(0.4375rem) rotate(45deg);
}

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

.menu-toggle.active .menu-toggle-line:nth-child(3) {
    transform: translateY(-0.4375rem) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 4rem 1.5rem 1.5rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    margin-bottom: 2rem;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 18px;
    color: #18216D;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #666;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-buttons .btn-signin,
.mobile-buttons .btn-download {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-buttons .btn-signin {
    color: #18216D;
    text-align: center;
    padding: 0.5rem;
}

.mobile-buttons .btn-download {
    width: 100%;
    height: 48px;
    font-size: 16px;
    background-color: #18216D;
    color: #fff;
    border: 1px solid #18216D;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-buttons .btn-download:hover {
    background-color: #0f1647;
    border-color: #0f1647;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    font-family: 'Inter', sans-serif;
    color: #18216D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

nav a:hover {
    color: #666;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.btn-signin,
.btn-download {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-signin {
    color: #18216D;
}

.btn-download {
    background-color: #18216D;
    color: #fff !important;
    width: 136px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #18216D;
    border-radius: 4px;
    white-space: nowrap;
}

.btn-signin:hover {
    color: #666;
}

.btn-download:hover, .btn-download:focus {
    background-color: #00ECD0;
    color: #18216D !important;
    border-color: #00ECD0;
    transition: all 0.23s cubic-bezier(.27,.71,.28,1.3);
}

.btn-download.secondary {
    background: #fff;
    color: #18216D !important;
    border: 1.5px solid #00ECD0;
}

/* Hero Section */
.hero-section {
    max-width: 1260px;
    margin: 0 auto;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #18216D;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #18216D;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    background-color: #00ECD0;
    color: #18216D;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(.37, .72, .23, 1.1);
    border: 1px solid #00ECD0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 605px;
    height: 520px;
    object-fit: contain;
    display: block;
}

.main-center-block {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem 0 1rem;
    text-align: center;
}

.main-center-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: #18216D;
    margin-bottom: 1.5rem;
}

.main-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.main-info-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #F7F8FB;
}

.main-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #18216D;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.main-info-desc {
    font-size: 16px;
    color: #18216D;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

@media (max-width: 600px) {
    .main-center-title { font-weight: 600; font-size: 24px;}
    .main-info-row {
        gap: 1.5rem;
        text-align: left;
    }
    .main-info-title, .main-info-desc { text-align: left;}
    .main-info-img {
        width: 40px; height: 40px;
        
    }
}

.gallery-main-wrap {
    max-width: 78.75rem;
    margin: 0 auto;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ram-gallery {
    width: 100%;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-items: center;
    align-items: center;
}

.ram-gallery-item {
    min-width:120px;
    padding:12px;
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    max-width: 220px;
    box-shadow: 0 4px 24px 0 rgba(20,20,43,0.04);
    border-radius: 20px;
    border: 1px solid darkblue;
    overflow: hidden;
    background: #fff;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
    place-items: center;
}

.ram-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 0;
    min-height: 0;
}

.ram-gallery-btn {
 
    align-self: center;
    justify-self: center;
    opacity: 0.92;
    font-size: 15px;
    padding: 0.75rem 1.2rem;
    max-width: 90%;
    white-space: normal;
    word-break: break-word;
}

.footer {
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    color: #18216D;
    font-family: 'Inter', sans-serif;
}

.footer a {
    color: #18216D;
    text-decoration: underline;
    font-weight: 500;
}

.form-main-wrap {
    max-width: 400px;
    margin: 0 auto 4rem auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.registration-form {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.15rem;
}
.form-group .star {
    color: #E74646;
    margin-left: 2px;
    font-size: 1rem;
}
.form-hint {
    color: #E74646;
    font-size: 12px;
    margin: 2px 0 0 0;
}
.registration-form input {
    border: 1.5px solid #ececec;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-top: 0.2rem;
    font-size: 16px;
    transition: border-color 0.2s;
    width: 100%;
    max-width: 100%;
    background: #F7F8FB;
}
.registration-form input:focus {
    outline: none;
    border-color: #00ECD0;
}
.form-actions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

::selection {
    background: #00ECD0;
    color: #18216D;
}

.footer a, a, a:visited {
    color: #18216D;
    text-decoration: underline;
    transition: color 0.2s;
    outline: none;
}
.footer a:hover, a:hover {
    color: #00ECD0;
    text-decoration: none;
    filter: brightness(0.9);
    text-shadow: 0 3px 16px #00ecd04c;
    transform: scale(1.04) rotate(-2deg);
    transition: all 0.23s cubic-bezier(.3,.62,.23,1.2);
    box-shadow: 0 3px 16px 0 #00ecd075;
}
.footer a:active, a:active {
    color: #E74646;
}
.footer a:focus, a:focus {
    outline: 2px solid #00ECD0;
    outline-offset: 3px;
}

button, .hero-button, .ram-gallery-btn  {
    font-family: 'Inter', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(.37,.72,.23,1.1);
    outline: none;
    position: relative;
    will-change: transform, box-shadow, background;
}
.hero-button, .ram-gallery-btn {
    background-color: #00ECD0;
    color: #18216D;
    border: 1.5px solid #00ECD0;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 1px 9px -2px #00ecd04c;
}
.hero-button.secondary {
    background: #fff;
    border: 1.5px solid #00ECD0;
    color: #18216D;
}
.hero-button:hover, .ram-gallery-btn:hover, button:hover {
    background: #18216D;
    color: #00ECD0;
    border-color: #18216D;
    filter: none;
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 3px 32px 0 #18216d38, 0 0 0 4px #00ecd024;
    transition: all 0.23s cubic-bezier(.27,.71,.28,1.3);
    text-shadow: 0 2px 14px #00ecd090;
}
.hero-button:focus, .ram-gallery-btn:focus, button:focus {
    outline: 3px solid #00ECD0;
    outline-offset: 3px;
    background: #18216D;
    color: #00ECD0;
    box-shadow: 0 0 0 6px rgba(0, 236, 208, 0.3);
}
.hero-button:active, .ram-gallery-btn:active, button:active {
    background: #E74646;
    color: #fff;
    border-color: #E74646;
    filter: brightness(0.94);
    transform: scale(0.96);
}

.registration-form input, .registration-form input:focus {
    color: #18216D;
    font-size: 17px;
    font-family: 'Inter',sans-serif;
    background: #F7F8FB;
    border: 1.5px solid #ececec;
}
.registration-form input:focus {
    border-color: #00ECD0;
    background: #eafffb;
}
::placeholder, :-ms-input-placeholder, ::-webkit-input-placeholder {
    color: #A4B2BF;
    font-style: italic;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    opacity: 1;
}
:-ms-input-placeholder { color: #A4B2BF; font-style:italic;}
::-ms-input-placeholder { color: #A4B2BF; font-style:italic;}

button:focus-visible {
    outline:2px solid #00ECD0;
}


