/* Каркас сайта. Оформление уточняется на этапе 3. */

:root {
    --ink: #16181B;
    --ink-2: #48525E;
    --ink-3: #68727E;
    --ink-4: #737D89;
    --line: #D5DCE4;
    --line-2: #E3E9EF;
    --paper: #FFFFFF;
    --tint: #EFF4FA;
    --tint-2: #F4F7FA;
    --blue: #2C6FBB;
    --blue-dark: #1A4E8A;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -0.01em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.spacer { flex-grow: 1; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------ кнопки */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 0;
    color: var(--paper);
    font-size: 15px;
    font-weight: 500;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--paper); text-decoration: none; }

.button-invert {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--blue);
}
.button-invert:hover { background: var(--tint); border-color: var(--tint); color: var(--blue-dark); }

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--tint);
    border: 1px solid var(--line);
    color: var(--blue);
}

.link-muted { color: var(--ink-3); font-size: 15px; }
.link-muted:hover { color: var(--ink); }

.chip {
    display: inline-block;
    padding: 5px 12px;
    background: var(--tint);
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
}
.chip:hover { color: var(--blue-dark); text-decoration: none; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    background: var(--tint);
    font-size: 13px;
    color: var(--blue);
}
.badge-grey { background: var(--tint-2); color: var(--ink-2); }

/* ------------------------------------------------------------ шапка */

.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

.country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    background: var(--tint);
    border: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

.topnav { display: flex; align-items: center; gap: 20px; }
.topnav a { color: var(--ink-2); font-size: 15px; }

.topsearch {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 340px;
    max-width: 520px;
    height: 40px;
    padding: 0 4px 0 13px;
    border: 1px solid var(--line);
    color: var(--ink-3);
}
.topsearch input {
    flex-grow: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
}
.topsearch button {
    height: 32px;
    padding: 0 15px;
    background: var(--blue);
    border: 0;
    color: var(--paper);
    font-size: 14px;
    font-weight: 500;
}

/* ------------------------------------------------------------ первый экран */

.hero { padding: 64px 0 48px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-title {
    margin: 0;
    font-family: 'Unbounded', 'Golos Text', sans-serif;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-lead {
    margin: 16px 0 0;
    max-width: 660px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: var(--ink-2);
}

.hero-search { width: 100%; max-width: 860px; margin-top: 32px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab {
    height: 38px;
    padding: 0 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
}
.tab-on { background: var(--blue); border-color: var(--blue); color: var(--paper); }

.bigsearch {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
    padding: 0 7px 0 20px;
    border: 1px solid var(--line);
    color: var(--ink-3);
}
.bigsearch input {
    flex-grow: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 17px;
    color: var(--ink);
}
.bigsearch .button { height: 46px; padding: 0 26px; font-size: 16px; }

.hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.hints .muted { font-size: 14px; }

.stats { display: flex; gap: 56px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-size: 27px; font-weight: 700; }
.stat span { font-size: 14px; color: var(--ink-3); }

/* ------------------------------------------------------------ блоки */

.block { padding: 0 0 48px; }
.block-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: 24px; font-weight: 600; }

.grid { display: grid; gap: 12px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    color: var(--ink);
}
.tile:hover { border-color: var(--blue); text-decoration: none; }
.tile-row { flex-direction: row; align-items: center; justify-content: space-between; }
.tile-title { font-size: 16px; font-weight: 500; }
.tile-note { font-size: 13px; color: var(--ink-4); }

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    color: var(--ink);
}
.card:hover { border-color: var(--blue); text-decoration: none; }
.card-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 128px;
    background: var(--blue);
    font-family: 'Unbounded', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--paper);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 15px 17px 17px; }
.card-title { font-size: 17px; font-weight: 600; }
.card-note { font-size: 14px; color: var(--ink-3); }
.card-tags { display: flex; gap: 8px; margin-top: 4px; }

.promo {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 36px 40px;
    background: var(--blue);
    color: var(--paper);
}
.promo-text { flex-grow: 1; }
.promo h2 { margin: 0 0 8px; font-size: 25px; font-weight: 600; color: var(--paper); }
.promo p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.5; color: #C9DCF3; }

/* ------------------------------------------------------------ внутренние страницы */

.page { padding: 28px 0 56px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.page h1 { margin: 0 0 14px; font-size: 32px; font-weight: 600; }
.page h2 { margin: 32px 0 14px; font-size: 22px; font-weight: 600; }

.meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }

.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.list .muted { margin-left: 10px; font-size: 14px; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line-2); padding: 12px 14px; text-align: left; }
th { background: var(--tint-2); font-weight: 600; font-size: 13px; color: var(--ink-3); }
td:first-child { font-weight: 600; color: var(--blue); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--tint);
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
}

.info { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; margin: 0 0 22px; font-size: 15px; }
.info dt { color: var(--ink-3); }
.info dd { margin: 0; }

.text { max-width: 760px; font-size: 16px; line-height: 1.6; }
.plan img { max-width: 100%; height: auto; border: 1px solid var(--line); }

/* ------------------------------------------------------------ подвал */

.site-footer { margin-top: 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 64px; padding-top: 36px; padding-bottom: 28px; }
.footer-brand { width: 300px; }
.footer-brand .logo { font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 600; }
.footer-brand p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--ink-2); }
.footer-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.footer-bottom {
    padding-top: 18px;
    padding-bottom: 24px;
    border-top: 1px solid var(--line-2);
    font-size: 14px;
    color: var(--ink-3);
}

/* ------------------------------------------------------------ адаптив */

@media (max-width: 1100px) {
    .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 760px) {
    .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
    .topnav, .topsearch, .link-muted { display: none; }
    .hero { padding: 40px 0 32px; }
    .hero-title { font-size: 28px; }
    .hero-lead { font-size: 16px; }
    .bigsearch { height: 54px; padding-left: 14px; }
    .bigsearch input { font-size: 16px; }
    .bigsearch .button { padding: 0 16px; }
    .stats { gap: 28px; flex-wrap: wrap; justify-content: center; }
    .grid-6, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: 1fr; }
    .promo { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 22px; }
    .info { grid-template-columns: 1fr; gap: 2px; }
    .info dd { margin-bottom: 10px; }
    .page h1 { font-size: 24px; }
}

/* элементы второго этапа: видны, но пока не работают */
.soon { opacity: 0.55; cursor: default; }
.soon:hover { text-decoration: none; }
a.button.soon:hover { background: var(--blue); border-color: var(--blue); }
